Difference between revisions of "Template:Infobox Scottish island"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
(add parameter "scots name" (see data3) to the invocation of Module:Check for unknown parameters)
 
(135 intermediate revisions by 27 users not shown)
Line 1: Line 1:
<!-- Infobox template for Scottish Islands -->{| class="infobox vcard" width="280" style="font-size: 90%;"
+
<includeonly>{{Infobox
!align="center" colspan="2" |<big class="fn org">{{#if: {{{official_name|}}}|{{{official_name}}}|'''{{PAGENAME}}'''}}</big>
+
| bodyclass = vcard
|-
+
| aboveclass = fn org
|- style="vertical-align: top;"
+
| title = {{{official_name|{{PAGENAMEBASE}} }}}
|-
+
 
{{#if:{{{Image|}}}|
+
| headerstyle = background-color: #efefef
{{!}}colspan="2" align=center{{!}}[[Image:{{{Image}}}{{!}}200px{{!}}border]]
+
| labelstyle = padding-top:0.2em;line-height:1.2em;
{{!-}}}}
+
 
!colspan="2" bgcolor="#efefef"|Location
+
| label1  = [[Scottish Gaelic]] name
{{#if: {{{Map|<noinclude>-</noinclude>}}} |
+
| class1  = nickname
{{!}}-
+
| data1  = {{#if:{{{celtic name|}}} | {{lang|gd|{{{celtic name}}}}} |}}
{{!}} align="center" colspan="2" {{!}} [[Image:{{{Map|}}}|115px|none|{{{MapCaption|}}}]]{{#if:{{{MapCaption|}}}|<small>{{{MapCaption|}}}</small>}}
+
 
{{!}}- }}
+
| label2  = Pronunciation
{{#if: {{{latitude|}}}|
+
| data2  = {{{gaelic pronunciation|}}}
{{!}}-
+
 
{{!}}colspan="2" align=center{{!}} {{Location map|Scotland|label={{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}}|lat={{{latitude}}}|long={{{longitude}}}|width=200|float=center|caption=}}
+
| label3  = [[Scots language|Scots]] name
{{!}}-
+
| class3  = nickname
{{!}}colspan="2" align=center{{!}} ''{{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAME}}}} shown within Scotland.''
+
| data3  = {{#if:{{{scots name|}}} | {{lang|sco|{{{scots name}}}}} |}}
}}
+
 
|- class="note"
+
| label4  = [[Old Norse]] name
|[[British national grid reference system|OS grid reference]]:||{{gbmapscaled|{{{GridReference}}}|25|{{{GridReference}}}}}  
+
| class4  = nickname
|-
+
| data4  = {{#if:{{{norse name|}}} | {{lang|non|{{{norse name}}}}} |}}
{{#if: {{{coordinates<includeonly>|</includeonly>}}} |
+
 
{{!}} [[Geographic coordinate system|Coordinates]]:
+
| label5  = Meaning of name
{{!}} {{{coordinates}}}
+
| rowclass5 = note
}}
+
| data5  = {{{meaning of name|}}}
|-
+
 
!colspan="2" bgcolor="#efefef"|Names
+
| data6    = {{#if:{{{image_flag|}}}{{{image_coat|}}}|<div style="display: table; width: 100%; border-collapse: collapse;">
|- class="note"
+
  {{#if:{{{image_flag|}}}|<div style="display: table-cell;">[[File:{{{image_flag|}}}|border|center|125px]]<div>{{{flag_caption|}}}</div></div>}}
|- style="vertical-align: top;"
+
  {{#if:{{{image_coat|}}}|<div style="display: table-cell;">[[File:{{{image_coat|}}}|center|80px]]<div>{{{coat_caption|}}}</div></div>}}
|style="width: 50%;"|[[Scottish Gaelic language|Gaelic]] name:|| {{{celtic name}}}
+
</div>}}
{{#if:{{{norse name|}}}|
+
 
{{!}}- class="note"
+
| data7  = {{#if:{{{Image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size=255px|border=yes|title={{{ImageCaption|}}}}}{{#if:{{{ImageCaption|}}}|<br />{{{ImageCaption}}}}} }}
{{!}}[[Old Norse|Norse]] name:
+
 
{{!}} {{{norse name}}}}}
+
| header8  = {{#if:{{{Map|}}}{{{GridReference|}}}{{{coordinates|}}}| Location }}
{{#if:{{{meaning of name|}}}|
+
 
{{!}}- class="note"
+
| data9    = {{#if:{{{Map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{Map|}}}|size=255px}}{{#if:{{{MapCaption|}}}|<br />{{{MapCaption}}}}} }}
{{!}}Meaning of name:
+
 
{{!}} {{{meaning of name}}}}}
+
| data10    = {{#if:{{{coordinates|}}}|{{Location map|{{{location_map|UK Scotland}}}|relief=yes|label={{#if: {{{official_name|}}}|{{{official_name}}}|{{PAGENAMEBASE}}}}|coordinates={{{coordinates|}}}|width=255|float=center|border=infobox|mark= Red pog.svg|marksize= 6|caption={{{caption|{{{official_name|{{PAGENAMEBASE}} }}} shown within Scotland}}}}}}}
|- style="vertical-align: top;"
+
 
|-
+
| label11  = [[Ordnance Survey National Grid|OS grid reference]]
!colspan="2" bgcolor="#efefef"|Area and Summit
+
| data11    = {{#if:{{{GridReference|}}}| {{gbmappingsmall|{{{GridReference}}}}} }}
|- class="note"
+
 
|Area:|| {{{area}}}
+
| label12  = [[Geographic coordinate system|Coordinates]]
{{#if:{{{area rank|}}}|
+
| data12    = {{{coordinates|}}}
{{!}}-
+
 
{{!}}Area rank:
+
| header14 = {{#if:{{{island group|}}}{{{area|}}}{{{area rank|}}}{{{highest elevation|}}}|Physical geography}}
{{!}} {{{area rank}}} }} 
+
 
|-
+
| label15  = Island group
|Highest elevation:|| {{{highest elevation}}}
+
| class15  = label
|- style="vertical-align: top;"
+
| data15  = {{{island group|}}}
|-
+
 
!colspan="2" bgcolor="#efefef"|Population
+
| label16  = Area
|- class="note"
+
| data16  = {{Infobox islands/area| km2 = {{{area km2|{{{area_km2|}}}}}} | sqmi = {{{area sqmi|{{{area_sqmi|}}}}}} | m2 = {{{area m2|{{{area_m2|}}}}}} | sqft = {{{area sqft|{{{area_sqft|}}}}}} | ha = {{{area ha|{{{area_ha|}}}}}} | acre = {{{area acre|{{{area_acre|}}}}}} }}{{{area|}}}
|[[Demographics of Scotland|Population]] (2001):|| {{{Population}}}
+
 
{{#if:{{{population rank|}}}|
+
| label17  = Area rank
{{!}}-
+
| data17  = {{#if:{{{area rank|}}}|{{{area rank}}}&#x200A;<ref name="RankNote">Area and population ranks: there are {{circa|300}} islands over 20&thinsp;ha in extent and [[Wikipedia:WikiProject Scottish Islands/Populated Islands#Inhabited islands|93 permanently inhabited islands]] were listed in the [[United Kingdom census, 2011|2011 census]].</ref>}}
{{!}}Population rank:
+
 
{{!}} {{{population rank}}} out of 98}}
+
| label19  = Highest elevation
{{#if:{{{main settlement|}}}|
+
| data19  = {{{highest elevation|}}}
{{!}}- class="note"
+
 
{{!}}Main settlement:
+
| header20 = Administration
{{!}} {{{main settlement}}}}}
+
 
|-
+
| label21  = Sovereign state
|- style="vertical-align: top;"
+
| data21  = [[United Kingdom]]
|-
+
 
!colspan="2" bgcolor="#efefef"|Groupings
+
| label22  = [[Countries of the United Kingdom|Country]]
|- class="note"
+
| data22  = [[Scotland]]
|Island Group:|| {{{island group}}}
+
 
|- class="note"
+
| label23  = [[Subdivisions of Scotland|Council area]]
|[[Subdivisions of Scotland|Local Authority:]]|| {{{local authority}}}
+
| data23  = {{{local authority|}}}
|-
+
 
!colspan="2" bgcolor="#efefef"|[[Image:Flag of Scotland.svg|40px|Scotland]] [[Image:Lymphad3.svg|50px|]]
+
| header24 = {{#if:{{{Population|}}}{{{population rank|}}}{{{main settlement|}}}|[[Demographics of Scotland|Demographics]]}}
|-
+
 
|<small>References:</small>|| <small>{{{references}}}</small>
+
| label25  = Population
|-
+
| data25  = {{{Population|}}}
!align="center" colspan="2" |<small>If shown, area and population ranks are for all Scottish islands and all inhabited Scottish islands respectively.</small>
+
 
|}<noinclude>
+
| label26  = Population rank
{{template doc}}
+
| data26  = {{#if:{{{population rank|}}}|{{{population rank}}}{{#if:{{{area rank|}}}|&#x200A;<ref name="RankNote" />|&#x200A;<ref name="RankNote">Area and population ranks: there are {{circa|300}} islands over 20&thinsp;ha in extent and [[Wikipedia:WikiProject Scottish Islands/Populated Islands#Inhabited islands|93 permanently inhabited islands]] were listed in the [[United Kingdom census, 2011|2011 census]].</ref>}}}}
<!-- Please put categories ans interwikis on the /doc subpage -->
+
 
</noinclude>
+
| label27  = Population density
 +
| data27  = {{Infobox islands/density| km2 = {{{density km2|{{{density_km2|}}}}}}| sqmi = {{{density sqmi|{{{density_sqmi|}}}}}} }}{{{population density|}}}
 +
 
 +
| label28  = Largest settlement
 +
| data28  = {{{main settlement|}}}
 +
 
 +
| header29 = [[File:Lymphad3.svg|x25px|link=|Lymphad]]
 +
 
 +
| rowstyle30 = font-size:88%
 +
| label30  = References
 +
| data30  = {{{references|}}}
 +
 
 +
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox Scottish island with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox Scottish island]] with unknown parameter "_VALUE_"|ignoreblank=y| area | area acre | area ha | area km2 | area m2 | area rank | area sqft | area sqmi | area_acre | area_ha | area_km2 | area_m2 | area_sqft | area_sqmi | caption | celtic name | coat_caption | coordinates | density km2 | density sqmi | density_km2 | density_sqmi | flag_caption | gaelic pronunciation | GridReference | highest elevation | Image | image_coat | image_flag | ImageCaption | island group  | local authority | location_map  | main settlement | Map | MapCaption | meaning of name | norse name | official_name | Population | population density | population rank | references | scots name }}<noinclude>{{documentation}}</noinclude>

Latest revision as of 09:24, 17 October 2020

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}}}
Scottish Gaelic name{{{celtic name}}}
Pronunciation{{{gaelic pronunciation}}}
Scots name{{{scots name}}}
Old Norse name{{{norse name}}}
Meaning of name{{{meaning of name}}}
[[File:{{{image_flag}}}|border|center|125px]]
{{{flag_caption}}}
[[File:{{{image_coat}}}|center|80px]]
{{{coat_caption}}}
[[File:{{{Image}}}|255px|border|{{{ImageCaption}}}]]
{{{ImageCaption}}}
Location
[[File:{{{Map}}}|255px]]
{{{MapCaption}}}
OS grid reference{{{GridReference}}}
Physical geography
Island group{{{island group}}}
Area{{{area km2}}} or {{{area sqm}}} or {{{area m2}}} or {{{area sqft}}} or {{{area acre}}} or {{{area ha}}} or {{{area}}}
Area rank{{{area rank}}} [1]
Highest elevation{{{highest elevation}}}
Administration
Sovereign stateUnited Kingdom
CountryScotland
Council area{{{local authority}}}
Demographics
Population{{{Population}}}
Population rank{{{population rank}}} [1]
Population density{{{density km2}}} or {{{density sqmi}}} or {{{population density}}}
Largest settlement{{{main settlement}}}
Lymphad
References{{{references}}}
[[Category:Infobox templates|Template:Remove first word]]

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

  1. 1.0 1.1 Area and population ranks: there are c. 300 islands over 20 ha in extent and 93 permanently inhabited islands were listed in the 2011 census.