Difference between revisions of "Template:Xkcd centurion"

From Geohashing
imported>Relet
m
imported>Relet
(slowly getting there, wiki parser syntax is a pita.)
Line 1: Line 1:
 
{{#vardefine:name|Centurion}}
 
{{#vardefine:name|Centurion}}
 +
<includeonly>
 
{{#vardefine:tens|{{#expr:({{{count}}} - {{{count}}} mod 10)/10}}}}
 
{{#vardefine:tens|{{#expr:({{{count}}} - {{{count}}} mod 10)/10}}}}
test = {{#var: tens}}
+
</includeonly>
 
 
 
{{#ifeq:{{#var:tens}}|9|Nonaginturion}}{{#ifeq:{{#var:tens}}|8|Octaginturion}}{{#ifeq:{{#var:tens}}|7|Septaginturion}}{{#ifeq:{{#var:tens}}|6|Sextaginturion}}{{#ifeq:{{#var:tens}}|5|Quinquaginturion}}{{#ifeq:{{#var:tens}}|4|Quatraginturion}}{{#ifeq:{{#var:tens}}|3|Triginturion}}{{#ifeq:{{#var:tens}}|2|Viginturion}}{{#ifeq:{{#var:tens}}|1|Decurion}}{{#ifeq:{{#var:tens}}|0|Nullaturion}}
 
{{#ifeq:{{#var:tens}}|9|Nonaginturion}}{{#ifeq:{{#var:tens}}|8|Octaginturion}}{{#ifeq:{{#var:tens}}|7|Septaginturion}}{{#ifeq:{{#var:tens}}|6|Sextaginturion}}{{#ifeq:{{#var:tens}}|5|Quinquaginturion}}{{#ifeq:{{#var:tens}}|4|Quatraginturion}}{{#ifeq:{{#var:tens}}|3|Triginturion}}{{#ifeq:{{#var:tens}}|2|Viginturion}}{{#ifeq:{{#var:tens}}|1|Decurion}}{{#ifeq:{{#var:tens}}|0|Nullaturion}}
  

Revision as of 21:40, 3 November 2008



Longtrekbadge.png
This user earned the XKCD Centurion achievement
by attending {{{count}}} Saturday meetups.


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:

Centurion.png
Romulus Rebus earned the xkcd Centurion achievement
by attending 100 Saturday meetups.

{{XKCD Centurion
| count = 50
| name = Romulus Rebus
}}

appears as:

Centurion5.png
Romulus Rebus earned the xkcd Quinquaginturion achievement
by attending 50 Saturday meetups.

{{XKCD Centurion
| count = 15
| name = Romulus Rebus
}}

appears as:

Centurion1.png
Romulus Rebus earned the xkcd Decurion achievement
by attending 15 Saturday meetups.