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

From blackwiki
Jump to navigation Jump to search
({{{LargestMetro|}}} out of seat)
imported>PK2
 
Line 1: Line 1:
 
{{Infobox settlement
 
{{Infobox settlement
| name = {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
+
|name = {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
| other_name = {{{AlternateName|}}}
+
|other_name = {{{AlternateName|}}}
| image_flag = {{{Flag|}}}
+
|settlement_type = {{#if:{{{Type|}}}|{{{Type}}}|[[Provinces and territories of Canada|Province or territory]]}}
| flag_size = 125px
+
<!-- images, nickname, motto -->
| flag_alt = {{{FlagAlt|}}}
+
|image_flag = {{{Flag|}}}
| image_shield = {{{CoatOfArms|}}}
+
|flag_size = 125
| shield_size = 85px
+
|flag_alt = {{{FlagAlt|}}}
| shield_alt= {{{CoatOfArmsAlt|}}}
+
|flag_link = Flag of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
| flag_link = Flag of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
+
|image_shield = {{{CoatOfArms|}}}
| shield_link = Coat of arms of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
+
|shield_size = 85
| motto = {{{Motto|}}}
+
|shield_alt = {{{CoatOfArmsAlt|}}}
| image_map1 = {{#ifeq:{{{Label_map|}}}|yes|{{Canada provinces map|Map={{{Map}}}|align=center|border=none|width=250px}} }}
+
|shield_link = Coat of arms of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}
| image_map = {{#ifeq:{{{Label_map|}}}|yes||{{{Map|}}}}}
+
|motto = {{{Motto|}}}
| map_alt = {{{MapAlt|}}}
+
<!-- maps and coordinates -->
| map_caption = Map of Canada with {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}} highlighted
+
|image_map = {{#ifeq:{{{Label_map|}}}|yes|{{Canada provinces map|Map={{{Map}}}}}}}
| subdivision_type = Country
+
|mapsize = 250
| subdivision_name = Canada
+
|map_alt = {{{MapAlt|}}}
| seat_type = Capital
+
|map_caption = Map of Canada with {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}} highlighted
| seat = {{{Capital|}}}
+
<!-- location -->
| seat1_type = [[List of the 100 largest municipalities in Canada by population|Largest city]]
+
|subdivision_type = Country
| seat1 = {{{LargestCity|}}}
+
|subdivision_name = [[Canada]]
| population_demonym = {{{Demonym|}}}  
+
<!-- established -->
| government_footnotes = {{{government_footnotes|}}}
+
|established_title = [[Canadian Confederation#Joining Confederation|Confederation]]
| government_type = {{#ifeq: {{{EntityAdjective|}}} | Provincial | [[Constitutional monarchy]] | }}
+
|established_date = {{#if:{{{AdmittanceDate|}}}|{{{AdmittanceDate}}} ({{{AdmittanceOrder}}})}}
| leader_title = [[{{{ViceroyType}}} of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}|{{nowrap|{{{ViceroyType}}}}}]]
+
<!-- seat, smaller parts -->
| leader_name = {{{Viceroy|}}}
+
|seat_type = {{#ifeq:{{{LargestCity}}}|capital|Capital<br/>{{nobold|(and largest city)}}|Capital}}
| leader_title1 = [[Premier of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}|Premier]]
+
|seat = {{{Capital|}}}
| leader_name1 = {{#if:{{{Premier|}}}|{{{Premier}}} ({{{PremierParty}}})}}
+
|seat1_type = [[List of the 100 largest municipalities in Canada by population|Largest city]]
| established_title = [[Canadian Confederation#Joining Confederation|Confederation]]
+
|seat1 = {{#ifeq:{{{LargestCity}}}|capital||{{{LargestCity}}}}}
| established_date = {{#if:{{{AdmittanceDate|}}}|{{{AdmittanceDate}}} ({{{AdmittanceOrder}}})}}
+
|parts_type = [[List of the 100 largest metropolitan areas in Canada|Largest metro]]
| area_footnotes = {{{area_footnotes|}}}
+
|parts_style = <!-- list, coll (collapsed list), para (paragraph format) -->
| area_rank = {{#if:{{{AreaRank|}}}|[[List of Canadian provinces and territories by area|Ranked {{{AreaRank}}}]]}}
+
|parts = {{{LargestMetro|}}}
| area_total_km2 = {{{TotalArea_km2|}}}
+
<!-- government type, leaders -->
| area_land_km2 = {{{LandArea_km2|}}}
+
|government_footnotes = {{{government_footnotes|}}}
| area_water_km2 = {{{WaterArea_km2|}}}
+
|government_type = {{#ifeq:{{{EntityAdjective|}}}|Provincial|[[Constitutional monarchy]]|}}
| area_water_percent = {{#if:{{both|{{{WaterArea_km2|}}}|{{{TotalArea_km2|}}}}}|{{#expr:{{{WaterArea_km2}}}*100/{{{TotalArea_km2}}} round 1}} }}
+
|governing_body =
| area_note = {{#if:{{{TotalArea_km2|}}}|{{#expr:{{{TotalArea_km2}}}*100/9984670 round 1}}% of Canada}}
+
|leader_party =
| population_footnotes = {{{population_footnotes|}}}
+
|leader_title = [[{{{ViceroyType}}} of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}|{{nowrap|{{{ViceroyType}}}}}]]
| population_rank = {{#if:{{{PopulationRank|}}}|[[List of Canadian provinces and territories by population|Ranked {{{PopulationRank}}}]]}}
+
|leader_name = {{{Viceroy|}}}
| population_as_of = {{{PopulationYear|}}}
+
|leader_title1 = [[Premier of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}|Premier]]
| population_total = {{#if:{{{Population|{{#property:P1082}}}}}|{{{Population|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}} {{{PopulationRef|}}} }}
+
|leader_name1 = {{#if:{{{Premier|}}}|{{{Premier}}} ({{{PremierParty}}})}} {{#if:{{{Legislature|}}}{{{HouseSeats|}}}{{{SenateSeats|}}}
| population_est = {{#if:{{{Population_est|}}}|{{{Population_est}}} {{{Pop_est_ref|}}}}}
+
  |{{infobox|child=yes
| pop_est_as_of = {{{Pop_est_as_of|}}}
+
  | label1 = Legislature
| population_density_km2 = {{#if:{{both|{{{Population|{{#property:P1082}}}}}|{{{LandArea_km2|}}}}}|{{#expr:{{formatnum:{{{Population|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}}/{{{LandArea_km2|}}}|R}} round 2}} }}
+
  | data1 = {{#if:{{{Legislature|}}}|[[{{{Legislature}}}]]}}
| demographics_type1 = {{#if:{{{GDP_rank|}}}{{{GDP_total|}}}{{{GDP_per_capita|}}}|[[Gross domestic product|GDP]]}}
+
  | rowclass1 =
| demographics1_footnotes = {{{GDP_footnotes|}}}
+
  | label2 = Federal representation
| demographics1_title1 = [[List of Canadian provinces and territories by gross domestic product|Rank]]
+
  | data2  = {{#if:{{{HouseSeats|}}}{{{SenateSeats|}}}|(in [[Parliament of Canada|Canadian Parliament]])}}
| demographics1_info1  = {{{GDP_rank|}}}
+
  | rowclass2 = mergedtoprow
| demographics1_title2 = Total ({{{GDP_year}}})
+
  | label3 = [[House of Commons of Canada|House seats]]
| demographics1_info2 = {{{GDP_total|}}}
+
  | data3 = {{#if:{{{HouseSeats|}}}|{{{HouseSeats}}} of 338 ({{#expr:{{{HouseSeats}}}*100/338 round 1}}%)}}
| demographics1_title3 = Per capita
+
  | rowclass3 = mergedrow
| demographics1_info3 = {{#if:{{{GDP_per_capita|}}}|{{{GDP_per_capita}}} ([[List of Canadian provinces and territories by gross domestic product|{{{GDP_per_capita_rank}}}]])}}
+
  | label4 = [[Senate of Canada|Senate seats]]
| postal_code_type = [[Canadian subnational postal abbreviations|Postal abbr.]]
+
  | data4 = {{#if:{{{SenateSeats|}}}|[[List of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}} senators|{{{SenateSeats}}} of 105]] ({{#expr:{{{SenateSeats}}}*100/105 round 1}}%)}}
| postal_code = {{{PostalAbbreviation|}}}
+
  | rowclass4 = mergedrow
| iso_code = {{#if:{{{ISOCode|}}}|[[ISO 3166-2:CA|{{{ISOCode}}}]]}}
+
  }}}}
| timezone_link = Time in Canada
+
<!-- area -->
| timezone = {{{TimeZone|}}}
+
|area_footnotes = {{{area_footnotes|}}}
| area_code_type = [[Canadian postal code|Postal code prefix]]
+
|area_total_km2 = {{{TotalArea_km2|}}}
| area_code = {{{PostalCodePrefix|}}}
+
|area_land_km2 = {{{LandArea_km2|}}}
 +
|area_water_km2 = {{{WaterArea_km2|}}}
 +
|area_water_percent = {{#if:{{both|{{{WaterArea_km2|}}}|{{{TotalArea_km2|}}}}}|{{#expr:{{{WaterArea_km2}}}*100/{{{TotalArea_km2}}} round 1}}}}
 +
|area_rank = {{#if:{{{AreaRank|}}}|[[List of Canadian provinces and territories by area|Ranked {{{AreaRank}}}]]}}
 +
|area_note = {{#if:{{{TotalArea_km2|}}}|{{#expr:{{{TotalArea_km2}}}*100/9984670 round 1}}% of Canada}}
 +
<!-- population -->
 +
|population_footnotes = {{{population_footnotes|}}}
 +
|population_as_of = {{{PopulationYear|}}}
 +
|population_total = {{#if:{{{Population|{{#property:P1082}}}}}|{{{Population|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}} {{{PopulationRef|}}}}}
 +
|pop_est_footnotes = {{{Pop_est_ref|}}}
 +
|pop_est_as_of = {{{Pop_est_as_of|}}}
 +
|population_est = {{{Population_est|}}}
 +
|population_rank = {{#if:{{{PopulationRank|}}}|[[List of Canadian provinces and territories by population|Ranked {{{PopulationRank}}}]]}}
 +
|population_density_km2 = {{#if:{{both|{{{Population|{{#property:P1082}}}}}|{{{LandArea_km2|}}}}}|{{#expr:{{formatnum:{{{Population|{{#invoke:string|replace|{{#invoke:string|replace|{{#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|±0|}}}}}/{{{LandArea_km2|}}}|R}} round 2}}}}
 +
|population_density =
 +
|population_density_rank =
 +
|population_demonym = {{{Demonym|}}}
 +
|population_note =
 +
<!-- demographics (section 1) -->
 +
|demographics_type1 = {{#if:{{{GDP_rank|}}}{{{GDP_total|}}}{{{GDP_per_capita|}}}|[[Gross domestic product|GDP]]}}
 +
|demographics1_footnotes = {{{GDP_footnotes|}}}
 +
|demographics1_title1 = [[List of Canadian provinces and territories by gross domestic product|Rank]]
 +
|demographics1_info1  = {{{GDP_rank|}}}
 +
|demographics1_title2 = Total ({{{GDP_year}}})
 +
|demographics1_info2 = {{{GDP_total|}}}
 +
|demographics1_title3 = Per capita
 +
|demographics1_info3 = {{#if:{{{GDP_per_capita|}}}|{{{GDP_per_capita}}} ([[List of Canadian provinces and territories by gross domestic product|{{{GDP_per_capita_rank}}}]])}}
 +
<!-- demographics (section 2) -->
 +
|demographics_type2 = Language
 +
|demographics2_title1 = [[Languages of Canada|Official language]]
 +
|demographics2_info1 = {{{OfficialLang|}}}
 +
<!-- time zone(s) -->
 +
|timezone_link = Time in Canada
 +
|timezone = {{{TimeZone|}}}
 +
<!-- postal codes, area code -->
 +
|postal_code_type = [[Canadian subnational postal abbreviations|Postal abbr.]]
 +
|postal_code = {{{PostalAbbreviation|}}}
 +
|area_code_type = [[Canadian postal code|Postal code prefix]]
 +
|area_code = {{{PostalCodePrefix|}}}
 
<!-- blank fields (section 1) -->
 
<!-- blank fields (section 1) -->
| blank_name_sec1         = Official language(s)
+
|blank_name_sec1 = Flower
| blank_info_sec1         = {{{OfficialLang|}}}
+
|blank_info_sec1 = {{{Flower|}}}
| blank1_name_sec1       = [[List of the 100 largest metropolitan areas in Canada|Largest metro]]
+
|blank1_name_sec1 = Tree
| blank1_info_sec1       = {{{LargestMetro|}}}
+
|blank1_info_sec1 = {{{Tree|}}}
<!-- blank fields (section 2) -->
+
|blank2_name_sec1 = Bird
| blank_name_sec2        = Legislature
+
|blank2_info_sec1 = {{{Bird|}}}
| blank_info_sec2        = {{#if:{{{Legislature|}}}|[[{{{Legislature}}}]]}}
+
<!-- website, footnotes -->
| blank1_name_sec2        = Federal representation
+
|website = {{#if:{{{Website|}}}|{{URL|1={{{Website}}}}}}}
| blank1_info_sec2        = {{#if:{{{HouseSeats|}}}{{{SenateSeats|}}}|(in [[Parliament of Canada|Canadian Parliament]])}}
+
|footnotes = Rankings include all [[Provinces and territories of Canada|provinces and territories]]
| blank2_name_sec2        = [[House of Commons of Canada|House seats]]
 
| blank2_info_sec2        = {{#if:{{{HouseSeats|}}}|{{{HouseSeats}}} of 338 ({{#expr:{{{HouseSeats}}}*100/338 round 1}}%)}}
 
| blank3_name_sec2        = [[Senate of Canada|Senate seats]]
 
| blank3_info_sec2        = {{#if:{{{SenateSeats|}}}|[[List of {{#if:{{{Name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}} senators|{{{SenateSeats}}} of 105]] ({{#expr:{{{SenateSeats}}}*100/105 round 1}}%)}}
 
| website = {{#if:{{{Website|}}}|{{URL|1={{{Website}}}}}}}
 
| footnotes = Rankings include all [[Provinces and territories of Canada|provinces and territories]]
 
{{Infobox region symbols
 
| embedded = yes
 
| country  = Canada
 
| bird    = {{{Bird|}}}
 
| flower  = {{{Flower|}}}
 
| tree    = {{{Tree|}}}
 
| no_header = yes
 
 
}}
 
}}
}}<noinclude>
+
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 01:39, 27 January 2020

Template:Tfm/dated

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

Script error: No such module "If empty".
CountryCanada
Largest city{{{LargestCity}}}
Population
 • TotalScript error: No such module "Wikidata".
Script error: No such module "If empty".
Language
Postal code prefixScript error: No such module "If empty".
Rankings include all provinces and territories
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