Template:Dots: Difference between revisions
Appearance
No edit summary |
Fixing hidden |
||
| Line 19: | Line 19: | ||
.dot.filled { | .dot.filled { | ||
background-color: {{{color|black}}}; | background-color: {{{color|black}}}; | ||
} | |||
.dot.hidden { | |||
display: none; | |||
} | } | ||
| Line 34: | Line 38: | ||
<div class="dot {{#ifexpr: {{{value|0}}} > 9 | filled | }} {{#ifexpr: {{{number|5}}} < 10 | hidden | }}"></div> | <div class="dot {{#ifexpr: {{{value|0}}} > 9 | filled | }} {{#ifexpr: {{{number|5}}} < 10 | hidden | }}"></div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Revision as of 16:59, 4 December 2025
usage:
{{Dots|number=5 | value = 3 | color = red }}
number = how many dots to show, defaults to 5, max of 10
value = number of dots to fill in, defaults to 0, max of 10
color = color of the dots, defaults to black (RGB values allowed)