Difference between revisions of "Template:Xkcd centurion"

From Geohashing
imported>Relet
m
(lowercase)
 
(37 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:name|Centurion}}
+
{{#vardefine:name|Centurion}}{{#vardefine:iconsuffix|}}<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|Quadraginturion}}{{#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
{{#ifexpr:{{{count}}}<100|{{#vardefine:name|Nonaginturion}}}}
+
| color    = purple
{{#ifexpr:{{{count}}}<90|{{#vardefine:name|Octaginturion}}}}
+
| icon    = Centurion{{#var:iconsuffix}}.png
{{#ifexpr:{{{count}}}<80|{{#vardefine:name|Septaginturion}}}}
+
| user    = {{{name|}}}
{{#ifexpr:{{{count}}}<70|{{#vardefine:name|Sextaginturion}}}}
+
| achievement = [[xkcd centurion achievement|xkcd {{#var:name}} achievement]]
{{#ifexpr:{{{count}}}<60|{{#vardefine:name|Quinquaginturion}}}}
+
| action  = attending '''{{{count}}}''' Saturday meetup{{#ifeq:{{{count}}}|1||s}}
{{#ifexpr:{{{count}}}<50|{{#vardefine:name|Quadraginturion}}}}
+
| image    = {{{image|}}}
{{#ifexpr:{{{count}}}<40|{{#vardefine:name|Triginturion}}}}
+
| category = xkcd centurion achievement
{{#ifexpr:{{{count}}}<30|{{#vardefine:name|Viginturion}}}}
+
| expedition = ({{{count}}})
{{#ifexpr:{{{count}}}<20|{{#vardefine:name|Decurion}}}}
+
}}<noinclude>{{lowercase}}
{{#ifexpr:{{{count}}}<10|{{#vardefine:name|Nullion}}}}</includeonly><table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
 
<tr>
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: #690000; border-collapse: separate;"><div>[[Image:Longtrekbadge.png|44px]]</div></td>
 
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{name|}}}|{{{name}}}|This user}} earned the XKCD {{#var:name}} achievement'''
 
:by attending {{{count}}} saturday meetups. </td>
 
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
 
</tr>
 
</table>[[Category:XKCD Centurion achievement|{{#var:name}}]]
 
 
 
<noinclude>
 
 
'''How to use this template:'''
 
'''How to use this template:'''
  
&#x007B;{XKCD Centurion
+
&#x007B;{xkcd centurion
 
:| count = '''count''' (number of Saturday meetings attended)
 
:| count = '''count''' (number of Saturday meetings attended)
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
Line 30: Line 20:
  
 
Examples:
 
Examples:
<pre><nowiki>{{XKCD Centurion
+
<pre><nowiki>{{xkcd centurion
 
| count = 100
 
| count = 100
| name = Romulus Rebus
+
| name = Romulus Fatuus Rebus
 +
}}</nowiki></pre> appears as:
 +
 
 +
{{xkcd centurion
 +
| count = 100
 +
| name = Romulus Fatuus Rebus
 +
}}
 +
----
 +
<pre><nowiki>{{xkcd centurion
 +
| count = 50
 +
| name = Romulus Fatuus Rebus
 
}}</nowiki></pre> appears as:
 
}}</nowiki></pre> appears as:
  
{{XKCD Centurion
+
{{xkcd centurion
| date = 100
+
| count = 50
| name = Romulus Rebus
+
| name = Romulus Fatuus Rebus
 
}}
 
}}
 
----
 
----
<pre><nowiki>{{XKCD Centurion
+
<pre><nowiki>{{xkcd centurion
 
| count = 15
 
| count = 15
| name = Romulus Rebus
+
| name = Romulus Fatuus Rebus
 
}}</nowiki></pre> appears as:
 
}}</nowiki></pre> appears as:
  
{{XKCD Centurion
+
{{xkcd centurion
| date = 15
+
| count = 15
| name = Romulus Rebus
+
| name = Romulus Fatuus Rebus
 
}}
 
}}
 
 
 
 
[[Category:Achievement award templates]]
 
[[Category:Achievement award templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:30, 3 June 2024

Centurion.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 Fatuus Rebus
}}

appears as:

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

{{xkcd centurion
| count = 50
| name = Romulus Fatuus Rebus
}}

appears as:

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

{{xkcd centurion
| count = 15
| name = Romulus Fatuus Rebus
}}

appears as:

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