Difference between revisions of "Template:Climb"
From Geohashing
m (Fixing issue with empty template) |
Coyotebush (talk | contribs) m (remove line break after ribbon) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine:category|Small}}<includeonly>{{#if:{{{elevation|}}}|{{#ifexpr:{{{elevation}}} / | + | {{#vardefine:category|Small}}<includeonly>{{#if:{{{elevation|}}}|{{#ifexpr:{{{elevation}}} / 250 >= 1|{{#vardefine:category|Large}}}}{{#ifexpr:{{{elevation}}} / 500 >= 1|{{#vardefine:category|Great}}}}{{#ifexpr:{{{elevation}}} / 750 >= 1|{{#vardefine:category|Huge}}}}{{#ifexpr:{{{elevation}}} / 1000 >= 1|{{#vardefine:category|Massive}}}}{{#ifexpr:{{{elevation}}} / 2500 >= 1|{{#vardefine:category|Colossal}}}}}}{{#if:{{{mode|}}}|[[Category:Climbed by {{{mode}}}]]}}</includeonly>{{Ribbon |
|color = orange | |color = orange | ||
|icon = OWN Ribbon.jpg | |icon = OWN Ribbon.jpg | ||
Line 7: | Line 7: | ||
|image = {{{image|}}} | |image = {{{image|}}} | ||
|category = Climb achievement | |category = Climb achievement | ||
− | }} | + | }}<noinclude> |
− | <noinclude> | ||
'''How to use this template:''' | '''How to use this template:''' | ||
Latest revision as of 17:40, 13 May 2024
This user earned the Small Climb achievement
|
How to use this template:
{{Climb
- | latitude = latitude (required)
- | longitude = longitude (required)
- | date = date (YYYY-MM-DD format) (required)
- | elevation = elevation gain in metres (required)
- | mode = primary mode of transport (foot, bike, etc.) (optional, adds "Climbed by mode" category)
- | name = name of achiever (optional)
- | image = image name (optional)
}}
The image name should not include 'Image:' or surrounding braces.
Example:
{{Climb | latitude = 56 | longitude = -4 | date = 2024-03-30 | elevation = 278 | mode = foot | name = [[User:KerrMcF|KerrMcF]] }}
appears as:
KerrMcF earned the Large Climb achievement
|
Example:
{{Climb | latitude = 46 | longitude = 5 | date = 2009-09-21 | elevation = 650 | name = [[User:Crox|Crox]] }}
appears as:
Crox earned the Great Climb achievement
|
Example:
{{Climb | latitude = 50 | longitude = 13 | date = 2015-05-25 | elevation = 380 | mode = bike | name = [[User:Danatar|Danatar]] }}
appears as:
Danatar earned the Large Climb achievement
|