Template:Infobox province new: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
Continuator (talk | contribs) No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| | | bodystyle = width:22em | ||
| title = {{{name|{{PAGENAME}}}}}{{#if:{{{native_name|}}}|<br /><small>{{{native_name|}}}</small>}} | |||
| | | titlestyle = background:#ccc; font-size:125%; | ||
| | | subheader = {{{settlement_type|Province}}} | ||
| | |||
| | | image = {{#if:{{{image_flag|}}}|[[File:{{{image_flag}}}|125px|border|{{{flag_alt|Flag}}}]]}} | ||
| | | caption = {{#if:{{{image_flag|}}}|{{{flag_caption|Flag}}}}} | ||
| | |||
| 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]]}} | ||
| | | 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}}}]]}} | ||
| | | caption3 = {{#if:{{{image_map|}}}|{{{map_caption|Location within [[{{{country|}}}]]}}}}} | ||
| | |||
| | | headerstyle = background:#ddd; | ||
| | | labelstyle = width:40%; | ||
| | | datastyle = width:60%; | ||
| | |||
| | | header1 = Geography | ||
| | | label2 = Country | ||
| | | data2 = {{#if:{{{country|}}}|[[{{{country}}}]]}} | ||
| | | label3 = {{{subdivision_type1|}}} | ||
| | | data3 = {{{subdivision_name1|}}} | ||
| | | label4 = {{{subdivision_type2|}}} | ||
| | | data4 = {{{subdivision_name2|}}} | ||
| | | label5 = {{{seat_type|Capital}}} | ||
| | | data5 = {{{seat|}}} | ||
| | | label6 = {{{seat1_type|Largest city}}} | ||
| | | data6 = {{{seat1|}}} | ||
| leader_name | | label7 = Coordinates | ||
| | | data7 = {{{coordinates|}}} | ||
| | |||
| | | header10 = Government | ||
| | | label11 = Type | ||
| | | data11 = {{{government_type|}}} | ||
| | | label12 = {{{leader_title|Governor}|}}} | ||
| | | data12 = {{#if:{{{leader_name|}}}|{{{leader_name}}}{{#if:{{{leader_party|}}}| ({{{leader_party}}})|}}}} | ||
| | | label13 = {{{leader_title1|}}} | ||
| | | data13 = {{{leader_name1|}}} | ||
| | |||
| | | header20 = Area{{{area_footnotes|}}} | ||
| | | label21 = Total | ||
| population_as_of | | data21 = {{#if:{{{area_total_km2|}}}|{{{area_total_km2}}} km²}} | ||
| | | label22 = Land | ||
| population_density_km2 | | data22 = {{#if:{{{area_land_km2|}}}|{{{area_land_km2}}} km²}} | ||
| | | label23 = Water | ||
| data23 = {{#if:{{{area_water_km2|}}}|{{{area_water_km2}}} km²}} | |||
| | | label24 = Rank | ||
| | | data24 = {{{area_rank|}}} | ||
| | | label25 = Highest elevation | ||
| | | data25 = {{#if:{{{highest_elevation_m|}}}|{{{highest_elevation_m}}} m}} | ||
| | |||
| | | header30 = Population{{{population_footnotes|}}} | ||
| label31 = Total | |||
| | | data31 = {{#if:{{{population_total|}}}|{{{population_total}}}{{#if:{{{population_as_of|}}}| ({{{population_as_of}}})|}}}} | ||
| | | label32 = Rank | ||
| | | data32 = {{{population_rank|}}} | ||
| | | label33 = 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²}} | ||
| | |||
| | | header40 = {{#if:{{{demographics1_title1|}}}{{{demographics1_title2|}}}|{{{demographics_type1|Ethnic groups}}}{{{demographics1_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
| Province | |
| Geography | |
|---|---|
| Government | |
| Area | |
| Population | |
| } |
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
{
| Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |