Template:Dots: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
1d4chan>Leviathan
No edit summary
1d4chan>NotBrandX
Trying to improve
Line 1: Line 1:
<includeonly>
<includeonly>{{Repeat|{{{1|0}}}|{{●}}}}{{Repeat|{{ssub|{{{2|10}}}|{{{1|0}}}}}|{{❍}}}}</includeonly><noinclude>
{{#switch: {{{1}}}
    | 0 =
    | 1 =
    | 2 = ●●
    | 3 = ●●●
    | 4 = ●●●●
    | 5 = ●●●●●
    | 6 = ●●●●●●
    | 7 = ●●●●●●●
    | 8 = ●●●●●●●●
    | 9 = ●●●●●●●●●
    | 10 = ●●●●●●●●●●
}}{{#if: {{{2}}}  
    | {{#switch: {{#expr: {{{2}}}-{{{1}}} }}
        | 0 =
        | 1 =
        | 2 = ❍❍
        | 3 = ❍❍❍
        | 4 = ❍❍❍❍
        | 5 = ❍❍❍❍❍
        | 6 = ❍❍❍❍❍❍
        | 7 = ❍❍❍❍❍❍❍
        | 8 = ❍❍❍❍❍❍❍❍
        | 9 = ❍❍❍❍❍❍❍❍❍
        | 10 = ❍❍❍❍❍❍❍❍❍❍
      }}
  }}
</includeonly><noinclude><pre>{{dots|#}}
{{dots|#|#}}</pre>


* {{dots|1|5}}
Usage:
* {{dots|2|5}}
{|border=1
* {{dots|3|5}}
|-
* {{dots|4|5}}
|<tt><nowiki>{{dots|X}}</nowiki></tt> || row of X filled-in dots
* {{dots|5|5}}
|-
|<tt><nowiki>{{dots|X|Y}}</nowiki></tt> || row of Y dots, first X are filled-in.
|}
 
Examples:
* <nowiki>{{dots|3}}</nowiki> -> {{dots|3}}
* <nowiki>{{dots|2|5}}</nowiki> -> {{dots|1|5}}
</noinclude>

Revision as of 17:09, 31 May 2010


Usage:

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

Examples: