Difference between revisions of "Template:5dot"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Keris
(more documentation)
imported>Keris
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
<span id="5dot">
 
{{#switch: {{{dots}}}
 
{{#switch: {{{dots}}}
 
  | 1 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]]
 
  | 1 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]]
Line 8: Line 9:
 
  | [[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]]
 
  | [[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]]
 
}}
 
}}
 +
</span>
 
</includeonly>
 
</includeonly>
 
<noinclude>A simple template to quickly format 5-dot bars.
 
<noinclude>A simple template to quickly format 5-dot bars.

Revision as of 15:54, 27 October 2012

A simple template to quickly format 5-dot bars.

{{5dot|dots=<Number of filled dots>|size=<size of the dots; default is 12px>}}

Examples:

Two dots filled, 10px image size
{{5dot|dots=2|size=10px}}

Result: Dot-filled.pngDot-filled.pngDot.pngDot.pngDot.png


Same as above, no image size specified
{{5dot|dots=2}}

Result: Dot-filled.pngDot-filled.pngDot.pngDot.pngDot.png