Difference between revisions of "Template:Infobox Scottish island"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Frietjes (allow location map to process the caption) |
imported>Andrybak (add parameter "scots name" (see data3) to the invocation of Module:Check for unknown parameters) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
| labelstyle = padding-top:0.2em;line-height:1.2em; | | labelstyle = padding-top:0.2em;line-height:1.2em; | ||
− | | label1 = [[Scottish | + | | label1 = [[Scottish Gaelic]] name |
| class1 = nickname | | class1 = nickname | ||
| data1 = {{#if:{{{celtic name|}}} | {{lang|gd|{{{celtic name}}}}} |}} | | data1 = {{#if:{{{celtic name|}}} | {{lang|gd|{{{celtic name}}}}} |}} | ||
Line 14: | Line 14: | ||
| data2 = {{{gaelic pronunciation|}}} | | data2 = {{{gaelic pronunciation|}}} | ||
− | | label3 = [[ | + | | label3 = [[Scots language|Scots]] name |
| class3 = nickname | | class3 = nickname | ||
− | | data3 = {{#if:{{{ | + | | data3 = {{#if:{{{scots name|}}} | {{lang|sco|{{{scots name}}}}} |}} |
− | | label4 = | + | | label4 = [[Old Norse]] name |
− | | | + | | class4 = nickname |
− | | data4 = {{{ | + | | data4 = {{#if:{{{norse name|}}} | {{lang|non|{{{norse name}}}}} |}} |
− | | data5 = {{#if:{{{image_flag|}}}{{{image_coat|}}}|<div style="display: table; width: 100%; border-collapse: collapse;"> | + | | label5 = Meaning of name |
+ | | rowclass5 = note | ||
+ | | data5 = {{{meaning of name|}}} | ||
+ | |||
+ | | data6 = {{#if:{{{image_flag|}}}{{{image_coat|}}}|<div style="display: table; width: 100%; border-collapse: collapse;"> | ||
{{#if:{{{image_flag|}}}|<div style="display: table-cell;">[[File:{{{image_flag|}}}|border|center|125px]]<div>{{{flag_caption|}}}</div></div>}} | {{#if:{{{image_flag|}}}|<div style="display: table-cell;">[[File:{{{image_flag|}}}|border|center|125px]]<div>{{{flag_caption|}}}</div></div>}} | ||
{{#if:{{{image_coat|}}}|<div style="display: table-cell;">[[File:{{{image_coat|}}}|center|80px]]<div>{{{coat_caption|}}}</div></div>}} | {{#if:{{{image_coat|}}}|<div style="display: table-cell;">[[File:{{{image_coat|}}}|center|80px]]<div>{{{coat_caption|}}}</div></div>}} | ||
</div>}} | </div>}} | ||
− | | | + | | data7 = {{#if:{{{Image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size=255px|border=yes|title={{{ImageCaption|}}}}}{{#if:{{{ImageCaption|}}}|<br />{{{ImageCaption}}}}} }} |
| header8 = {{#if:{{{Map|}}}{{{GridReference|}}}{{{coordinates|}}}| Location }} | | header8 = {{#if:{{{Map|}}}{{{GridReference|}}}{{{coordinates|}}}| Location }} | ||
Line 36: | Line 40: | ||
| label11 = [[Ordnance Survey National Grid|OS grid reference]] | | label11 = [[Ordnance Survey National Grid|OS grid reference]] | ||
− | | data11 = {{#if:{{{GridReference|}}}| {{gbmappingsmall | + | | data11 = {{#if:{{{GridReference|}}}| {{gbmappingsmall|{{{GridReference}}}}} }} |
| label12 = [[Geographic coordinate system|Coordinates]] | | label12 = [[Geographic coordinate system|Coordinates]] | ||
Line 87: | Line 91: | ||
| data30 = {{{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 }}<noinclude>{{documentation}}</noinclude> | + | }}</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
![]() | This template uses Lua: |
This template is intended to be used as an infobox for an island or an archipelago in Scotland.
Contents
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 | |
Sovereign state | United Kingdom |
Country | Scotland |
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}}} |
![]() | |
References | {{{references}}} |
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
Tracking category
References
- ↑ 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.
The above documentation is transcluded from Template:Infobox Scottish island/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |