Template:Iconbar/doc

From MC Public Wiki
< Template:Iconbar
Revision as of 17:01, 14 October 2011 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation

This template creates a bar made of icons.

{{iconbar
|value=
|size=
|icon_full=
|icon_half=
|icon_empty=
|reverse=
}}
Parameter Function Default value
value Integer value between 0 and 20. Half icon = 1, full icon = 2, full icon + half icon = 3 and so on. 0
size Width of each icon in CSS units like "px" or "em". None
icon_full Icon used for even values like 2, 4, 6, etc. None
icon_half Icon used at the end of the bar for uneven values like 1, 3, 5, etc. None
icon_empty Icon used if value is 0 None
reverse Set to 1 to display half images on the left instead of the right 0

See also

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

fr:Modèle:Barre/doc