Difference between revisions of "Template:Xkcd centurion"
From Geohashing
imported>Sparrohawc m (fixing more mistakes...) |
imported>Sparrohawc (This would be easier if I could preview template changes.) |
||
Line 1: | Line 1: | ||
− | {{#vardefine:name|Centurion}}{{#vardefine: | + | {{#vardefine:name|Centurion}}{{#vardefine:iconsuffix|Centurion.png}}<includeonly>{{#vardefine:tens|{{#expr:({{{count}}} - {{{count}}} mod 10)/10}}}}{{#ifeq:{{#var:tens}}|9|{{#vardefine:name|Nonaginturion}}{{#vardefine:iconsuffix|9}}}}{{#ifeq:{{#var:tens}}|8|{{#vardefine:name|Octaginturion}}{{#vardefine:iconsuffix|8}}}}{{#ifeq:{{#var:tens}}|7|{{#vardefine:name|Septaginturion}}{{#vardefine:iconsuffix|7}}}}{{#ifeq:{{#var:tens}}|6|{{#vardefine:name|Sextaginturion}}{{#vardefine:iconsuffix|6}}}}{{#ifeq:{{#var:tens}}|5|{{#vardefine:name|Quinquaginturion}}{{#vardefine:iconSuffix|5}}}}{{#ifeq:{{#var:tens}}|4|{{#vardefine:name|Quatraginturion}}{{#vardefine:iconsuffix|4}}}}{{#ifeq:{{#var:tens}}|3|{{#vardefine:name|Triginturion}}{{#vardefine:iconsuffix|3}}}}{{#ifeq:{{#var:tens}}|2|{{#vardefine:name|Viginturion}}{{#vardefine:iconsuffix|2}}}}{{#ifeq:{{#var:tens}}|1|{{#vardefine:name|Decurion}}{{#vardefine:iconsuffix|1}}}}{{#ifeq:{{#var:tens}}|0|{{#vardefine:name|Nullaturion}}{{#vardefine:iconsuffix|0}}}}</includeonly>{{Ribbon |
| color = purple | | color = purple | ||
− | | icon = {{ | + | | icon = Centurion{{#var:iconsuffix}}.png |
| user = {{{name|}}} | | user = {{{name|}}} | ||
| achievement = [[xkcd centurion achievement|xkcd {{#var:name}} achievement]] | | achievement = [[xkcd centurion achievement|xkcd {{#var:name}} achievement]] |
Revision as of 23:55, 14 January 2010
This user earned the xkcd Centurion achievement
|
How to use this template:
{{XKCD Centurion
- | count = count (number of Saturday meetings attended)
- | name = name of achiever (optional)
- | image = image name (optional)
}}
The image name should not include 'Image:' or surrounding braces.
Examples:
{{xkcd centurion | count = 100 | name = Romulus Rebus }}
appears as:
Romulus Rebus earned the xkcd Centurion achievement
|
{{xkcd centurion | count = 50 | name = Romulus Rebus }}
appears as:
Romulus Rebus earned the xkcd Quinquaginturion achievement
|
{{xkcd centurion | count = 15 | name = Romulus Rebus }}
appears as:
Romulus Rebus earned the xkcd Decurion achievement
|