Template:Infobox province new: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
Edgard (talk | contribs)
No edit summary
Edgard (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Infobox
{{Infobox
| bodystyle = width:22em
| bodystyle =  
| title = {{{name|{{PAGENAME}}}}}{{#if:{{{native_name|}}}|<br /><small>{{{native_name|}}}</small>}}
| title =
| titlestyle = background:#ccc; font-size:125%;
| titlestyle =
| above = {{{name|{{PAGENAME}}}}}{{#if:{{{native_name|}}}|<br /><small>{{{native_name}}}</small>|}}
| abovestyle = background:#ccc;
| subheader = {{{settlement_type|Province}}}
| subheader = {{{settlement_type|Province}}}
| subheaderstyle =


| image = {{#if:{{{image_flag|}}}|[[File:{{{image_flag}}}|125px|border|{{{flag_alt|Flag}}}]]}}
| image = {{#if:{{{image_flag|}}}|[[File:{{{image_flag}}}|125px|border|{{{flag_alt|Flag}}}]]|}}
| caption = {{#if:{{{image_flag|}}}|{{{flag_caption|Flag}}}}}
| caption = {{#if:{{{image_flag|}}}|{{{flag_caption|Flag}}}|}}


| image2 = {{#if:{{{image_seal|}}}|[[File:{{{image_seal}}}|80px|{{{seal_alt|Coat of arms}}}]]}}{{#if:{{{image_shield|}}}|[[File:{{{image_shield}}}|80px|Coat of arms]]}}
| image2 = {{#if:{{{image_seal|}}}|[[File:{{{image_seal}}}|80px|{{{seal_alt|Coat of arms}}}]]|}}{{#if:{{{image_shield|}}}|[[File:{{{image_shield}}}|80px|Coat of arms]]|}}
| caption2 = {{#if:{{{image_seal|}}}|{{{seal_caption|Coat of arms}}}}}{{#if:{{{image_shield|}}}|{{{shield_caption|Coat of arms}}}}}
| caption2 = {{#if:{{{image_seal|}}}|{{{seal_caption|Coat of arms}}}|}}{{#if:{{{image_shield|}}}|{{{shield_caption|Coat of arms}}}|}}


| image3 = {{#if:{{{image_map|}}}|[[File:{{{image_map}}}|250px|{{{map_alt|Location map}}}]]}}
| image3 = {{#if:{{{image_map|}}}|[[File:{{{image_map}}}|250px|{{{map_alt|Location map}}}]]|}}
| caption3 = {{#if:{{{image_map|}}}|{{{map_caption|Location within [[{{{country|}}}]]}}}}}
| caption3 = {{#if:{{{image_map|}}}|{{{map_caption|Location within [[{{{country|}}}]]}}}|}}


| headerstyle = background:#ddd;
| headerstyle = background:#ddd;
| labelstyle = width:40%;
| labelstyle =  
| datastyle = width:60%;
| datastyle =  


| header1 = Geography
| header1 = {{#if:{{{country|}}}{{{seat|}}}{{{coordinates|}}}|Geography|}}
| label2 = Country
| label2 = {{#if:{{{country|}}}|Country|}}
| data2 = {{#if:{{{country|}}}|[[{{{country}}}]]}}
| data2 = {{#if:{{{country|}}}|[[{{{country}}}]]|}}
| label3 = {{{subdivision_type1|}}}
| label3 = {{#if:{{{subdivision_name1|}}}|{{{subdivision_type1|}}}|}}
| data3 = {{{subdivision_name1|}}}
| data3 = {{{subdivision_name1|}}}
| label4 = {{{subdivision_type2|}}}
| label4 = {{#if:{{{subdivision_name2|}}}|{{{subdivision_type2|}}}|}}
| data4 = {{{subdivision_name2|}}}
| data4 = {{{subdivision_name2|}}}
| label5 = {{{seat_type|Capital}}}
| label5 = {{#if:{{{seat|}}}|{{{seat_type|Capital}}}|}}
| data5 = {{{seat|}}}
| data5 = {{{seat|}}}
| label6 = {{{seat1_type|Largest city}}}
| label6 = {{#if:{{{seat1|}}}|{{{seat1_type|Largest city}}}|}}
| data6 = {{{seat1|}}}
| data6 = {{{seat1|}}}
| label7 = Coordinates
| label7 = {{#if:{{{coordinates|}}}|Coordinates|}}
| data7 = {{{coordinates|}}}
| data7 = {{{coordinates|}}}


| header10 = Government
| header10 = {{#if:{{{government_type|}}}{{{leader_name|}}}|Government|}}
| label11 = Type
| label11 = {{#if:{{{government_type|}}}|Type|}}
| data11 = {{{government_type|}}}
| data11 = {{{government_type|}}}
| label12 = {{{leader_title|Governor}|}}}
| label12 = {{#if:{{{leader_name|}}}|{{{leader_title|Governor}}}|}}
| data12 = {{#if:{{{leader_name|}}}|{{{leader_name}}}{{#if:{{{leader_party|}}}| ({{{leader_party}}})|}}}}
| data12 = {{#if:{{{leader_name|}}}|{{{leader_name}}}{{#if:{{{leader_party|}}}| ({{{leader_party}}})}}|}}
| label13 = {{{leader_title1|}}}
| label13 = {{#if:{{{leader_name1|}}}|{{{leader_title1|}}}|}}
| data13 = {{{leader_name1|}}}
| data13 = {{{leader_name1|}}}


| header20 = Area{{{area_footnotes|}}}
| header20 = {{#if:{{{area_total_km2|}}}|Area{{{area_footnotes|}}}|}}
| label21 = Total
| label21 = {{#if:{{{area_total_km2|}}}|Total|}}
| data21 = {{#if:{{{area_total_km2|}}}|{{{area_total_km2}}} km²}}
| data21 = {{#if:{{{area_total_km2|}}}|{{{area_total_km2}}} km²|}}
| label22 = Land
| label22 = {{#if:{{{area_land_km2|}}}|Land|}}
| data22 = {{#if:{{{area_land_km2|}}}|{{{area_land_km2}}} km²}}
| data22 = {{#if:{{{area_land_km2|}}}|{{{area_land_km2}}} km²|}}
| label23 = Water
| label23 = {{#if:{{{area_water_km2|}}}|Water|}}
| data23 = {{#if:{{{area_water_km2|}}}|{{{area_water_km2}}} km²}}
| data23 = {{#if:{{{area_water_km2|}}}|{{{area_water_km2}}} km²|}}
| label24 = Rank
| label24 = {{#if:{{{area_rank|}}}|Rank|}}
| data24 = {{{area_rank|}}}
| data24 = {{{area_rank|}}}
| label25 = Highest elevation
| label25 = {{#if:{{{highest_elevation_m|}}}|Highest elevation|}}
| data25 = {{#if:{{{highest_elevation_m|}}}|{{{highest_elevation_m}}} m}}
| data25 = {{#if:{{{highest_elevation_m|}}}|{{{highest_elevation_m}}} m|}}


| header30 = Population{{{population_footnotes|}}}
| header30 = {{#if:{{{population_total|}}}|Population{{{population_footnotes|}}}|}}
| label31 = Total
| label31 = {{#if:{{{population_total|}}}|Total|}}
| data31 = {{#if:{{{population_total|}}}|{{{population_total}}}{{#if:{{{population_as_of|}}}| ({{{population_as_of}}})|}}}}
| data31 = {{#if:{{{population_total|}}}|{{{population_total}}}{{#if:{{{population_as_of|}}}| ({{{population_as_of}}})}}|}}
| label32 = Rank
| label32 = {{#if:{{{population_rank|}}}|Rank|}}
| data32 = {{{population_rank|}}}
| data32 = {{{population_rank|}}}
| label33 = Density
| label33 = {{#if:{{{population_density_km2|}}}|Density|}}
| data33 = {{#if:{{{population_density_km2|}}}|{{#ifeq:{{{population_density_km2}}}|auto|{{#expr:{{{population_total|0}}}/{{{area_total_km2|1}}} round 1}}|{{{population_density_km2|}}}}} /km²}}
| data33 = {{#if:{{{population_density_km2|}}}|{{{population_density_km2}}} /km²|}}


| header40 = {{#if:{{{demographics1_title1|}}}{{{demographics1_title2|}}}|{{{demographics_type1|Ethnic groups}}}{{{demographics1_footnotes|}}}|}}}
| header40 = {{#if:{{{demographics1_title1|}}}|{{{demographics_type1|Ethnic groups}}}{{{demographics1_footnotes|}}}|}}
| label41 = {{{demographics1_title1|}}}
| label41 = {{{demographics1_title1|}}}
| data41 = {{{demographics1_info1|}}}
| data41 = {{{demographics1_info1|}}}
Line 66: Line 69:
| data42 = {{{demographics1_info2|}}}
| data42 = {{{demographics1_info2|}}}


| header50 = {{#if:{{{timezone1|}}}{{{postal_code|}}}{{{area_code|}}}{{{iso_code|}}}|Other information|}}
| header50 = {{#if:{{{timezone1|}}}{{{postal_code|}}}{{{iso_code|}}}|Other information|}}
| label51 = Time zone
| label51 = {{#if:{{{timezone1|}}}|Time zone|}}
| data51 = {{#if:{{{timezone1|}}}|{{{timezone1}}} ({{{utc_offset1|}}}){{#if:{{{timezone1_DST|}}}|<br />{{{timezone1_DST}}} ({{{utc_offset1_DST|}}})|}}}}
| data51 = {{#if:{{{timezone1|}}}|{{{timezone1}}}{{#if:{{{utc_offset1|}}}| ({{{utc_offset1}}})}}{{#if:{{{timezone1_DST|}}}|<br />{{{timezone1_DST}}}{{#if:{{{utc_offset1_DST|}}}| ({{{utc_offset1_DST}}})}}}}|}}
| label52 = {{{postal_code_type|Postal code}|}}}
| label52 = {{#if:{{{postal_code|}}}|{{{postal_code_type|Postal code}}}|}}
| data52 = {{{postal_code|}}}
| data52 = {{{postal_code|}}}
| label53 = {{{area_code_type|Area code}|}}}
| label53 = {{#if:{{{area_code|}}}|{{{area_code_type|Area code}}}|}}
| data53 = {{{area_code|}}}
| data53 = {{{area_code|}}}
| label54 = ISO code
| label54 = {{#if:{{{iso_code|}}}|ISO code|}}
| data54 = {{{iso_code|}}}
| data54 = {{{iso_code|}}}
| label55 = Website
| label55 = {{#if:{{{website|}}}|Website|}}
| data55 = {{{website|}}}
| data55 = {{{website|}}}


Line 83: Line 86:
{{documentation|content=
{{documentation|content=
== Usage ==
== Usage ==
This infobox is used for articles about provinces, states, regions, and other first-level administrative divisions.
This infobox is for articles about provinces, states, regions, and other first-level administrative divisions.


== Blank template ==
== Blank template ==
Copy and paste the following code into an article, then fill in the relevant fields:
<pre>
<pre>
{{Infobox province new
{{Infobox province new
| name                =  
| name                =  
| native_name        =  
| native_name        =  
| native_name_lang    =
| settlement_type    = Province
| settlement_type    = Province
| image_flag          =  
| image_flag          =  
Line 100: Line 100:
| image_map          =  
| image_map          =  
| map_caption        =  
| map_caption        =  
| coordinates        =
| country            =  
| country            =  
| subdivision_type1  =  
| subdivision_type1  =  
| subdivision_name1  =  
| subdivision_name1  =  
| subdivision_type2  =
| subdivision_name2  =
| seat_type          = Capital
| seat_type          = Capital
| seat                =  
| seat                =  
Line 114: Line 111:
| leader_name        =  
| leader_name        =  
| leader_party        =  
| leader_party        =  
| leader_title1      =
| leader_name1        =
| area_total_km2      =  
| area_total_km2      =  
| area_rank          =  
| area_rank          =  
Line 122: Line 117:
| population_as_of    =  
| population_as_of    =  
| population_rank    =  
| population_rank    =  
| population_density_km2 = auto
| population_density_km2 =  
| demographics1_title1=  
| demographics1_title1=  
| demographics1_info1 =  
| demographics1_info1 =  
| demographics1_title2=
| demographics1_info2 =
| timezone1          =  
| timezone1          =  
| utc_offset1        =  
| utc_offset1        =  
| postal_code        =  
| postal_code        =  
| area_code          =
| iso_code            =  
| iso_code            =  
| website            =  
| website            =  
Line 136: Line 128:
}}
}}
</pre>
</pre>
 
}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
}}
</noinclude>
</noinclude>

Latest revision as of 23:35, 6 December 2025

Infobox province new
Province
Template documentation

Usage

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

Blank template

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