Difference between revisions of "Template:Xkcd centurion"

From Geohashing
imported>Mattyk
m (no more plural 'meetups' for one meetup.)
imported>Relet
(-> ribbon template)
Line 1: Line 1:
{{#vardefine:name|Centurion}}<includeonly>{{#vardefine:tens|{{#expr:({{{count}}} - {{{count}}} mod 10)/10}}}}{{#ifeq:{{#var:tens}}|9|{{#vardefine:name|Nonaginturion}}}}{{#ifeq:{{#var:tens}}|8|{{#vardefine:name|Octaginturion}}}}{{#ifeq:{{#var:tens}}|7|{{#vardefine:name|Septaginturion}}}}{{#ifeq:{{#var:tens}}|6|{{#vardefine:name|Sextaginturion}}}}{{#ifeq:{{#var:tens}}|5|{{#vardefine:name|Quinquaginturion}}}}{{#ifeq:{{#var:tens}}|4|{{#vardefine:name|Quatraginturion}}}}{{#ifeq:{{#var:tens}}|3|{{#vardefine:name|Triginturion}}}}{{#ifeq:{{#var:tens}}|2|{{#vardefine:name|Viginturion}}}}{{#ifeq:{{#var:tens}}|1|{{#vardefine:name|Decurion}}}}{{#ifeq:{{#var:tens}}|0|{{#vardefine:name|Nullaturion}}}}</includeonly><table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
+
{{#vardefine:name|Centurion}}<includeonly>{{#vardefine:tens|{{#expr:({{{count}}} - {{{count}}} mod 10)/10}}}}{{#ifeq:{{#var:tens}}|9|{{#vardefine:name|Nonaginturion}}}}{{#ifeq:{{#var:tens}}|8|{{#vardefine:name|Octaginturion}}}}{{#ifeq:{{#var:tens}}|7|{{#vardefine:name|Septaginturion}}}}{{#ifeq:{{#var:tens}}|6|{{#vardefine:name|Sextaginturion}}}}{{#ifeq:{{#var:tens}}|5|{{#vardefine:name|Quinquaginturion}}}}{{#ifeq:{{#var:tens}}|4|{{#vardefine:name|Quatraginturion}}}}{{#ifeq:{{#var:tens}}|3|{{#vardefine:name|Triginturion}}}}{{#ifeq:{{#var:tens}}|2|{{#vardefine:name|Viginturion}}}}{{#ifeq:{{#var:tens}}|1|{{#vardefine:name|Decurion}}}}{{#ifeq:{{#var:tens}}|0|{{#vardefine:name|Nullaturion}}}}</includeonly>{{Ribbon
<tr>
+
| color    = purple
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: purple; border-collapse: separate;"><div>[[Image:Longtrekbadge.png|44px]]</div></td>
+
| icon    = Longtrekbadge.png
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{name|}}}|{{{name}}}|This user}} earned the [[XKCD Centurion|XKCD {{#var:name}}]] achievement'''
+
| user    = {{{name|}}}
:by attending {{{count}}} Saturday meetup{{#ifeq:{{{count}}}|1||s}}. </td>
+
| achievement = [[XKCD Centurion|XKCD {{#var:name}}]] Achievement
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
+
| action  = attending {{{count}}} Saturday meetup{{#ifeq:{{{count}}}|1||s}}
</tr>
+
| image    = {{{image|}}}
</table><includeonly>[[Category:XKCD Centurion achievement|{{#var:tens}}0]]</includeonly><noinclude>
+
| category = XKCD Centurion achievement
 +
}}<noinclude>
 
'''How to use this template:'''
 
'''How to use this template:'''
  

Revision as of 10:59, 15 February 2009

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.