Difference between revisions of "Template:Combo"

From Geohashing
imported>Calamus
(Added support for consolation prizes)
imported>Calamus
m (Right... wrong syntax version)
Line 3: Line 3:
 
| iconcode = [[File:{{{icon1}}}|22px]]{{#if:{{{icon2|}}}| [[File:{{{icon2}}}|22px]]|}}{{#if:{{{icon3|}}}| [[File:{{{icon3}}}|22px]]|}}{{#if:{{{icon4|}}}| [[File:{{{icon4}}}|22px]]|}}{{#if:{{{icon5|}}}| [[File:{{{icon5}}}|22px]]|}}{{#if:{{{icon6|}}}| [[File:{{{icon6}}}|22px]]|}}{{#if:{{{icon7|}}}| [[File:{{{icon7}}}|22px]]|}}{{#if:{{{icon8|}}}| [[File:{{{icon8}}}|22px]]|}}
 
| iconcode = [[File:{{{icon1}}}|22px]]{{#if:{{{icon2|}}}| [[File:{{{icon2}}}|22px]]|}}{{#if:{{{icon3|}}}| [[File:{{{icon3}}}|22px]]|}}{{#if:{{{icon4|}}}| [[File:{{{icon4}}}|22px]]|}}{{#if:{{{icon5|}}}| [[File:{{{icon5}}}|22px]]|}}{{#if:{{{icon6|}}}| [[File:{{{icon6}}}|22px]]|}}{{#if:{{{icon7|}}}| [[File:{{{icon7}}}|22px]]|}}{{#if:{{{icon8|}}}| [[File:{{{icon8}}}|22px]]|}}
 
| user    = {{{name|}}}
 
| user    = {{{name|}}}
| achievement = {{{comboname}}} {{#if:{{#var success}}==false|Achievement|Consolation Prize}}
+
| achievement = {{{comboname}}} {{#ifeq:{{#var success}}|false|Achievement|Consolation Prize}}
 
| action  = {{{action}}} at the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 
| action  = {{{action}}} at the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 
| image    = {{{image|}}}
 
| image    = {{{image|}}}

Revision as of 18:51, 11 November 2012

[[File:{{{icon1}}}|22px]]
This user earned the {{{comboname}}} Consolation Prize
by {{{action}}} at the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].

How to use this template:

{{Combo

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| comboname = name of the fused achievement (please concatenate the achievement names in the most silly combination possible (required))
| action = all the stuff you did (as one or more gerunds, also in the most silly combination possible (optional))
| name = name of achiever (optional)
| success = whether you reached the hashpoint (if this is false, it will say "Consolation Prize" instead of "Achievement" (optional))
| image = image name (optional)
| color = border colour (we suggest a blend of the simplex achievements (optional))
| icon1 = icon of the first achievement (we're not yet smart enough to guess this)
| icon2 = icon of the second achievement (optional for logicians and mathematicians)
| icon3 = icon of the third achievement (optional for underachievers)
| icon4 = icon of the fourth achievement (optional for mortals)
... (this one goes to 8)
| cat1 = category of the first achievement (we're not yet smart enough to guess this)
| cat2 = category of the second achievement (optional for logicians and mathematicians)
| cat3 = category of the third achievement (optional for underachievers)
| cat4 = category of the fourth achievement (optional for mortals)
... (this one goes to 8)

}}

The image name should not include 'Image:' or surrounding braces.

Example:

{{Combo
| comboname = Underwater Camping
| action = diving and camping
| latitude = 53
| longitude = 13
| date = 2009-07-15
| name = relet
| icon1 = Underwater.PNG
| icon2 = PoisonIvy.png
| cat1 = Underwater geohash achievement
| cat2 = Camping geohash achievement
}}

appears as:

Underwater.PNGPoisonIvy.png
relet earned the Underwater Camping Achievement
by diving and camping at the (53, 13) geohash on 2009-07-15.