Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 122

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>poll</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="../../style.css" type="text/css" />

<link rel="stylesheet" href="../../local.css" type="text/css" />






<meta name="robots" content="noindex, follow" />



</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="../../index.html">ikiwiki</a>/ 

<a href="../../ikiwiki.html">ikiwiki</a>/ 

<a href="../directive.html">directive</a>/ 

</span>
<span class="title">
poll

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p>The <code>poll</code> directive is supplied by the <a href="http://ikiwiki.info/plugins/poll/">poll</a> plugin.</p>

<p>This directive allows you to create online polls in the wiki. Here's an
example use:</p>

<pre><code>[[!poll  0 "red" 0 "green" 0 "blue"]]
</code></pre>

<p>The numbers indicate how many users voted for that choice. When a user
votes for a choice in the poll, the page is modified and the number
incremented.</p>

<p>While some basic precautions are taken to prevent users from accidentially
voting twice, this sort of poll should not be counted on to be very
accurate; all the usual concerns about web based polling apply. Unless the
page that the poll is in is locked, users can even edit the page and change
the numbers!</p>

<p>Parameters: </p>

<ul>
<li><code>open</code> - Whether voting is still open. Set to "no" to close the poll to
voting.</li>
<li><code>expandable</code> - Set to "yes" to make this poll have an interface to add
another choice to the poll.</li>
<li><code>total</code> - Show total number of votes at bottom of poll. Default is "yes".</li>
<li><code>percent</code> - Whether to display percents. Default is "yes".</li>
<li><code>postlink</code> - By default after voting the updated page containing the poll
is displayed. This parameter allows advancing onward to another page.
This is useful for multi-page polls.</li>
<li><code>posttrail</code> - Similar to postvote, but allows advancing to the next page
on a trail after a vote. The value of the parameter is the name of the
page that defines the trail to follow. The trail plugin must be
enabled for this to work.</li>
</ul>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">






<div id="backlinks">
Links:

<a href="../../plugins/poll.html">plugins/poll</a>


</div>






<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>