Difference between revisions of "Template:Infobox Region"

From Hattrick
(Add parser function on regionid to make it so that special pages can be leveraged to find missing regionids, otherwise they produce malformed HT links.)
(regionid line removed in case of missing region id and those region articles categorized)
Line 28: Line 28:
 
| '''Longitude:'''
 
| '''Longitude:'''
 
|{{{longitude}}}
 
|{{{longitude}}}
|-
+
{{#if: {{{regionid|}}}|{{!}}-
| '''RegionID:'''
+
{{!}} '''RegionID:'''
|{{#if: {{{regionid|}}}|[http://www.hattrick.org/World/Regions/Region.aspx?RegionID={{{regionid}}} {{{regionid}}}]|[[File:no.regionid]]}}
+
{{!}}[http://www.hattrick.org/World/Regions/Region.aspx?RegionID={{{regionid}}} {{{regionid}}}]|<includeonly>[[Category:Regions with no id]]</includeonly>}}
 
|-
 
|-
 
| '''[[Hattrick Time|Time zone]]:'''
 
| '''[[Hattrick Time|Time zone]]:'''

Revision as of 21:11, 8 May 2010

{{{full_local_name}}}
[[Image:{{{image_coat}}}|100px|Coat of {{{name_(english)}}}]]
Link to Wikipedia
Continent: [[{{{continent}}}]]
Zone: [[{{{zone}}}]]
Country: [[{{{country}}}]]
Latitude: {{{latitude}}}
Longitude: {{{longitude}}}
Time zone: {{{htt_offset}}}
{{{footnotes}}}