Template:Infobox island: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
mNo edit summary
 
(46 intermediate revisions by 3 users not shown)
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}}} }} }}<!--Op codes here
|colspan=2 style="text-align: center; background:#D0F0C0; font-size: 100%"|<big class="fn org">{{#vardefine:type|island}}{{#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: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}<!--Island Op codes--><!--{{Group-shire|{{{group}}}}}--><!--Groups & shires
-->{{#vardefine:archipel|0}}{{#if:{{{group|}}}|{{#vardefine:archipel|{{namefix|{{{group}}} }} }}{{#switch:{{namefix|{{{group}}} }}
-->{{#ifeq:{{{name}}}|Great Britain||{{#ifeq:{{{name}}}|Ireland||{{#vardefine:archipel|{{#if:{{{group|}}}|{{islegroupfix|{{{group}}}}}|
|Orkney={{#vardefine:shire|Orkney}}
{{#switch:{{#var:shire}}
|Shetland={{#vardefine:shire|Shetland}}
|Falkland Islands=Falkland Islands
}} }}{{#vardefine:shire|{{namefix|{{{county}}} }} }}{{#switch:{{#var:shire}}
|Orkney=Orkney
|Orkney={{#vardefine:archipel|Orkney}}
|Shetland=Shetland
|Shetland={{#vardefine:archipel|Shetland}}
|0}} }} }}{{#vardefine:cats|{{#switch:{{#var:archipel}}
}}{{#switch:{{#var:archipel}}
|0
|0={{#vardefine:cats|shireonly}}
|Chagos
|Orkney
|Chagos Archipelago
|Shetland
|Windward Islands
|Isles of Scilly
|Leeward Islands
|British Isles={{#vardefine:cats|grouponly}}
|West Indies=shireonly
|{{#vardefine:cats|group&shire}} }}{{#vardefine:labels|{{#switch:{{#var:cats}}
|Bristol Channel
|shireonly=[[{{#var:shire}}]]
|Firth of Forth
|grouponly=[[{{#var:archipel}}]]
|Inner Hebrides
|[[{{#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-->
|Outer Hebrides
|Hebrides
|Thames Estuary=group&shire
|grouponly}}}}{{#vardefine:headtag|{{#switch:{{#var:archipel}}
|0
|{{#var:shire}}={{shead|{{#var:shire}}}}
|{{Isle Head&Cat|{{#var:archipel}}|head}}
{{#if:{{{#var:shire}}}|<br>({{shead|{{#var:shire}}}})}}}} }} }} }}{{#if:{{{highest point|}}}|{{#vardefine:summit|{{{highest point}}} }} }}{{#if:{{{summit|}}}|{{#vardefine:summit|{{{summit}}} }} }}{{#if:{{{highest elevation|}}}|{{#vardefine:summit|{{{highest elevation}}} }} }}{{#if:{{{highest height|}}}|{{#vardefine:summit|{{{highest height}}} }} }}<!--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%;" {{!}}
{{#var:labels}}
{{#var:headtag}}
|- class="note"
|- class="note"
{{#if: {{{picture<includeonly>|</includeonly>}}} |
{{#if: {{{picture<includeonly>|</includeonly>}}} |
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|240px]]{{#if: {{{picture caption<includeonly>|</includeonly>}}}|<br />{{{picture caption<includeonly>|</includeonly>}}}}}}}
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|250px]]{{#if: {{{picture caption<includeonly>|</includeonly>}}}|<br />{{{picture caption<includeonly>|</includeonly>}}}}}}}
|-
|-
{{#if: {{{main town<includeonly>|</includeonly>}}} |
{{#if: {{{main town<includeonly>|</includeonly>}}} |
Line 36: Line 43:
{{!}} {{{main settlement}}} }}
{{!}} {{{main settlement}}} }}
|-
|-
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
|colspan="2" style="background: #D0F0C0; text-align: center;"|'''Location'''
|-
|-
{{#if: {{{map<includeonly>|</includeonly>}}} |
{{#if: {{{map<includeonly>|</includeonly>}}} |
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}}
[[File:{{{map}}}|240px]]}}
[[File:{{{map}}}|240px|{{{map caption}}}]]}}
|-
|-
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
{{#if: {{{latitude<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Location:
! style="background: #D0F0C0;" {{!}} Location:
{{!}} {{{latitude}}} N, {{{longitude}}} E }}
{{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14}} }}
|-
|-
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Grid reference:
! style="background: #D0F0C0;" {{!}} Grid reference:
{{!}} {{{os grid ref}}} }}
{{!}} {{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}} }} }}
|-
{{#if: {{{area<includeonly>|</includeonly>}}} |
! style="background: #D0F0C0;" {{!}} Area:
{{!}} {{box line convert|{{{area}}}}} }}
|-
|-
{{#ifeq:{{#varexists:summit}}|1|
{{#ifeq:{{#varexists:summit}}|1|
Line 54: Line 65:
{{!}} {{#var:summit}} }}
{{!}} {{#var:summit}} }}
|-
|-
| colspan="2" style="background: #D0F0C0; text-align: center;"|'''Data'''
|colspan="2" style="background: #D0F0C0; text-align: center;"|'''Data'''
|-
|-
{{#if: {{{population<includeonly>|</includeonly>}}} |
{{#if: {{{population<includeonly>|</includeonly>}}} |
Line 75: Line 86:
! style="background: #D0F0C0;" {{!}} Website:
! style="background: #D0F0C0;" {{!}} Website:
{{!}} {{{website}}} }}
{{!}} {{{website}}} }}
|}<includeonly>{{#switch:{{#var:cats}}
|}<includeonly>{{Saintsort}}{{#switch:{{#var:cats}}
|grouponly=[[Category:{{#var:archipel}}]]
|grouponly=[[Category:{{Isle Head&Cat|{{#var:archipel}}|category}}]]
|shireonly=[[Category:Islands of {{#var:shire}}]]
|shireonly=[[Category:Islands of {{namefix 2|{{#var:shire}}}}]]
|group&shire=[[Category:{{#var:archipel}}]] [[Category:Islands of {{#var:shire}}]]}}</includeonly><noinclude>{{Infobox island/doc}}</noinclude>
|group&shire=[[Category:{{Isle Head&Cat|{{#var:archipel}}|category}}]] [[Category:Islands of {{namefix 2|{{#var:shire}}}}]]}}{{#if:{{{picture|}}}||[[Category:Natural feature articles with no infobox picture]]}}</includeonly><noinclude>{{Infobox island/doc}}[[Category:Infoboxes|Island]] [[Category:Island infobox templates| ]]</noinclude>

Latest revision as of 17:05, 25 October 2024

Infobox island

[[]]

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

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

Location: {{{latitude}}} {{{longitude}}}
Grid reference:
Area: {{{area}}}
Data
Population: {{{population}}}
Website: {{{website}}}

Template:Infobox island/doc