Template:Dots: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
1d4chan>Leviathan
No edit summary
imported>Administrator
m 16 revisions imported
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{2}}} |
<includeonly><BIG>{{Repeat|{{{1|0}}}|●}}{{Repeat|{{{2|0}}}|○}}</BIG></includeonly><noinclude>
<BIG>●○●○●○●○●○●○●○●○●○●○●○●○●</BIG>
Usage:
{|border=1
|-
|<tt><nowiki>{{dots|X}}</nowiki></tt> || row of X filled-in dots
|-
|<tt><nowiki>{{dots|X|Y}}</nowiki></tt> || row of Y dots, first X are filled-in.
|}


{{#iferror: {{#expr:{{{2}}}-{{{1}}}}}
Examples:
    | <span style="color:red;">Malformed <nowiki>{{dots}}</nowiki> usage! (It looks like something in there wasn't a number.)</span>
* <nowiki>{{dots|3}}</nowiki> -> {{dots|3}}
    | {{#if: {{#expr:({{{2}}}-{{{1}}}) < 0}}
* <nowiki>{{dots|2|5}}</nowiki> -> {{dots|2|5}}
        | <span style="color:red;">Malformed <nowiki>{{dots}}</nowiki> usage! (It looks like the second number was smaller than the first.)</span>
<BIG>●○●○●</BIG>
        | {{#switch: {{{1}}}
</noinclude>
            | 1 = ●
            | 2 = ●●
            | 3 = ●●●
            | 4 = ●●●●
            | 5 = ●●●●●
            | 6 = ●●●●●●
            | 7 = ●●●●●●●
            | 8 = ●●●●●●●●
            | 9 = ●●●●●●●●●
            | 10 = ●●●●●●●●●●
          }}
        | {{#switch: {{{2}}}-{{{1}}}
            | 1 = ❍
            | 2 = ❍❍
            | 3 = ❍❍❍
            | 4 = ❍❍❍❍
            | 5 = ❍❍❍❍❍
            | 6 = ❍❍❍❍❍❍
            | 7 = ❍❍❍❍❍❍❍
            | 8 = ❍❍❍❍❍❍❍❍
            | 9 = ❍❍❍❍❍❍❍❍❍
            | 10 = ❍❍❍❍❍❍❍❍❍❍
          }}
      }}
}}
 
| {{#switch: {{{1}}}
    | 1 = ●
    | 2 = ●●
    | 3 = ●●●
    | 4 = ●●●●
    | 5 = ●●●●●
    | 6 = ●●●●●●
    | 7 = ●●●●●●●
    | 8 = ●●●●●●●●
    | 9 = ●●●●●●●●●
    | 10 = ●●●●●●●●●●
  }}
}}
 
{{#switch: {{{1}}}
            | 1 = ●
            | 2 = ●●
            | 3 = ●●●
            | 4 = ●●●●
            | 5 = ●●●●●
            | 6 = ●●●●●●
            | 7 = ●●●●●●●
            | 8 = ●●●●●●●●
            | 9 = ●●●●●●●●●
            | 10 = ●●●●●●●●●●
          }}</includeonly><noinclude><pre>{{dots|#}}
{{dots|#|#}}</pre>
 
{{dots|5}}
 
{{dots|5|10}}

Latest revision as of 18:12, 24 June 2023

●○●○●○●○●○●○●○●○●○●○●○●○● Usage:

{{dots|X}} row of X filled-in dots
{{dots|X|Y}} row of Y dots, first X are filled-in.

Examples:

  • {{dots|3}} -> ●●●
  • {{dots|2|5}} -> ●●○○○○○

●○●○●