Jump to content

Template:Dots: Difference between revisions

From RetroMUX
Created page with "<includeonly> {{#css: .dotcontainer { display: flex; flex-flow: row nowrap; align-items: flex-start; } .dot { border-radius: 50%; width: 15px; height: 15px; border: 1px solid {{{color|black}}}; margin: 0px 2px; background-color: transparent; } .dot.filled { background-color: {{{color|black}}}; } }} <div class="dotcontainer"> <div class="dot {{#ifexpr: {{{value|0}}} > 0 | filled | }}"></div> <div class="dot {{#ifexpr: {{{value|0}}} > 1 | filled | }..."
 
No edit summary
Line 37: Line 37:
<noinclude>
<noinclude>
usage:
usage:
<pre>{{Dots number=5 | value = 3 | color = red }}
<pre>{{Dots|number=5 | value = 3 | color = red }}


number = how many dots to show, defaults to 5
number = how many dots to show, defaults to 5, max of 10
value = number of dots to fill in, defaults to 0
value = number of dots to fill in, defaults to 0, max of 10
color = color of the dots, defaults to black.
color = color of the dots, defaults to black (RGB values allowed)
</pre>
</pre>

Revision as of 07:06, 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)