Difference between revisions of "Template:Infobox island parish"

From Wikishire
Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
|Isle of Man
 
|Isle of Man
 
|Montserrat={{#vardefine:shire|{{{island}}}}}{{#vardefine:tag|{{{island}}}}}
 
|Montserrat={{#vardefine:shire|{{{island}}}}}{{#vardefine:tag|{{{island}}}}}
|{{#vardefine:tag|{{#var:shire}}}} }}
+
|{{#switch:{{#var:shire}}
 +
|Bailiwick of Guernsey={{#vardefine:tag|Guernsey}}
 +
|Bailiwick of Jersey={{#vardefine:tag|Jersey}}
 +
|{{#vardefine:tag|{{#var:shire}}}} }} }}
 
|-
 
|-
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}'''[[{{#var:tag}}]]'''
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}'''[[{{#var:tag}}]]'''
Line 41: Line 44:
 
! style="background: #D0F0C0;" {{!}} Main settlement:
 
! style="background: #D0F0C0;" {{!}} Main settlement:
 
{{!}} {{{main settlement}}} }}
 
{{!}} {{{main settlement}}} }}
 +
|-
 +
{{#if:  {{{island<includeonly>|</includeonly>}}} |
 +
!  style="background:  #D0F0C0;" {{!}} Island:
 +
{{!}} {{IsleID|{{{island}}}|{{namefix|{{{county}}}}} }} }}
 +
|-
 +
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
 +
! style="background: #D0F0C0;" {{!}} Grid reference:
 +
{{!}} {{getmap|{{{os grid ref}}}|{{{os grid ref}}}}} }}
 +
|-
 +
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
 +
! style="background: #D0F0C0;" {{!}} Location:
 +
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=13}}}}
 
|-
 
|-
 
{{#if: {{{website<includeonly>|</includeonly>}}} |
 
{{#if: {{{website<includeonly>|</includeonly>}}} |
 
! style="background: #D0F0C0;" {{!}} Website:
 
! style="background: #D0F0C0;" {{!}} Website:
 
{{!}} {{{website}}} }}
 
{{!}} {{{website}}} }}
|}<includeonly>[[Category:Parishes of {{#var:tag}}]]</includeonly><noinclude>{{Infobox island parish/doc}}</noinclude>
+
|}<includeonly>{{#ifeq:{{#var:tag}}|Isle of Man|[[Category:Parishes of the Isle of Man]]|[[Category:Parishes of {{#var:tag}}]]}}</includeonly><noinclude>{{Infobox island parish/doc}}</noinclude>

Latest revision as of 14:00, 20 February 2018

Infobox island parish
[[]]
[[File:{{{picture}}}|240px]]
{{{picture caption}}}
[[File:{{{arms}}}|80px|Arms of Infobox island parish]]
[[File:{{{map}}}|center|200px|Map showing Infobox island parish]]
Area: {{{area}}}
Population: {{{population}}}
Main town: {{{main town}}}
Main village: {{{main village}}}
Main settlement: {{{main settlement}}}
Island: [[{{{island}}}]]
Grid reference: Expression error: Unexpected < operator.&y=Expression error: Unexpected < operator.&z=120 {{{os grid ref}}}
Location: {{{latitude}}} {{{longitude}}}
Website: {{{website}}}
Template:Infobox island parish/doc