Template:Infobox government: Difference between revisions
Appearance
wiki>Jonesey95 fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value |
Load TemplateStyles and repair government infobox light/dark styling |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{Infobox | ||
| name = Infobox government | |||
| templatestyles = Infobox government/styles.css | |||
| bodyclass = ib-government | |||
| titlestyle = font-size: 125%; | | titlestyle = font-size: 125%; | ||
| title = {{{government_name|{{PAGENAME}}}}}{{#if:{{{nativename|}}} |<br />{{{nativename | | title = {{{government_name|{{PAGENAME}}}}}{{#if:{{{nativename|}}}|<br /><span class="ib-government-native">{{{nativename}}}</span>}} | ||
| subheader = {{#if:{{{government_form|}}}|'''{{{government_form}}}'''}} | |||
| subheader | |||
| autoheaders = y | | autoheaders = y | ||
| image | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=100px|alt={{{alt|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image_size2|}}}|sizedefault=100px|alt={{{alt2|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{{image_size3|}}}|sizedefault=100px|alt={{{alt3|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image4|}}}|size={{{image_size4|}}}|sizedefault=100px|alt={{{alt4|}}}}} | ||
| caption | | caption = {{{caption|}}} | ||
| label1 = Formation | | label1 = Formation | ||
| | | data1 = {{{date|}}} | ||
| label2 = Extinction | | label2 = Extinction | ||
| | | data2 = {{{date_end|}}} | ||
| label3 = {{#if:{{{document_type|}}} |{{{document_type}}} | Founding document}} | | label3 = {{#if:{{{document_type|}}}|{{{document_type}}}|Founding document}} | ||
| | | data3 = {{{document|}}} | ||
| label4 = {{#if:{{{division_type|}}} |{{{division_type}}} |State}} | | label4 = {{#if:{{{division_type|}}}|{{{division_type}}}|State}} | ||
| | | data4 = {{{division|}}} | ||
| label5 = Country | | label5 = Country | ||
| | | data5 = {{{country|}}} | ||
| label6 = Website | | label6 = Website | ||
| | | data6 = {{{url|{{{website|}}}}}} | ||
| header7 = {{{branch1|}}} | | header7 = {{{branch1|}}} | ||
| | | label8 = {{{branch1_label1|}}} | ||
| | | data8 = {{{branch1_data1|}}} | ||
| | | label9 = {{{branch1_label2|}}} | ||
| | | data9 = {{{branch1_data2|}}} | ||
| label10 = {{{branch1_label3|}}} | | label10 = {{{branch1_label3|}}} | ||
| | | data10 = {{{branch1_data3|}}} | ||
| header11 = {{{branch2|Legislative branch}}} | | header11 = {{{branch2|Legislative branch}}} | ||
| label12 | | label12 = {{{legislature_label|Legislature}}} | ||
| | | data12 = {{{legislature|}}} | ||
| label13 | | label13 = {{{speaker_label|Speaker}}} | ||
| | | data13 = {{{speaker|}}} | ||
| label14 | | label14 = {{{deputy_speaker_label|Deputy Speaker}}} | ||
| | | data14 = {{{deputy_speaker|}}} | ||
| label15 | | label15 = {{{members_in_assembly_label|Assembly members}}} | ||
| | | data15 = {{{members_in_assembly|}}} | ||
| label16 | | label16 = {{{legislative_council_label|Legislative council}}} | ||
| | | data16 = {{{legislative_council|}}} | ||
| label17 | | label17 = {{{chairman_label|Chair}}} | ||
| | | data17 = {{{chairman|}}} | ||
| label18 | | label18 = {{{deputy_chairman_label|Deputy Chair}}} | ||
| | | data18 = {{{deputy_chairman|{{{dpy_chairman|}}}}}} | ||
| label19 | | label19 = {{{members_in_council_label|Council members}}} | ||
| | | data19 = {{{members_in_council|}}} | ||
| label20 | | label20 = Meeting place | ||
| | | data20 = {{{meeting_place|}}} | ||
| header24 = {{{branch3|Executive branch}}} | | header24 = {{{branch3|Executive branch}}} | ||
| label25 = {{#if:{{{leader_type|}}} |{{{leader_type}}} |Leader}} | | label25 = {{#if:{{{leader_type|}}}|{{{leader_type}}}|Leader}} | ||
| | | data25 = {{{leader_title|}}} | ||
| label26 = Main body | | label26 = Main body | ||
| | | data26 = {{{main_body|}}} | ||
| label27 = | | label27 = {{{leader_type2|}}} | ||
| | | data27 = {{{leader_title2|}}} | ||
| label28 = | | label28 = {{{leader_type3|}}} | ||
| | | data28 = {{{leader_title3|}}} | ||
| label29 = | | label29 = {{{leader_type4|}}} | ||
| | | data29 = {{{leader_title4|}}} | ||
| label30 = Appointed by | | label30 = Appointed by | ||
| | | data30 = {{{appointed|}}} | ||
| label31 = Headquarters | | label31 = Headquarters | ||
| | | data31 = {{{headquarters|}}} | ||
| label32 = Main organ | | label32 = Main organ | ||
| | | data32 = {{{main_organ|}}} | ||
| label33 = Departments | | label33 = Departments | ||
| | | data33 = {{{departments|}}} | ||
| header42 = {{{branch4|Judicial branch}}} | | header42 = {{{branch4|Judicial branch}}} | ||
| label43 = {{{court_name|Court}}} | | label43 = {{{court_name|Court}}} | ||
| | | data43 = {{{court|}}} | ||
| label44 = {{{chief_justice_label|Chief Justice}}} | | label44 = {{{chief_justice_label|Chief Justice}}} | ||
| | | data44 = {{{chief_justice|}}} | ||
| label45 = Seat | | label45 = Seat | ||
| | | data45 = {{{seat|}}} | ||
| label46 = {{{extra_courts_label|}}} | | label46 = {{{extra_courts_label|}}} | ||
| | | data46 = {{{extra_courts|}}} | ||
}}{{#invoke:Check for unknown parameters | check | unknown={{main other|[[Category:Pages using infobox government with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview=Page using [[Template:Infobox government]] with unknown parameter "_VALUE_" | ignoreblank=y | alt | alt2 | alt3 | alt4 | appointed | branch1 | branch1_data1 | branch1_data2 | branch1_data3 | branch1_label1 | branch1_label2 | branch1_label3 | branch2 | branch3 | branch4 | caption | chairman | chairman_label | chief_justice | chief_justice_label | country | court | court_name | date | date_end | departments | deputy_chairman | deputy_chairman_label | deputy_speaker | deputy_speaker_label | division | division_type | document | document_type | extra_courts | extra_courts_label | government_form | government_name | headquarters | image | image_size | image_size2 | image_size3 | image_size4 | image2 | image3 | image4 | leader_title | leader_title2 | leader_title3 | leader_title4 | leader_type | leader_type2 | leader_type3 | leader_type4 | legislative_council | legislative_council_label | legislature | legislature_label | main_body | main_organ | meeting_place | members_in_assembly | members_in_assembly_label | members_in_council | members_in_council_label | nativename | seat | speaker | speaker_label | url | website}}<noinclude> | }}{{#invoke:Check for unknown parameters | check | unknown={{main other|[[Category:Pages using infobox government with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview=Page using [[Template:Infobox government]] with unknown parameter "_VALUE_" | ignoreblank=y | alt | alt2 | alt3 | alt4 | appointed | branch1 | branch1_data1 | branch1_data2 | branch1_data3 | branch1_label1 | branch1_label2 | branch1_label3 | branch2 | branch3 | branch4 | caption | chairman | chairman_label | chief_justice | chief_justice_label | country | court | court_name | date | date_end | departments | deputy_chairman | deputy_chairman_label | deputy_speaker | deputy_speaker_label | division | division_type | document | document_type | extra_courts | extra_courts_label | government_form | government_name | headquarters | image | image_size | image_size2 | image_size3 | image_size4 | image2 | image3 | image4 | leader_title | leader_title2 | leader_title3 | leader_title4 | leader_type | leader_type2 | leader_type3 | leader_type4 | legislative_council | legislative_council_label | legislature | legislature_label | main_body | main_organ | meeting_place | members_in_assembly | members_in_assembly_label | members_in_council | members_in_council_label | nativename | seat | speaker | speaker_label | url | website}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 13:49, 8 June 2026
File:Test Template Info-Icon - Version (2).svg Template documentationviewedithistorypurge
This template is for pages on the structures of governments (with rare form) in some countries, and only on the structure. It should not be used generally for articles about governments. For parliamentary or semi-presidential systems, use {{Infobox executive government}}. For presidential systems, use {{Infobox presidential government}}.
Usage
| {{{government_form}}} | |
| [[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]] [[File:{{{image2}}}|{{{image_size2}}}|alt={{{alt2}}}]] [[File:{{{image3}}}|{{{image_size3}}}|alt={{{alt3}}}]] [[File:{{{image4}}}|{{{image_size4}}}|alt={{{alt4}}}]] {{{caption}}} | |
| Formation | {{{date}}} |
|---|---|
| Extinction | {{{date_end}}} |
| Founding document | {{{document}}} |
| State | {{{division}}} |
| Country | {{{country}}} |
| Website | {{{website}}} |
| {{{branch1}}} | |
| {{{branch1_label1}}} | {{{branch1_data1}}} |
| {{{branch1_label2}}} | {{{branch1_data2}}} |
| {{{branch1_label3}}} | {{{branch1_data3}}} |
| Legislative branch | |
| Legislature | {{{legislature}}} |
| Speaker | {{{speaker}}} |
| Deputy Speaker | {{{deputy_speaker}}} |
| Assembly members | {{{members_in_assembly}}} |
| Legislative council | {{{legislative_council}}} |
| Chair | {{{chairman}}} |
| Deputy Chair | {{{deputy_chairman}}} |
| Council members | {{{members_in_council}}} |
| Meeting place | {{{meeting_place}}} |
| Executive branch | |
| {{{leader_type}}} | {{{leader_title}}} |
| Main body | {{{main_body}}} |
| {{{leader_type2}}} | {{{leader_title2}}} |
| {{{leader_type3}}} | {{{leader_title3}}} |
| {{{leader_type4}}} | {{{leader_title4}}} |
| Appointed by | {{{appointed}}} |
| Headquarters | {{{headquarters}}} |
| Main organ | {{{main_organ}}} |
| Departments | {{{departments}}} |
| Judicial branch | |
| Court | {{{court}}} |
| {{{chief_justice_label}}} | {{{chief_justice}}} |
| Seat | {{{seat}}} |
| {{{extra_courts_label}}} | {{{extra_courts}}} |
<syntaxhighlight lang="wikitext" style="overflow: auto;">
</syntaxhighlight>