Difference between revisions of "Template:Infobox Scottish island"

From blackwiki
Jump to navigation Jump to search
imported>Ben MacDui
(popn rank "out of 97" - removing Forewick Holm)
imported>Thumperward
(de-cruft syntax)
Line 1: Line 1:
<!-- Infobox template for Scottish Islands -->{| class="infobox vcard" width="280" style="font-size: 90%;"
+
{| class="infobox vcard" style="font-size: 88%; width: 22em"
!align="center" colspan="2" |<big class="fn org">{{#if: {{{official_name|}}}|{{{official_name}}}|'''{{PAGENAME}}'''}}</big>
+
! colspan=2 class="fn org" style="text-align: center; font-size: 125%" | {{{official_name|{{PAGENAME}} }}}
 
|-
 
|-
|- style="vertical-align: top;"
+
{{#if:{{{Image|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{Image}}}{{!}}200px{{!}}border]]
 +
{{!}}-
 +
}}
 +
! colspan=2 style="background-color: #efefef" | Location
 
|-
 
|-
{{#if:{{{Image|}}}|
+
{{#if:{{{Map|<noinclude>-</noinclude>}}} |
{{!}}colspan="2" align=center{{!}}[[Image:{{{Image}}}{{!}}200px{{!}}border]]
+
{{!}} colspan=2 style="text-align: center" {{!}} [[Image:{{{Map|}}}|115px|none|{{{MapCaption|}}}]]
{{!-}}}}
+
{{!}}-
!colspan="2" bgcolor="#efefef"|Location
+
{{#if:{{{MapCaption|}}}|
{{#if: {{{Map|<noinclude>-</noinclude>}}} |
+
{{!}} colspan=2 style="text-align: center" {{!}} {{{MapCaption|}}}
 
{{!}}-
 
{{!}}-
{{!}} align="center" colspan="2" {{!}} [[Image:{{{Map|}}}|115px|none|{{{MapCaption|}}}]]{{#if:{{{MapCaption|}}}|<small>{{{MapCaption|}}}</small>}}
+
}}
{{!}}- }}
+
}}
 
{{#if: {{{latitude|}}}|
 
{{#if: {{{latitude|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} {{Location map|Scotland|label={{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}}|lat={{{latitude}}}|long={{{longitude}}}|width=200|float=center|caption=}}
 
{{!}}-
 
{{!}}-
{{!}}colspan="2" align=center{{!}} {{Location map|Scotland|label={{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}}|lat={{{latitude}}}|long={{{longitude}}}|width=200|float=center|caption=}}
+
{{!}} colspan=2 style="text-align: center" {{!}} ''{{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}} shown within Scotland.''
 
{{!}}-
 
{{!}}-
{{!}}colspan="2" align=center{{!}} ''{{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}} shown within Scotland.''
 
 
}}
 
}}
 
|- class="note"
 
|- class="note"
|[[British national grid reference system|OS grid reference]]:||{{gbmapscaled|{{{GridReference}}}|25|{{{GridReference}}}}}  
+
| [[British national grid reference system|OS grid reference]]:
 +
| {{gbmapscaled|{{{GridReference}}}|25|{{{GridReference}}}}}
 
|-
 
|-
 
{{#if: {{{coordinates<includeonly>|</includeonly>}}} |  
 
{{#if: {{{coordinates<includeonly>|</includeonly>}}} |  
 
{{!}} [[Geographic coordinate system|Coordinates]]:
 
{{!}} [[Geographic coordinate system|Coordinates]]:
 
{{!}} {{{coordinates}}}
 
{{!}} {{{coordinates}}}
 +
{{!}}-
 
}}
 
}}
 +
! colspan=2 style="background-color: #efefef" | Names
 +
|-
 +
| style="width: 50%" | [[Scottish Gaelic language|Gaelic]] name:
 +
| class="note" | {{{celtic name}}}
 
|-
 
|-
!colspan="2" bgcolor="#efefef"|Names
 
|- class="note"
 
|- style="vertical-align: top;"
 
|style="width: 50%;"|[[Scottish Gaelic language|Gaelic]] name:|| {{{celtic name}}}
 
 
{{#if:{{{norse name|}}}|
 
{{#if:{{{norse name|}}}|
{{!}}- class="note"
+
{{!}} [[Old Norse|Norse]] name:
{{!}}[[Old Norse|Norse]] name:
+
{{!}} class="note" {{!}} {{{norse name}}}
{{!}} {{{norse name}}}}}
+
{{!}}-
 +
}}
 
{{#if:{{{meaning of name|}}}|
 
{{#if:{{{meaning of name|}}}|
{{!}}- class="note"
+
{{!}} Meaning of name:
{{!}}Meaning of name:
+
{{!}} class="note" {{!}} {{{meaning of name}}}
{{!}} {{{meaning of name}}}}}
+
{{!}}-
|- style="vertical-align: top;"
+
}}
 +
! colspan=2 style="background-color: #efefef" | Area and Summit
 +
|-
 +
| Area:
 +
| class="note" | {{{area}}}
 
|-
 
|-
!colspan="2" bgcolor="#efefef"|Area and Summit
 
|- class="note"
 
|Area:|| {{{area}}}
 
 
{{#if:{{{area rank|}}}|
 
{{#if:{{{area rank|}}}|
 +
{{!}} Area rank:
 +
{{!}} {{{area rank}}}
 
{{!}}-
 
{{!}}-
{{!}}Area rank:
+
}}
{{!}} {{{area rank}}} }} 
+
| Highest elevation:
|-
+
| {{{highest elevation}}}
|Highest elevation:|| {{{highest elevation}}}
+
|-
|- style="vertical-align: top;"
+
! colspan=2 style="background-color: #efefef" | Population
 +
|-
 +
| [[Demographics of Scotland|Population]] (2001):
 +
| class="note" | {{{Population}}}
 
|-
 
|-
!colspan="2" bgcolor="#efefef"|Population
 
|- class="note"
 
|[[Demographics of Scotland|Population]] (2001):|| {{{Population}}}
 
 
{{#if:{{{population rank|}}}|
 
{{#if:{{{population rank|}}}|
 +
{{!}} Population rank:
 +
{{!}} {{{population rank}}} out of 97
 
{{!}}-
 
{{!}}-
{{!}}Population rank:
+
}}
{{!}} {{{population rank}}} out of 97}}
 
 
{{#if:{{{main settlement|}}}|
 
{{#if:{{{main settlement|}}}|
{{!}}- class="note"
+
{{!}} Main settlement:
{{!}}Main settlement:
+
{{!}} class="note" {{!}} {{{main settlement}}}
{{!}} {{{main settlement}}}}}
+
{{!}}-
 +
}}
 +
|- style="vertical-align: top"
 +
|-
 +
! colspan=2 style="background-color: #efefef" | Groupings
 
|-
 
|-
|- style="vertical-align: top;"
+
| Island Group:
 +
| class="note" | {{{island group}}}
 
|-
 
|-
!colspan="2" bgcolor="#efefef"|Groupings
+
| [[Subdivisions of Scotland|Local Authority:]]
|- class="note"
+
| class="note" | {{{local authority}}}
|Island Group:|| {{{island group}}}
 
|- class="note"
 
|[[Subdivisions of Scotland|Local Authority:]]|| {{{local authority}}}
 
 
|-
 
|-
!colspan="2" bgcolor="#efefef"|[[Image:Flag of Scotland.svg|40px|Scotland]] [[Image:Lymphad3.svg|50px|]]
+
! colspan=2 style="background-color: #efefef" | [[Image:Flag of Scotland.svg|40px|Scotland]] [[Image:Lymphad3.svg|50px|]]
 
|-
 
|-
|<small>References:</small>|| <small>{{{references}}}</small>
+
| <small>References:</small>
 +
| <small>{{{references}}}</small>
 
|-
 
|-
!align="center" colspan="2" |<small>If shown, area and population ranks are for all Scottish islands and all inhabited Scottish islands respectively.</small>
+
! colspan=2 style="text-align: center" | <small>If shown, area and population ranks are for all Scottish islands and all inhabited Scottish islands respectively.</small>
|}<noinclude>
+
|}<noinclude>{{template doc}}<!-- Please put categories ans interwikis on the /doc subpage --></noinclude>
{{template doc}}
 
<!-- Please put categories ans interwikis on the /doc subpage -->
 
</noinclude>
 

Revision as of 09:52, 7 August 2009

Infobox Scottish island
Location
[[Image:|115px|none|]]
OS grid reference: Template:OS coord
Coordinates: {{{coordinates}}}
Names
Gaelic name: {{{celtic name}}}
Area and Summit
Area: {{{area}}}
Highest elevation: {{{highest elevation}}}
Population
Population (2001): {{{Population}}}
Groupings
Island Group: {{{island group}}}
Local Authority: {{{local authority}}}
Scotland Lymphad3.svg
References: {{{references}}}
If shown, area and population ranks are for all Scottish islands and all inhabited Scottish islands respectively.
Template documentation[view] [edit] [history] [purge]

This template is intended to be used as an infobox for an island or an archipelago in Scotland.

Parameters

{{{official_name}}}
[[file:{{{Image}}}|200px|border]]
Location
[[Image:{{{Map}}}|115px|none|{{{MapCaption}}}]]
{{{MapCaption}}}
OS grid reference: Template:OS coord
Names
Gaelic name: {{{celtic name}}}
Norse name: {{{norse name}}}
Meaning of name: {{{meaning of name}}}
Area and Summit
Area: {{{area km2}}} or {{{area sqm}}} or {{{area m2}}} or {{{area sqft}}} or {{{area acre}}} or {{{area ha}}} or {{{area}}}
Area rank: {{{area rank}}}
Highest elevation: {{{highest elevation}}}
Population
Population (2001): {{{Population}}}
Population rank: {{{population rank}}} out of 97
Main settlement: {{{main settlement}}}
Groupings
Island Group: {{{island group}}}
Local Authority: {{{local authority}}}
Scotland Lymphad3.svg
References: {{{references}}}
If shown, area and population ranks are for all Scottish islands and all inhabited Scottish islands respectively.

Expected minimum parameters

{{Infobox Scottish island
| GridReference=
| island group=
| area km2= <!--or |area sqmi= or |area m2= or |area sqft= or |area acre= or |area ha= or |area=-->
| highest elevation= 
| local authority=
| Population=     <!-- 2011 Census -->
| references=
}}

Optional parameters

| official_name=
| celtic name=
| gaelic pronunciation=
| scots name=
| norse name=
| meaning of name=
| image_flag=
| flag_caption=
| image_coat=
| coat_caption=
| Image=          <!-- just the image name "File:" or "Image:" prefix is not required -->
| ImageCaption=
| Map=
| MapCaption=
| location_map=   <!-- To select an alternative map eg "Scotland Orkney", defaults to Scotland -->
| caption=   <!--default: xx shown within Scotland-->
| coordinates = <!-- Use {{Coord}} -->
| area rank= 
| population rank=
| density km2= <!--or | density sqmi= or | population density=-->
| main settlement=

Full list of parameters

{{Infobox Scottish island
<!--Names-->
| official_name=
| celtic name= 
| gaelic pronunciation=
| scots name=
| norse name=
| meaning of name=
<!--Symbols-->
| image_flag=
| flag_caption=
| image_coat=
| coat_caption=
<!--Image-->
| Image=          <!-- just the image name "File:" or "Image:" prefix is not required -->
| ImageCaption=
<!--Location-->
| Map=
| MapCaption=
| location_map=   <!-- To select an alternative map eg "Scotland Orkney", defaults to Scotland -->
| caption=   <!--default: xx shown within Scotland-->
| coordinates = <!-- Use {{Coord}} -->
| GridReference=
<!--Geography-->
| island group=
| area km2=  923 <!--or |area m2= or |area ha= |area=-->
| area rank= 
| highest elevation=  {{convert|336|m|ft|0}} 
<!--Polities-->
| local authority= 
<!--Demographics-->
| Population=  37,872   <!-- 2011 Census -->
| population rank= 1
| density km2= <!--or | density sqmi= or | population density=-->
| main settlement= Brodick
<!--Footer-->
| references=<ref>{{NRS1C}}</ref><ref name=Smith>{{Haswell-Smith}}</ref>
<ref>[http://www.ordnancesurvey.co.uk/ Ordnance Survey]</ref>
}}

Automated features

  • Using |coordinates= will produce a captioned map of Scotland with the location marked and labelled.
  • The parameter |official_name= will replace {{PAGENAME}} as the map heading, label, and in the caption.
  • The map caption becomes "{{PAGENAME}} shown within Scotland" unless |caption=xxx is set.

Microformat

Template:UF-hcard-geo

Tracking category

References