Template:Infobox province new: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
Continuator (talk | contribs)
No edit summary
Edgard (talk | contribs)
No edit summary
Line 1: Line 1:
{{Infobox province
{{Infobox
| name                = {{{name|{{PAGENAME}}}}}
| bodystyle = width:22em
| native_name        = {{{native_name|}}}
| title = {{{name|{{PAGENAME}}}}}{{#if:{{{native_name|}}}|<br /><small>{{{native_name|}}}</small>}}
| native_name_lang    = {{{native_name_lang|}}} <!-- ISO 639-2 code e.g. "fr" for French -->
| titlestyle = background:#ccc; font-size:125%;
| settlement_type    = {{{settlement_type|Province}}}
| subheader = {{{settlement_type|Province}}}
| image_flag          = {{{image_flag|}}}
 
| flag_alt            = {{{flag_alt|}}}
| image = {{#if:{{{image_flag|}}}|[[File:{{{image_flag}}}|125px|border|{{{flag_alt|Flag}}}]]}}
| flag_caption        = {{{flag_caption|Flag}}}
| caption = {{#if:{{{image_flag|}}}|{{{flag_caption|Flag}}}}}
| image_seal          = {{{image_seal|}}}
 
| seal_alt           = {{{seal_alt|}}}
| image2 = {{#if:{{{image_seal|}}}|[[File:{{{image_seal}}}|80px|{{{seal_alt|Coat of arms}}}]]}}{{#if:{{{image_shield|}}}|[[File:{{{image_shield}}}|80px|Coat of arms]]}}
| seal_caption        = {{{seal_caption|Coat of arms}}}
| caption2 = {{#if:{{{image_seal|}}}|{{{seal_caption|Coat of arms}}}}}{{#if:{{{image_shield|}}}|{{{shield_caption|Coat of arms}}}}}
| image_shield        = {{{image_shield|}}} <!-- alternative to seal -->
 
| shield_caption      = {{{shield_caption|Coat of arms}}}
| image3 = {{#if:{{{image_map|}}}|[[File:{{{image_map}}}|250px|{{{map_alt|Location map}}}]]}}
| image_map          = {{{image_map|}}}
| caption3 = {{#if:{{{image_map|}}}|{{{map_caption|Location within [[{{{country|}}}]]}}}}}
| map_alt            = {{{map_alt|}}}
 
| map_caption        = {{{map_caption|Location within [[{{{country|}}}}]]}}}
| headerstyle = background:#ddd;
| coordinates        = {{{coordinates|}}} <!-- {{coord|LAT|LON|region:XX_type:adm1st|display=inline,title}} -->
| labelstyle = width:40%;
| subdivision_type    = Country
| datastyle = width:60%;
| subdivision_name    = {{{country|}}}
 
| subdivision_type1  = {{{subdivision_type1|}}}
| header1 = Geography
| subdivision_name1  = {{{subdivision_name1|}}}
| label2 = Country
| subdivision_type2  = {{{subdivision_type2|}}}
| data2 = {{#if:{{{country|}}}|[[{{{country}}}]]}}
| subdivision_name2  = {{{subdivision_name2|}}}
| label3 = {{{subdivision_type1|}}}
| seat_type          = {{{seat_type|Capital}}}
| data3 = {{{subdivision_name1|}}}
| seat                = {{{seat|}}}
| label4 = {{{subdivision_type2|}}}
| seat1_type          = {{{seat1_type|Largest city}}}
| data4 = {{{subdivision_name2|}}}
| seat1              = {{{seat1|}}}
| label5 = {{{seat_type|Capital}}}
| government_type    = {{{government_type|}}}
| data5 = {{{seat|}}}
| leader_party        = {{{leader_party|}}}
| label6 = {{{seat1_type|Largest city}}}
| leader_title        = {{{leader_title|Governor}}}
| data6 = {{{seat1|}}}
| leader_name         = {{{leader_name|}}}
| label7 = Coordinates
| leader_title1      = {{{leader_title1|}}}
| data7 = {{{coordinates|}}}
| leader_name1        = {{{leader_name1|}}}
 
| unit_pref          = {{{unit_pref|Metric}}} <!-- Metric or Imperial -->
| header10 = Government
| area_footnotes      = {{{area_footnotes|}}}
| label11 = Type
| area_total_km2      = {{{area_total_km2|}}}
| data11 = {{{government_type|}}}
| area_land_km2      = {{{area_land_km2|}}}
| label12 = {{{leader_title|Governor}|}}}
| area_water_km2      = {{{area_water_km2|}}}
| data12 = {{#if:{{{leader_name|}}}|{{{leader_name}}}{{#if:{{{leader_party|}}}| ({{{leader_party}}})|}}}}
| area_rank          = {{{area_rank|}}}
| label13 = {{{leader_title1|}}}
| elevation_m        = {{{elevation_m|}}}
| data13 = {{{leader_name1|}}}
| highest_elevation_m = {{{highest_elevation_m|}}}
 
| population_footnotes= {{{population_footnotes|}}}
| header20 = Area{{{area_footnotes|}}}
| population_total    = {{{population_total|}}}
| label21 = Total
| population_as_of   = {{{population_as_of|}}}
| data21 = {{#if:{{{area_total_km2|}}}|{{{area_total_km2}}} km²}}
| population_rank    = {{{population_rank|}}}
| label22 = Land
| population_density_km2 = {{{population_density_km2|auto}}}
| data22 = {{#if:{{{area_land_km2|}}}|{{{area_land_km2}}} km²}}
| demographics_type1  = {{{demographics_type1|Ethnic groups}}}
| label23 = Water
| demographics1_footnotes = {{{demographics1_footnotes|}}}
| data23 = {{#if:{{{area_water_km2|}}}|{{{area_water_km2}}} km²}}
| demographics1_title1= {{{demographics1_title1|}}}
| label24 = Rank
| demographics1_info1 = {{{demographics1_info1|}}}
| data24 = {{{area_rank|}}}
| demographics1_title2= {{{demographics1_title2|}}}
| label25 = Highest elevation
| demographics1_info2 = {{{demographics1_info2|}}}
| data25 = {{#if:{{{highest_elevation_m|}}}|{{{highest_elevation_m}}} m}}
| timezone1          = {{{timezone1|}}}
 
| utc_offset1        = {{{utc_offset1|}}}
| header30 = Population{{{population_footnotes|}}}
| timezone1_DST      = {{{timezone1_DST|}}}
| label31 = Total
| utc_offset1_DST    = {{{utc_offset1_DST|}}}
| data31 = {{#if:{{{population_total|}}}|{{{population_total}}}{{#if:{{{population_as_of|}}}| ({{{population_as_of}}})|}}}}
| postal_code_type    = {{{postal_code_type|Postal code}}}
| label32 = Rank
| postal_code        = {{{postal_code|}}}
| data32 = {{{population_rank|}}}
| area_code_type      = {{{area_code_type|Area code}}}
| label33 = Density
| area_code          = {{{area_code|}}}
| data33 = {{#if:{{{population_density_km2|}}}|{{#ifeq:{{{population_density_km2}}}|auto|{{#expr:{{{population_total|0}}}/{{{area_total_km2|1}}} round 1}}|{{{population_density_km2|}}}}} /km²}}
| iso_code            = {{{iso_code|}}}
 
| website            = {{{website|}}}
| header40 = {{#if:{{{demographics1_title1|}}}{{{demographics1_title2|}}}|{{{demographics_type1|Ethnic groups}}}{{{demographics1_footnotes|}}}|}}}
| footnotes          = {{{footnotes|}}}
| label41 = {{{demographics1_title1|}}}
| data41 = {{{demographics1_info1|}}}
| label42 = {{{demographics1_title2|}}}
| data42 = {{{demographics1_info2|}}}
 
| header50 = {{#if:{{{timezone1|}}}{{{postal_code|}}}{{{area_code|}}}{{{iso_code|}}}|Other information|}}
| label51 = Time zone
| data51 = {{#if:{{{timezone1|}}}|{{{timezone1}}} ({{{utc_offset1|}}}){{#if:{{{timezone1_DST|}}}|<br />{{{timezone1_DST}}} ({{{utc_offset1_DST|}}})|}}}}
| label52 = {{{postal_code_type|Postal code}|}}}
| data52 = {{{postal_code|}}}
| label53 = {{{area_code_type|Area code}|}}}
| data53 = {{{area_code|}}}
| label54 = ISO code
| data54 = {{{iso_code|}}}
| label55 = Website
| data55 = {{{website|}}}
 
| belowstyle = font-size:90%;
| below = {{{footnotes|}}}
}}<noinclude>
{{documentation|content=
== Usage ==
This infobox is used for articles about provinces, states, regions, and other first-level administrative divisions.
 
== Blank template ==
Copy and paste the following code into an article, then fill in the relevant fields:
 
<pre>
{{Infobox province new
| name                =
| native_name        =
| native_name_lang    =
| settlement_type    = Province
| image_flag          =
| flag_caption        =
| image_seal          =
| seal_caption        =
| image_map          =
| map_caption        =
| coordinates        =
| country            =
| subdivision_type1  =
| subdivision_name1  =
| subdivision_type2  =
| subdivision_name2  =
| seat_type          = Capital
| seat                =
| seat1_type          = Largest city
| seat1              =
| government_type    =
| leader_title        = Governor
| leader_name        =
| leader_party        =
| leader_title1      =
| leader_name1        =
| area_total_km2      =
| area_rank          =
| highest_elevation_m =
| population_total    =
| population_as_of    =
| population_rank    =
| population_density_km2 = auto
| demographics1_title1=
| demographics1_info1 =
| demographics1_title2=
| demographics1_info2 =
| timezone1          =
| utc_offset1        =
| postal_code        =
| area_code          =
| iso_code            =
| website            =
| footnotes          =
}}
}}
</pre>
== Parameters ==
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>name</code> || Name of the province (defaults to page name)
|-
| <code>native_name</code> || Name in native/local language
|-
| <code>settlement_type</code> || Type of division (Province, State, Region, etc.)
|-
| <code>country</code> || '''Country this province belongs to''' (creates wikilink)
|-
| <code>seat</code> || Capital city
|-
| <code>leader_name</code> || Current governor or equivalent
|-
| <code>area_total_km2</code> || Total area in square kilometers
|-
| <code>population_total</code> || Total population
|-
| <code>population_density_km2</code> || Set to "auto" to calculate automatically
|}
[[Category:Infobox templates]]
}}
</noinclude>

Revision as of 23:31, 6 December 2025

Infobox province new
Province
Geography
Government
Area
Population
}
Template documentation

Usage

This infobox is used for articles about provinces, states, regions, and other first-level administrative divisions.

Blank template

Copy and paste the following code into an article, then fill in the relevant fields:

{{Infobox province new
| name                = 
| native_name         = 
| native_name_lang    = 
| settlement_type     = Province
| image_flag          = 
| flag_caption        = 
| image_seal          = 
| seal_caption        = 
| image_map           = 
| map_caption         = 
| coordinates         = 
| country             = 
| subdivision_type1   = 
| subdivision_name1   = 
| subdivision_type2   = 
| subdivision_name2   = 
| seat_type           = Capital
| seat                = 
| seat1_type          = Largest city
| seat1               = 
| government_type     = 
| leader_title        = Governor
| leader_name         = 
| leader_party        = 
| leader_title1       = 
| leader_name1        = 
| area_total_km2      = 
| area_rank           = 
| highest_elevation_m = 
| population_total    = 
| population_as_of    = 
| population_rank     = 
| population_density_km2 = auto
| demographics1_title1= 
| demographics1_info1 = 
| demographics1_title2= 
| demographics1_info2 = 
| timezone1           = 
| utc_offset1         = 
| postal_code         = 
| area_code           = 
| iso_code            = 
| website             = 
| footnotes           = 
}}

Parameters

{