Difference between revisions of "Template:Infobox island"

From Wikishire
Jump to: navigation, search
m (Fix again)
Line 1: Line 1:
 
{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
 
{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
|colspan=2 class= style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#if: {{{name|}}}'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{norse| }}}| <br>{{lang|non|{{{norse}}} }} }}
+
|colspan=2 class= style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#if: {{{name|}}}'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{norse| }}}| <br>{{lang|non|{{{norse}}} }} }}<!--Op codes here
 +
-->{{#vardefine:archipel|0}}{{#if:{{{group|}}}|{{#vardefine:archipel|{{namefix|{{{group}}} }} }}{{#switch:{{namefix|{{{group}}} }}
 +
|Orkney={{#vardefine:shire|Orkney}}
 +
|Shetland={{#vardefine:shire|Shetland}}
 +
}} }}{{#vardefine:shire|{{namefix|{{{county}}} }} }}{{#switch:{{#var:shire}}
 +
|Orkney={{#vardefine:archipel|Orkney}}
 +
|Shetland={{#vardefine:archipel|Shetland}}
 +
}}{{#switch:{{#var:archipel}}
 +
|0={{#vardefine:cats|shireonly}}
 +
|Orkney
 +
|Shetland
 +
|Isles of Scilly
 +
|British Isles={{#vardefine:cats|grouponly}}
 +
|{{#vardefine:cats|group&shire}} }}{{#vardefine:labels|{{#switch:{{#var:cats}}
 +
|shireonly=[[{{#var:shire}}]]
 +
|grouponly=[[{{#var:archipel}}]]
 +
|[[{{#var:archipel}}]]<br>([[{{#var:shire}}]])}}}}{{#if:{{{highest point|}}}|{{#vardefine:summit|{{{highest point}}} }} }}{{#if:{{{summit|}}}|{{#vardefine:summit|{{{summit}}} }} }}{{#if:{{{highest elevation|}}}|{{#vardefine:summit|{{{highest elevation}}} }} }}<!--end of op codes-->
 
|-
 
|-
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
 
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}}
{{#if:{{{group|}}}|{{IsleGroup&Shire|{{namefix|{{{group}}} }}|{{namefix|{{{name}}} }}|{{namefix|{{{county}}} }} }}|{{{county}}} }}
+
{{#var:labels}}
 
|- class="note"
 
|- class="note"
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
 
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 33: Line 49:
 
! style="background: #D0F0C0;" {{!}} Grid reference:
 
! style="background: #D0F0C0;" {{!}} Grid reference:
 
{{!}} {{{os grid ref}}} }}
 
{{!}} {{{os grid ref}}} }}
 +
|-
 +
{{#ifeq:{{#varexists:summit}}|1|
 +
! style="background: #D0F0C0;" {{!}} Highest point:
 +
{{!}} {{#var:summit}} }}
 
|-
 
|-
 
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Data'''
 
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Data'''
Line 55: Line 75:
 
! style="background: #D0F0C0;" {{!}} Website:
 
! style="background: #D0F0C0;" {{!}} Website:
 
{{!}} {{{website}}} }}
 
{{!}} {{{website}}} }}
|}<includeonly>
+
|}<includeonly>{{#switch:{{#var:cats}}
{{#if:{{{group|}}}|{{#switch:{{namefix|{{{group}}}}}|Orkney=[[Category:Orkney]]|Shetland=[[Category:Shetland]]|Isles of Scilly=[[Isles of Scilly]]|[[Category:{{namefix|{{{group}}}}}]]}}|{{#if:{{{county|}}}|[[Category:Islands of {{namefix|{{{county}}}}}]]}} }}
+
|grouponly=[[Category:{{#var:archipel}}]]
</includeonly><noinclude>{{Infobox island/doc}}</noinclude>
+
|shireonly=[[Category:Islands of {{#var:shire}}]]
 +
|group&shire=[[Category:{{#var:archipel}}]] [[Category:Islands of {{#var:shire}}]]}}</includeonly><noinclude>{{Infobox island/doc}}</noinclude>

Revision as of 22:34, 14 June 2011

Infobox island

[[{{{county}}}]]

[[File:{{{picture}}}|240px]]
{{{picture caption}}}
Main town: {{{main town}}}
Main village: {{{main village}}}
Main settlement: {{{main settlement}}}
Location

[[File:{{{map}}}|240px]]

Location: {{{latitude}}} N, {{{longitude}}} E
Grid reference: {{{os grid ref}}}
Data
Population: {{{population}}}
Website: {{{website}}}
Template:Infobox island/doc