Difference between revisions of "Template:Xkcd centurion"

From Geohashing
imported>Relet
(testing)
 
imported>Relet
(more testing)
Line 1: Line 1:
{{#vardefine:name|Centurion}}
+
<includeonly>{{#vardefine:name|Centurion}}
<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
+
{{#ifexpr:{{{count}}}<100|{{#vardefine:name|Nonaginturion}}}}
 +
{{#ifexpr:{{{count}}}<90|{{#vardefine:name|Octaginturion}}}}
 +
{{#ifexpr:{{{count}}}<80|{{#vardefine:name|Septaginturion}}}}
 +
{{#ifexpr:{{{count}}}<70|{{#vardefine:name|Sextaginturion}}}}
 +
{{#ifexpr:{{{count}}}<60|{{#vardefine:name|Quinquaginturion}}}}
 +
{{#ifexpr:{{{count}}}<50|{{#vardefine:name|Quadraginturion}}}}
 +
{{#ifexpr:{{{count}}}<40|{{#vardefine:name|Triginturion}}}}
 +
{{#ifexpr:{{{count}}}<30|{{#vardefine:name|Viginturion}}}}
 +
{{#ifexpr:{{{count}}}<20|{{#vardefine:name|Decurion}}}}
 +
{{#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>
 
<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="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>
Line 10: Line 19:
  
 
<noinclude>
 
<noinclude>
<!--
 
 
'''How to use this template:'''
 
'''How to use this template:'''
  
&#x007B;{drag-along
+
&#x007B;{XKCD Centurion
:| latitude = '''latitude''' (required)
+
:| count = '''count''' (number of Saturday meetings attended)
:| longitude = '''longitude''' (required)
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:''| partner = '''partner''' (optional, username of person who you Dragged)''
 
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
Line 24: Line 29:
 
The image name should not include 'Image:' or surrounding braces.
 
The image name should not include 'Image:' or surrounding braces.
  
'''Example with another user:'''
+
Examples:
<pre><nowiki>{{drag-along
+
<pre><nowiki>{{XKCD Centurion
| latitude = 47
+
| count = 100
| longitude = -122
+
| name = Romulus Rebus
| date = 2008-05-25
 
| partner = [[User:Jevanyn|]]
 
| name = Widdershins
 
| image = Widder.jpg
 
 
}}</nowiki></pre> appears as:
 
}}</nowiki></pre> appears as:
  
{{drag-along
+
{{XKCD Centurion
| latitude = 47
+
| date = 100
| longitude = -122
+
| name = Romulus Rebus
| date = 2008-05-25
 
| partner = [[User:Jevanyn|Jevanyn]]
 
| name = Widdershins
 
| image = Widder.jpg
 
 
}}
 
}}
 
+
----
'''Example with a non-user:'''
+
<pre><nowiki>{{XKCD Centurion
<pre><nowiki>{{drag-along
+
| count = 15
| latitude = 47
+
| name = Romulus Rebus
| longitude = -122
 
| date = 2008-05-25
 
| partner = a friend
 
| name = Widdershins
 
| image = Widder.jpg
 
 
}}</nowiki></pre> appears as:
 
}}</nowiki></pre> appears as:
  
{{drag-along
+
{{XKCD Centurion
| latitude = 47
+
| date = 15
| longitude = -122
+
| name = Romulus Rebus
| date = 2008-05-25
 
| partner = a friend
 
| name = Widdershins
 
| image = Widder.jpg
 
 
}}
 
}}
  
'''Example:'''
 
<code>&#x007B;{drag-along
 
| latitude = 47
 
| longitude = -122
 
| date = 2008-05-25
 
| name = Widdershins
 
}}</code> appears as:
 
 
{{drag-along
 
| latitude = 47
 
| longitude = -122
 
| date = 2008-05-25
 
| name = Widdershins
 
}}
 
  
'''Example:'''
 
<code>&#x007B;{drag-along
 
| latitude = 47
 
| longitude = -122
 
| date = 2008-05-25
 
}}</code> appears as:
 
  
{{drag-along
 
| latitude = 47
 
| longitude = -122
 
| date = 2008-05-25
 
}}
 
-->
 
 
[[Category:Achievement award templates]]
 
[[Category:Achievement award templates]]
 
</noinclude>
 
</noinclude>

Revision as of 21:14, 3 November 2008

Longtrekbadge.png
This user earned the XKCD achievement
by attending Template:Count saturday meetups.

[[Category: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:

Centurion.png
Romulus Rebus earned the xkcd Centurion achievement
by attending {{{count}}} Saturday meetups.

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

appears as:

Centurion.png
Romulus Rebus earned the xkcd Centurion achievement
by attending {{{count}}} Saturday meetups.