Difference between revisions of "Template:Infobox island"

From Wikishire
Jump to: navigation, search
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">{{#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
 
|colspan=2 class= 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|{{#if:{{{group|}}}|{{islegroupfix|{{{group}}}}}|
+
-->{{#ifeq:{{{name}}}|Great Britain||{{#ifeq:{{{name}}}|Ireland||{{#vardefine:archipel|{{#if:{{{group|}}}|{{islegroupfix|{{{group}}}}}|
 
{{#switch:{{#var:shire}}
 
{{#switch:{{#var:shire}}
 
|Falkland Islands=Falkland Islands
 
|Falkland Islands=Falkland Islands
Line 22: Line 22:
 
|{{#var:shire}}={{shead|{{#var:shire}}}}
 
|{{#var:shire}}={{shead|{{#var:shire}}}}
 
|{{Isle Head&Cat|{{#var:archipel}}|head}}
 
|{{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-->
+
{{#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%;" {{!}}

Revision as of 14:13, 11 June 2019

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: Expression error: Unexpected < operator.&y=Expression error: Unexpected < operator.&z=120 {{{os grid ref}}}
Area: {{{area}}}
Data
Population: {{{population}}}
Website: {{{website}}}
Template:Infobox island/doc