Template:Infobox Scottish island/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Infobox Scottish island (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
This template is intended to be used as an infobox for an island or an archipelago in Scotland.
Parameters
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 | |
Council area | {{{local authority}}} |
Country | Scotland |
Sovereign state | United Kingdom |
Demographics | |
Population | {{{Population}}} |
Population rank | {{{population rank}}} [1] |
Population density | {{{density km2}}} or {{{density sqmi}}} or {{{population density}}} |
Largest settlement | {{{main settlement}}} |
![]() | |
References | {{{references}}} |
Expected minimum parameters
<syntaxhighlight lang="wikitext" style="overflow:auto">
Administration | |
---|---|
Country | Scotland |
Sovereign state | United Kingdom |
![]() |
</syntaxhighlight>
Optional parameters
<syntaxhighlight lang="wikitext" style="overflow:auto"> | official_name= | celtic name= | gaelic pronunciation= | scots name= | norse name= | meaning of name= | image_flag= | flag_caption= | image_coat= | coat_caption= | Image= | ImageCaption= | Map= | MapCaption= | location_map= | caption= | coordinates = | area rank= | population rank= | density km2= | main settlement= </syntaxhighlight>
Full list of parameters
<syntaxhighlight lang="wikitext" style="overflow:auto">
Physical geography | |
---|---|
Area | 923 km2 (356 sq mi) |
Highest elevation | 336 metres (1,102 ft) |
Administration | |
Country | Scotland |
Sovereign state | United Kingdom |
Demographics | |
Population | 37,872 |
Population rank | 1 [1] |
Largest settlement | Brodick |
![]() | |
References | [2][3] [4] |
</syntaxhighlight>
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
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
Tracking category
References
- ^ 1.0 1.1 1.2 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.
- ^ National Records of Scotland (15 August 2013). "Appendix 2: Population and households on Scotland's Inhabited Islands" (PDF). Statistical Bulletin: 2011 Census: First Results on Population and Household Estimates for Scotland Release 1C (Part Two) (PDF) (Report). SG/2013/126. Retrieved 14 August 2020.
- ^ Haswell-Smith, Hamish (2004). The Scottish Islands. Edinburgh: Canongate. ISBN 978-1-84195-454-7.
- ^ Ordnance Survey