http://wiki.aidancbrady.com/w/index.php?title=Template:Iconbar/doc&feed=atom&action=historyTemplate:Iconbar/doc - Revision history2024-03-29T09:02:01ZRevision history for this page on the wikiMediaWiki 1.39.6http://wiki.aidancbrady.com/w/index.php?title=Template:Iconbar/doc&diff=4067&oldid=prevFantasyTeddy: Created page with "{{Documentation header}} {{lua}} This template creates a bar made of icons. <pre style="width: 100px">{{iconbar |value= |title= |size= |full= |half= |empty= |reverse= |total=..."2015-08-03T13:34:30Z<p>Created page with "{{Documentation header}} {{lua}} This template creates a bar made of icons. <pre style="width: 100px">{{iconbar |value= |title= |size= |full= |half= |empty= |reverse= |total=..."</p>
<p><b>New page</b></p><div>{{Documentation header}}<br />
{{lua}}<br />
This template creates a bar made of icons.<br />
<br />
<pre style="width: 100px">{{iconbar<br />
|value=<br />
|title=<br />
|size=<br />
|full=<br />
|half=<br />
|empty=<br />
|reverse=<br />
|total=<br />
}}</pre><br />
<br />
{| class="wikitable"<br />
! Parameter<br />
! Function<br />
! Default value<br />
|-<br />
| <code>value</code><br />
| Integer value between 0 and 20. One "full" icon is shown for each increase of 2 to <code>value</code> (e.g. three are shown if <code>value</code> is 6 or 7, etc.), and if <code>value</code> is odd, a "half" icon is shown at the end of the bar.<br />
| 0<br />
|-<br />
| <code>title</code><br />
| Mouseover text. If this parameter isn't specified, it falls back to <code>value</code>.<br />
| ''None''<br />
|-<br />
| <code>size</code><br />
| Width of each icon in CSS units like "px" or "em". Units default to "px".<br />
| ''None''<br />
|-<br />
| <code>full</code><br />
| "Full" icon. One of these is shown for each increase of 2 to <code>value</code> (e.g. three are shown if <code>value</code> is 6 or 7, etc.).<br />
| ''None''<br />
|-<br />
| <code>half</code><br />
| "Half" icon, used at the end of the bar if <code>value</code> is odd.<br />
| ''None''<br />
|-<br />
| <code>empty</code><br />
| "Empty" icon, used if <code>value</code> is 0 or if <code>total</code> is used and is higher than <code>value</code>.<br />
| ''None''<br />
|-<br />
| <code>reverse</code><br />
| Pass a value to display the "half" icon on the left end of the bar instead of the right.<br />
| <br />
|-<br />
| <code>total</code><br />
| Minimum number of icons to be shown. If <code>value</code> is lower than this, empty icons are shown to reach the minimum.<br />
| ''None''<br />
|}<br />
<br />
== See also ==<br />
{{Iconbar see also}}<br />
<includeonly><br />
<!-- Template categories/interwiki here --><br />
[[Category:Image templates|I]]<br />
</includeonly><br />
<noinclude><br />
<!-- Documentation categories/interwiki here --><br />
</noinclude></div>FantasyTeddy