Difference between revisions of "Template:Infobox province or territory of Canada"

From blackwiki
Jump to navigation Jump to search
(nowrap)
imported>Thomasmax911
 
(154 intermediate revisions by 38 users not shown)
Line 1: Line 1:
{| class="infobox geography vcard" style="width: 22em; font-size: 88%"
+
{{Infobox settlement
|-
+
| name                    = {{{name|}}}
| class="adr" colspan="2" style="text-align: center; line-height:1.2em; font-size: 1.2em; padding: 0.4em 0.8em 0.4em 0.8em;"|'''<span class="fn org region">{{{Name}}}</span>'''<br />'''<span class="nickname">{{{AlternateName}}}</span>'''
+
| other_name              = {{{other_name|}}}
|-
+
| settlement_type        = {{{settlement_type|}}}
| class="maptable" align="center" colspan="2" style="padding: 0.4em 0.8em 0.4em 0.8em;" |
+
| image_flag              = {{{image_flag|}}}
{| style="text-align:center; background: none;"
+
| flag_size                = 125px
| style="width: 130px; vertical-align: middle;" | [[File:{{{Flag}}}|125px|border|alt={{{FlagAlt<includeonly>|</includeonly>}}}|Flag of {{{Name}}}]] || style="width: 130px; vertical-align: middle;" | [[File:{{{CoatOfArms}}}|85px|alt={{{CoatOfArmsAlt<includeonly>|</includeonly>}}}|Coat of arms of {{{Name}}}]]
+
| flag_alt                = {{{flag_alt|}}}
|-
+
| image_shield            = {{{image_shield|}}}
| width="130"| <small>[[Flag of {{{Name}}}|Flag]]</small> || align="center" width="130" | <small>[[Coat of arms of {{{Name}}}|Coat of arms]]</small>
+
| shield_size            = x85px
|}
+
| shield_alt              = {{{shield_alt|}}}
|-
+
| shield_link            = Coat of arms of {{{name|}}}
| align=center colspan=2 | '''Motto''': {{{Motto}}}
+
| motto                  = {{{motto|}}}
|-
+
| image_map              = {{#ifeq:{{{Label_map|}}}|yes||{{{image_map|}}}}}
| align=center colspan="2" |  {{#ifeq:{{{Label_map|}}}|yes|{{Canada provinces map|Map={{{Map}}}|width=250px}}|[[File:{{{Map}}}|alt={{{MapAlt<includeonly>|</includeonly>}}}|Map of Canada with {{{Name}}} highlighted|250px]]}}
+
| map_alt                = {{{map_alt|}}}
|- class="mergedtoprow note"
+
| map_caption            = Map of Canada with {{{name|}}} highlighted
! Capital
+
| image_map1              = {{#ifeq:{{{Label_map|}}}|yes|{{Canada provinces map|Map={{{image_map}}}|align=center|border=none|width=300px}} }}
| {{{Capital}}}
+
| coordinates            = {{{coordinates|}}}
{{#if:{{{LargestCity<includeonly>|</includeonly>}}}|
+
| subdivision_type        = Country
{{!}}- class="mergedrow"
+
| subdivision_name        = Canada
! [[List of the 100 largest municipalities in Canada by population|Largest city]]
+
| seat_type              = {{#if:{{{seat_type|}}}|{{{seat_type}}}|[[Capital_city|Capital]]}}
{{!}} {{{LargestCity}}}}}
+
| seat                    = {{{capital|}}}
|- class="mergedbottomrow"
+
| seat1_type              = {{#if:{{{largest_city|}}}
! [[List of the 100 largest metropolitan areas in Canada|Largest metro]]
+
|[[List of the 100 largest municipalities in Canada by population|Largest city]]
| {{{LargestMetro}}}
+
|[[List of the 100 largest metropolitan areas in Canada|Largest metro]]
|-
+
}}
!Official languages
+
| seat1                  = {{#if:{{{largest_city|}}}
| {{{OfficialLang}}}
+
|{{{largest_city|}}} {{#if:{{{largest_metro|}}}|{{infobox|child=yes
|- class="mergedtoprow"
+
  | rowclass1 = mergedrow
|-
+
  | label1 = [[List of the 100 largest metropolitan areas in Canada|Largest metro]]
! Demonym
+
  | data1 = {{{largest_metro|}}}
| {{{Demonym}}}
+
  }} }}
|-
+
|{{{largest_metro|}}}
! Government {{#if:{{{government_footnotes|}}}|{{{government_footnotes}}} }}
+
}}
|
+
| population_demonym      = {{{population_demonym|}}} {{#if:{{{official_lang|}}}|
|- class="mergedrow"
+
{{Infobox|child=yes
| Type
+
| rowclass1 = mergedrow
| {{#ifeq: {{{EntityAdjective|}}} | Provincial | [[Constitutional monarchy]] | }}
+
| label1 = Official languages
|- class="mergedrow"
+
| data1 = {{{official_lang|}}}
| {{nowrap|[[{{{ViceroyType}}} of {{{Name}}}|{{{ViceroyType}}}]]}}
+
}}}}
| <span class="agent">{{{Viceroy}}}</span>
+
| government_footnotes    = {{{government_footnotes|}}}
|- class="mergedbottomrow agent"
+
| government_type        = {{{government_type|}}}
| {{nowrap|[[Premier of {{{Name}}}|Premier]]}}
+
| governing_body          = {{{governing_body|}}}
| {{{Premier}}} ({{{PremierParty}}})
+
| leader_title            = [[{{{ViceroyType}}} of {{{name|}}}|{{nowrap|{{{ViceroyType}}}}}]]
|- class="mergedrow"
+
| leader_name            = {{{Viceroy|}}}
|-
+
| leader_title1          = [[Premier of {{{name|}}}|Premier]]
! Legislature
+
| leader_name1            = {{#if:{{{Premier|}}}|{{{Premier}}} ({{{PremierParty}}})}} {{#if:{{{Legislature|}}}{{{HouseSeats|}}}{{{SenateSeats|}}}
| [[{{{Legislature}}}]]
+
  |{{infobox|child=yes
|-class="mergedbottomrow"
+
  | label1 = Legislature
|-
+
  | data1 = {{#if:{{{Legislature|}}}|[[{{{Legislature}}}]]}}
! Federal representation
+
  | rowclass1 =  
| In [[Parliament of Canada|Canadian parliament]]
+
  | label2 = Federal representation
|- class="mergedrow"
+
  | data2  = {{#if:{{{HouseSeats|}}}{{{SenateSeats|}}}|{{nowrap|[[Parliament of Canada]]}}}}
| [[Canadian House of Commons|House seats]]
+
  | rowclass2 = mergedtoprow
| {{{HouseSeats}}} of 308 (<includeonly>{{#expr:{{{HouseSeats}}}*100/308 round 1}}</includeonly><noinclude>##</noinclude>%)
+
  | label3 = [[House of Commons of Canada|House seats]]
|- class="mergedbottomrow"
+
  | data3 = {{#if:{{{HouseSeats|}}}|{{{HouseSeats}}} of 338 ({{#expr:{{{HouseSeats}}}*100/338 round 1}}%)}}
| [[Senate of Canada|Senate seats]]
+
  | rowclass3 = mergedrow
| [[List of {{{Name}}} senators|{{{SenateSeats}}} of 105]] (<includeonly>{{#expr:{{{SenateSeats}}}*100/105 round 1}}</includeonly><noinclude>##</noinclude>%)
+
  | label4 = [[Senate of Canada|Senate seats]]
|- class="mergedtoprow"
+
  | data4 = {{#if:{{{SenateSeats|}}}|[[List of {{{name|}}} senators|{{{SenateSeats}}} of 105]] ({{#expr:{{{SenateSeats}}}*100/105 round 1}}%)}}
|-
+
  | rowclass4 = mergedrow
![[Canadian Confederation#Joining Confederation|Confederation]]
+
  }}}}
| {{{AdmittanceDate}}} ({{{AdmittanceOrder}}})
+
| established_title      = [[Canadian Confederation#Joining Confederation|Confederation]]
|- class="mergedtoprow"
+
| established_date        = {{#if:{{{AdmittanceDate|}}}|{{{AdmittanceDate}}} ({{{AdmittanceOrder}}})}}
! Area&nbsp;{{#if:{{{area_footnotes|}}}|{{{area_footnotes}}} }}
+
| area_footnotes          = {{{area_footnotes|}}}
| [[List of Canadian provinces and territories by area|Ranked {{{AreaRank}}}]]
+
| area_rank              = {{#if:{{{area_rank|}}}|[[List of Canadian provinces and territories by area|Ranked {{{area_rank}}}]]}}
|- class="mergedrow"
+
| area_total_km2          = {{{area_total_km2|}}}
| Total
+
| area_land_km2          = {{{area_land_km2|}}}
| {{<noinclude>tlx|</noinclude>convert|{{{TotalArea_km2}}}|km2|sqmi|abbr=on}}
+
| area_water_km2          = {{{area_water_km2|}}}
|- class="mergedrow"
+
| area_water_percent      = {{#if:{{both|{{{area_water_km2|}}}|{{{area_total_km2|}}}}}|{{#expr:{{{area_water_km2}}}*100/{{{area_total_km2}}} round 1}} }}
| Land
+
| area_note              = {{#if:{{{area_total_km2|}}}|{{#expr:{{{area_total_km2}}}*100/9984670 round 1}}% of Canada}}
| {{<noinclude>tlx|</noinclude>convert|{{{LandArea_km2}}}|km2|sqmi|abbr=on}}
+
| population_footnotes    = {{{population_footnotes|}}}
|- class="mergedrow"
+
| population_rank        = {{#if:{{{population_rank|}}}|[[Population of Canada by province and territory|Ranked {{{population_rank}}}]]}}
| Water (%)
+
| population_as_of        = {{{population_as_of|}}}
| {{<noinclude>tlx|</noinclude>convert|{{{WaterArea_km2}}}|km2|sqmi|abbr=on}} (<includeonly>{{#expr:{{{WaterArea_km2}}}*100/{{{TotalArea_km2}}} round 1}}</includeonly><noinclude>##</noinclude>%)
+
| population_total        = {{#if:{{{population_total|{{#property:P1082}}}}}|{{{population_total|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}} {{{population_ref|}}} }}
|- class="mergedbottomrow"
+
| population_est          = {{#if:{{{population_est|}}}|{{{population_est}}} {{{pop_est_ref|}}}}}
| Proportion of Canada
+
| pop_est_as_of          = {{{pop_est_as_of|}}}
| <includeonly>{{#expr:{{{TotalArea_km2}}}*100/9984670 round 1}}</includeonly><noinclude>##</noinclude>% of 9,984,670 km<sup>2</sup>
+
| population_density_km2  = {{#if:{{both|{{{population_total|{{#property:P1082}}}}}|{{{area_land_km2|}}}}}|{{#expr:{{formatnum:{{{population_total|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}}/{{{area_land_km2|}}}|R}} round 2}} }}
|- class="mergedtoprow"
+
| demographics_type1      = {{#if:{{{GDP_rank|}}}{{{GDP_total|}}}{{{GDP_per_capita|}}}|[[Gross domestic product|GDP]]}}
! Population&nbsp;{{#if:{{{population_footnotes|}}}|{{{population_footnotes}}} }}
+
| demographics1_footnotes = {{{GDP_footnotes|}}}
| [[List of Canadian provinces and territories by population|Ranked {{{PopulationRank}}}]]
+
| demographics1_title1    = [[List of Canadian provinces and territories by gross domestic product|Rank]]
|- class="mergedrow"
+
| demographics1_info1    = {{{GDP_rank|}}}
| Total ({{{PopulationYear}}})
+
| demographics1_title2    = Total ({{{GDP_year}}})
| {{FORMATNUM:{{{Population}}}}} {{{PopulationRef}}}
+
| demographics1_info2    = {{{GDP_total|}}}
|- class="mergedrow"
+
| demographics1_title3    = Per capita
| Density ({{{PopulationYear}}})
+
| demographics1_info3    = {{#if:{{{GDP_per_capita|}}}|{{{GDP_per_capita}}} ([[List of Canadian provinces and territories by gross domestic product|{{{GDP_per_capita_rank}}}]])}}
| {{<noinclude>tlx|</noinclude>convert|<includeonly>{{#expr:{{{Population}}}/{{{LandArea_km2}}} round 2}}</includeonly><noinclude>##</noinclude>|PD/km2|PD/sqmi|abbr=on}}<!--
+
| demographics_type2      = {{#if:{{{HDI|}}}{{{HDI_rank|}}}|[[Human Development Index|HDI]]}}
|- class="mergedbottomrow"
+
| demographics2_title1    = HDI ({{{HDI_year}}})
| Proportion of Canada
+
| demographics2_info1    = {{#if:{{{HDI|}}}|{{{HDI}}} ([[List of Canadian provinces and territories by Human Development Index|{{{HDI_rank}}}]])}}
| <includeonly>{{#expr:{{{Population}}}*100/34657000 round 1}}</includeonly><noinclude>##</noinclude>% of 34,657,000-->
+
| postal_code_type        = [[Canadian subnational postal abbreviations|Postal abbr.]]
|- class="mergedtoprow"
+
| postal_code            = {{{PostalAbbreviation|}}}
! [[Gross domestic product|GDP]]&nbsp;{{#if:{{{GDP_footnotes|}}}|{{{GDP_footnotes}}} }}
+
| postal2_code_type      = [[Canadian postal code|Postal code prefix]]
| [[List of Canadian provinces and territories by gross domestic product|Ranked {{{GDP_rank}}}]]
+
| postal2_code            = {{{PostalCodePrefix|}}}
|- class="mergedrow"
+
| iso_code                = {{#if:{{{iso_code|}}}|[[ISO 3166-2:CA|{{{iso_code}}}]]}}
| Total ({{{GDP_year}}})
+
| timezone_link          = Time in Canada
| {{{GDP_total}}}
+
| timezone1_location      = {{{timezone1_location|}}}
|- class="mergedbottomrow"
+
| timezone1              = {{{timezone1|}}}
| Per capita
+
| utc_offset1            = {{{utc_offset1|}}}
| {{{GDP_per_capita}}} ([[List of Canadian provinces and territories by gross domestic product|{{{GDP_per_capita_rank}}}]])
+
| timezone1_DST          = {{{timezone1_DST|}}}
|- class="mergedtoprow"
+
| utc_offset1_DST        = {{{utc_offset1_DST|}}}
! Abbreviations
+
| timezone2_location      = {{{timezone2_location|}}}
|
+
| timezone2              = {{{timezone2|}}}
|- class="mergedrow"
+
| utc_offset2            = {{{utc_offset2|}}}
| [[Canadian subnational postal abbreviations|Postal]]
+
| timezone2_DST          = {{{timezone2_DST|}}}
| {{{PostalAbbreviation}}}
+
| utc_offset2_DST        = {{{utc_offset2_DST|}}}
|- class="mergedbottomrow"
+
| timezone3_location      = {{{timezone3_location|}}}
| [[ISO 3166-2:CA|ISO 3166-2]]
+
| timezone3              = {{{timezone3|}}}
| {{{ISOCode}}}
+
| utc_offset3            = {{{utc_offset3|}}}
|-
+
| timezone3_DST          = {{{timezone3_DST|}}}
! [[Time in Canada|Time zone]]
+
| utc_offset3_DST        = {{{utc_offset3_DST|}}}
| {{{TimeZone}}}
+
| timezone4_location      = {{{timezone4_location|}}}
|-
+
| timezone4              = {{{timezone4|}}}
! [[Canadian postal code|Postal code prefix]]
+
| utc_offset4            = {{{utc_offset4|}}}
| {{{PostalCodePrefix}}}
+
| timezone4_DST          = {{{timezone4_DST|}}}
|- class="mergedtoprow"
+
| utc_offset4_DST        = {{{utc_offset4_DST|}}}
! Flower
+
| blank_name_sec1        = Flower
| {{{Flower}}}
+
| blank_info_sec1        = {{{flower|}}}
|- class="mergedrow"
+
| blank1_name_sec1        = Tree
! Tree
+
| blank1_info_sec1        = {{{tree|}}}
| {{{Tree}}}
+
| blank2_name_sec1        = Bird
|- class="mergedbottomrow"
+
| blank2_info_sec1        = {{{bird|}}}
! Bird
+
| footnotes              = Rankings include all [[Provinces and territories of Canada|provinces and territories]]
| {{{Bird}}}
+
}}<noinclude>
|-
+
{{documentation}}
! Website
 
| [http://{{{Website}}}/ {{{Website}}}]
 
|-
 
|colspan="2"| <small>Rankings include all [[Provinces and territories of Canada|provinces and territories]]</small>
 
|-
 
|}<noinclude>
 
 
 
[[Category:Canada subdivision infobox templates|Province or territory]]
 
 
 
[[be:Шаблон:Правінцыя Канады]]
 
[[fr:Modèle:Infobox Province ou territoire du Canada]]
 
[[hi:साँचा:ज्ञानसन्दूक कनाडा के प्रान्त या क्षेत्र]]
 
[[os:Шаблон:Канадæйы провинци]]
 
[[mn:Загвар:Инфобокс Канадын муж буюу нутаг дэвсгэр]]
 
[[ru:Шаблон:Провинция Канады]]
 
[[sco:Template:Infobox province or territory o Canadae]]
 
[[sk:Šablóna:Kanadská provincia alebo teritórium]]
 
[[sl:Predloga:Infopolje Provinca ali ozemlje Kanade]]
 
[[fi:Malline:Kanadan provinssi tai territorio]]
 
[[uk:Шаблон:Провінція Канади]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:24, 25 December 2020

Template:Tfm/dated

[[Category:Template:Pagetype with short description]]

Script error: No such module "If empty".
CountryCanada
Population
 • TotalScript error: No such module "Wikidata".
Script error: No such module "If empty".
Script error: No such module "If empty".
Rankings include all provinces and territories

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses infobox settlement Template:Uses Wikidata

Usage

{{Infobox province or territory of Canada
| name                    = 
| settlement_type         =
| other_name              = 
| image_flag              = 
| flag_alt                = 
| image_shield            = 
| shield_alt              = 
| motto                   = 
| Label_map               = 
| image_map               =
| map_alt                 = 
| coordinates             = 
| capital                 = 
| largest_city            = 
| largest_metro           = 
| official_lang            = 
| government_footnotes    = 
| ViceroyType             = 
| Viceroy                 = 
| Premier                 = 
| PremierParty            = 
| Legislature             = 
| HouseSeats              = 
| SenateSeats             = 
| AdmittanceDate          = 
| AdmittanceOrder         = 
| area_footnotes          = 
| area_rank               = 
| area_total_km2          = 
| area_land_km2           = 
| area_water_km2          = 
| population_footnotes    = 
| population_rank         = 
| population_as_of        = 
| population_total        = <!-- 2011 StatCan federal census population only per [[WP:CANPOP]]. Do not update until 2016 census population released on Feb-8/17. -->
| population_ref          =
| population_est          = <!-- Latest StatCan quarterly estimate only. -->
| pop_est_as_of           =
| pop_est_ref             =  
| DensityYear             = 
| population_demonym      = 
| GDP_footnotes           = 
| GDP_rank                = 
| GDP_year                = 
| GDP_total               = 
| GDP_per_capita          = 
| GDP_per_capita_rank     = 
| HDI_year                =
| HDI                     =
| HDI_rank                =
| timezone_link           = 
| timezone1               = 
| timezone1_location      = 
| timezone1               = 
| utc_offset1             = 
| timezone1_DST           = 
| utc_offset1_DST         = 
| timezone2_location      = 
| timezone2               = 
| utc_offset2             = 
| timezone2_DST           = 
| utc_offset2_DST         = 
| timezone3_location      = 
| timezone3               = 
| utc_offset3             = 
| timezone3_DST           = 
| utc_offset3_DST         = 
| timezone4_location      = 
| timezone4               = 
| utc_offset4             = 
| timezone4_DST           = 
| utc_offset4_DST         = 
| PostalAbbreviation      = 
| PostalCodePrefix         = 
| iso_code                = 
| website                 = 
| flower                  = 
| tree                    = 
| bird                    = 
}}

Microformat

Template:UF-hcard-geo