Difference between revisions of "Template:Dot"
From Shadow of the Throne Wiki
m (Oops) |
Storyteller (Talk | contribs) (Created page with "<includeonly>{{#iferror:{{#expr:1*{{{1|0}}}}}|{{{1|}}}|<span style="font-size:{{{fontsize|larger}}}">{{Dot/Main|{{{1|0}}}|{{{2|10}}}|separator={{{separator|}}}|fillchar={{{fil...") |
||
Line 1: | Line 1: | ||
<includeonly>{{#iferror:{{#expr:1*{{{1|0}}}}}|{{{1|}}}|<span style="font-size:{{{fontsize|larger}}}">{{Dot/Main|{{{1|0}}}|{{{2|10}}}|separator={{{separator|}}}|fillchar={{{fillchar|{{#if:{{{boxes|}}}|■|●}}}}}|hollowchar={{{hollowchar|{{#if:{{{boxes|}}}|□|○}}}}}}}</span>}}</includeonly><noinclude> | <includeonly>{{#iferror:{{#expr:1*{{{1|0}}}}}|{{{1|}}}|<span style="font-size:{{{fontsize|larger}}}">{{Dot/Main|{{{1|0}}}|{{{2|10}}}|separator={{{separator|}}}|fillchar={{{fillchar|{{#if:{{{boxes|}}}|■|●}}}}}|hollowchar={{{hollowchar|{{#if:{{{boxes|}}}|□|○}}}}}}}</span>}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | This version of the Dot template can produce all common forms of Dots or Boxes | + | This version of the Dot template can produce all common forms of Dots or Boxes. |
===Simple 5-dot Version=== | ===Simple 5-dot Version=== | ||
Line 25: | Line 25: | ||
{{Dot|3|0}}<br> | {{Dot|3|0}}<br> | ||
{{Dot|3|5|hollowchar=}} | {{Dot|3|5|hollowchar=}} | ||
− | |||
− | |||
===Full Parameter List=== | ===Full Parameter List=== | ||
Line 42: | Line 40: | ||
<pre>{{Dot|3|10|fontsize=20pt|separator=1|fillchar=x|hollowchar=o}}</pre> | <pre>{{Dot|3|10|fontsize=20pt|separator=1|fillchar=x|hollowchar=o}}</pre> | ||
{{Dot|3|10|fontsize=20pt|separator=1|fillchar=x|hollowchar=o}} | {{Dot|3|10|fontsize=20pt|separator=1|fillchar=x|hollowchar=o}} | ||
+ | |||
+ | Template nicked from the Exalted wiki. | ||
</noinclude> | </noinclude> |
Revision as of 00:06, 21 September 2012
Contents
Usage
This version of the Dot template can produce all common forms of Dots or Boxes.
Simple 5-dot Version
{{Dot|3|5}}
{{#iferror:{{#expr:1*3}}|3|{{#ifexpr:{{#if:|1|0}} and ((3>5) or (5>5)) | |{{#{{}}}}
Simple 10-dot Version
{{Dot|7}}
{{#iferror:{{#expr:1*7}}|7|{{#ifexpr:{{#if:|1|0}} and ((7>5) or (10>5)) | |{{#if:|{{#}}}}
Spaced 10-dot Version
{{Dot|7|separator=1}}
{{#iferror:{{#expr:1*7}}|7|{{#ifexpr:{{#if:1|1|0}} and ((7>5) or (10>5)) | |{{#if:|{{#}}}}
Simple 10-box Version
{{Dot|7|boxes=1}}
{{#iferror:{{#expr:1*7}}|7|{{#ifexpr:{{#if:|1|0}} and ((7>5) or (10>5)) | |{{#if:1{{#}}}}
No Trailing Hollow Characters
{{Dot|3|0}} (preferred)
or
{{Dot|3|5|hollowchar=}}
{{#iferror:{{#expr:1*3}}|3|{{#ifexpr:{{#if:|1|0}} and ((3>5) or (0>5)) | |{{#}}}}
{{#iferror:{{#expr:1*3}}|3|{{#ifexpr:{{#if:|1|0}} and ((3>5) or (5>5)) | |{{#}}}}
Full Parameter List
{{Dot |number of filled dots (defaults to 0) |number of total dots (defaults to 10) |separator=specify any value to include a separator (defaults to no separator) |fontsize=changes size of dots using CSS standards such as 12pt, small, or 150% (defaults to CSS "larger") |boxes=specify any value to use boxes instead of dots (defaults to dots) |fillchar=character to use as a filled dot (must be a single character with no formatting, overrides boxes setting) (defaults to ●) |hollowchar=character to use as a hollow dot (must be a single character with no formatting, overrides boxes setting) (defaults to ○) }}
- Example
{{Dot|3|10|fontsize=20pt|separator=1|fillchar=x|hollowchar=o}}
{{#iferror:{{#expr:1*3}}|3|{{#ifexpr:{{#if:1|1|0}} and ((3>5) or (10>5)) | |xxxooooooo}}}}
Template nicked from the Exalted wiki.