Difference between revisions of "Template:Democracy"

From Geohashing
(Ribbon for achievement)
 
(adding name of the election as an optional parameter)
 
Line 4: Line 4:
 
|user    = {{{name|}}}
 
|user    = {{{name|}}}
 
|achievement = [[Democracy achievement]]
 
|achievement = [[Democracy achievement]]
|action  = voting on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]], the same day as their expedition to the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash]
+
|action  = voting{{#if:{{{election|}}}| in the {{{election}}}|}} on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]], the same day as their expedition to the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash]
 
|image    = {{{image|}}}
 
|image    = {{{image|}}}
 
|category = Democracy achievement
 
|category = Democracy achievement
Line 14: Line 14:
 
:| longitude = '''longitude''' (required)
 
:| longitude = '''longitude''' (required)
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 +
:''| election = '''name of the election''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
Line 26: Line 27:
 
| longitude = 10
 
| longitude = 10
 
| date = 2009-06-07
 
| date = 2009-06-07
 +
| election = European elections
 
| name = Zb and Baerenfell
 
| name = Zb and Baerenfell
 
}}</pre> appears as:
 
}}</pre> appears as:
Line 33: Line 35:
 
| longitude = 10
 
| longitude = 10
 
| date = 2009-06-07
 
| date = 2009-06-07
 +
| election = European elections
 
| name = Zb and Baerenfell
 
| name = Zb and Baerenfell
 
}}
 
}}

Latest revision as of 07:57, 9 June 2024

Voting.png
This user earned the Democracy achievement
by voting on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]], the same day as their expedition to the ({{{latitude}}}, {{{longitude}}}) geohash.

How to use this template:

{{Democracy

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| election = name of the election (optional)
| name = name of achiever (optional)
| image = image name (optional)

}}

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


Example:

{{Democracy
| latitude = 47
| longitude = 10
| date = 2009-06-07
| election = European elections
| name = Zb and Baerenfell
}}

appears as:

Voting.png
Zb and Baerenfell earned the Democracy achievement
by voting in the European elections on 2009-06-07, the same day as their expedition to the (47, 10) geohash.