Difference between revisions of "Template:5dot"
Jump to navigation
Jump to search
imported>Keris m |
imported>Keris m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly> |
− | {{#switch: {{{dots}}} | + | <span class="dot5">{{#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}}}]] |
− | | 2 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] | + | | 2 =[[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] |
− | | 3 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] | + | | 3 =[[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] |
− | | 4 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] | + | | 4 =[[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot.png|{{{size | 12px}}}]] |
− | | 5 = [[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]] | + | | 5 =[[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[image:Dot-filled.png|{{{size | 12px}}}]][[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}}}]][[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> |
− | </ | ||
<noinclude>A simple template to quickly format 5-dot bars. | <noinclude>A simple template to quickly format 5-dot bars. | ||
− | + | {{Tlx|5dot|dots=<Number of filled dots>|size=<size of the dots; default is 12px>}} | |
− | |||
− | '''Result:''' | + | ==Examples:== |
− | {{5dot|dots=2|size=10px}} | + | |
+ | ;Two dots filled, 10px image size:{{Tlx|5dot|dots=2|size=10px}} | ||
+ | '''Result:'''{{5dot|dots=2|size=10px}} | ||
+ | |||
+ | ;Same as above, no image size specified:{{Tlx|5dot|dots=2}} | ||
+ | '''Result:'''{{5dot|dots=2}} | ||
+ | |||
+ | |||
+ | </noinclude> |