Template:Infobox county: Difference between revisions

From Wikishire
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
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; "|<big class="fn org">{{#vardefine:type|county}}{{#vardefine:shire|{{namefix|{{{name}}}}}}}{{#vardefine:state|{{State-BI|{{#var:shire}}}}}}{{#vardefine:partbi|{{Part-BI|{{#var:shire}}}}}}'''{{#var:shire}}'''</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}}} }} }}<br>{{#var:state}}
|colspan=2 style="text-align: center; background:#D0F0C0; "|<big class="fn org">{{#vardefine:type|county}}{{#vardefine:shire|{{namefix|{{{name}}}}}}}{{#vardefine:state|{{State-BI|{{#var:shire}}}}}}{{#vardefine:partbi|{{Part-BI|{{#var:shire}}}}}}'''{{#var:shire}}'''</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}}} }} }}<br>{{#var:state}}
|- class="note"
|- class="note"
{{#if: {{{picture<includeonly>|</includeonly>}}} |
{{#if: {{{picture<includeonly>|</includeonly>}}} |
Line 15: Line 15:
{{#if: {{{database|{{PAGENAME}}|motto}}} | {{#vardefine:motto|{{database|{{PAGENAME}}|motto}}}}}}
{{#if: {{{database|{{PAGENAME}}|motto}}} | {{#vardefine:motto|{{database|{{PAGENAME}}|motto}}}}}}
{{#if: {{{motto| }}} | {{#vardefine:motto|{{{motto}}}}}}}
{{#if: {{{motto| }}} | {{#vardefine:motto|{{{motto}}}}}}}
{{#if: {{{#var:motto<includeonly>|</includeonly>}}} |
{{#if: {{#var:motto<includeonly>|</includeonly>}} |
! colspan="2" style="text-align: center; font-size: 85%;" {{!}} ''{{#var:motto}}'' }}
! colspan="2" style="text-align: center; font-size: 85%;" {{!}} ''{{#var:motto}}'' }}
|-
|-
Line 36: Line 36:
|-
|-
! style="background: #D0F0C0;" {{!}} Area:
! style="background: #D0F0C0;" {{!}} Area:
{{!}} {{#if: {{{area<includeonly>|</includeonly>}}} | {{{area}}} | {{#formatnum: {{database|{{PAGENAME}}|area}}|0||,}} square miles}}
{{!}} {{#if: {{{area<includeonly>|</includeonly>}}} | {{{area}}} | {{#number_format:{{database|{{PAGENAME}}|area}}|0||,}} square miles}}
|-
|-
! style="background: #D0F0C0;" {{!}} Population:
! style="background: #D0F0C0;" {{!}} Population:
{{!}} {{#if: {{{population<includeonly>|</includeonly>}}} | {{{population}}} | {{#formatnum: {{database|{{PAGENAME}}|population}}|0||,}} }} {{#if: {{{census year<includeonly>|</includeonly>}}}<small>&nbsp''({{{census year}}})''</small>}}
{{!}} {{#if: {{{population<includeonly>|</includeonly>}}} | {{{population}}} | {{#number_format:{{database|{{PAGENAME}}|population}}|0||,}} }} {{#if: {{{census year<includeonly>|</includeonly>}}}<small>&nbsp''({{{census year}}})''</small>}}
|- class="note"
|- class="note"
{{#if: {{{county town<includeonly>|</includeonly>}}} |
{{#if: {{{county town<includeonly>|</includeonly>}}} |

Latest revision as of 15:44, 25 October 2024

{{{name}}}
error: name not on list
[[File:{{{picture}}}|240px]]
{{{picture caption}}}
[[File:{{{map image}}}|170px|{{{name}}}]]
[Interactive map]
County of: {{{county of}}}
Abbreviation: {{{abbr}}}
Area: {{{area}}}
Population: {{{population}}}
County seat: {{{county town}}}
Biggest town: {{{biggest town}}}

Usage

Blank template

{{Infobox county
| name=
| welsh=
| gaelic=
| irish=
| scots=
| cornish=
| map image=
| flag=
| motto=
| picture=
| picture caption
| province=
| area=
| population=
| county town=
| biggest town=
}}

Examples

Example 1: Huntingdonshire

Name
United Kingdom
Huntingdonshire
Flag of Huntingdonshire
Flag

St Ives
Area: 359 square miles
County town: Huntingdon
Biggest town: St Neots
County flower: Water-violet [1]


Example 2: County Donegal

Name
Irish: Contae Dhún na nGall
Republic of Ireland
County Donegal

Slieve League cliffs
Province: Ulster
Area: 1,869 square miles
Population: 147,264
County seat: Lifford