Template:GovernmentInfobox: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox"
<includeonly>{| class="infobox"
| style="text-align: center;"! colspan="2" |'''{{{government_name}}}''' {{#if: {{{native_name|}}} | <br> {{{native_name|}}} | }}
| style="text-align: center;"! colspan="2" |'''{{{government_name|{{PAGENAME}}}}}''' {{#if: {{{native_name|}}} | <br> ''{{{native_name}}}'' | }}
|-
|- {{#if: {{{government_form|}}} | | style="display:none;"}}
! style="background-color: #BDBDBD;"! colspan="2" | '''{{{government_form}}}'''
! style="background-color: #BDBDBD;"! colspan="2" | '''{{{government_form}}}'''
|-
|- {{#if: {{{image|}}} | | style="display:none;"}}
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt}}}]] {{#if: {{{caption|}}} | <br />{{{caption}}} | }}
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt}}}]] {{#if: {{{caption|}}} | <br />{{{caption}}} | }}
|-
|- {{#if: {{{image|}}}  | | style="display:none;"}}
! style="background-color: #BDBDBD;"! colspan="2" |  
! style="background-color: #BDBDBD;"! colspan="2" |  
|-
|- {{#if: {{{formation|}}} | | style="display:none;"}}
! Formation
! Formation
| {{{formation}}}
| {{{formation}}}
|-
|- {{#if: {{{extinction|}}} | | style="display:none;"}}
! Extinction
! Extinction
| {{{extinction}}}
| {{{extinction}}}
|-
|- {{#if: {{{document|}}} | | style="display:none;"}}
! {{{document_type|Founding document}}}
! {{{document_type|Founding document}}}
| {{{document}}}
| {{{document}}}
|-
|- {{#if: {{{state||}}} | | style="display:none;"}}
! State
! State
| {{{state}}}
| {{{state}}}
|-
|- {{#if: {{{country|}}} | | style="display:none;"}}
! Country
! Country
| {{{country}}}
| {{{country}}}
|-
|- {{#if: {{{website|}}} | | style="display:none;"}}
! Website
! Website
| {{{website}}}
| {{{website}}}
|- {{#if: {{{branch1|}}} |  
|- {{#if: {{{branch1|}}} | | style="display:none;"}}
{{!}} style="background-color: #BDBDBD; text-align: center;" colspan="2" {{!}} '''{{{branch1}}}'''
! style="background-color: #BDBDBD;"! colspan="2" | '''{{{branch1}}}'''
{{!}}-
|- {{#if: {{{branch1_label1|}}} | | style="display:none;"}}
! {{{branch1_label1}}}
! {{{branch1_label1}}}
{{!}} {{{branch1_data1}}}
| {{{branch1_data1}}}
{{!}}- {{#if: {{{branch1_label2|}}} | | style="display:none;"}}
|- {{#if: {{{branch1_label2|}}} | | style="display:none;"}}
! {{{branch1_label2}}}
! {{{branch1_label2}}}
{{!}} {{{branch1_data2}}}
| {{{branch1_data2}}}
{{!}}- {{#if: {{{branch1_label3|}}} | | style="display:none;"}}
|- {{#if: {{{branch1_label3|}}} | | style="display:none;"}}
! {{{branch1_label3}}}
! {{{branch1_label3}}}
{{!}} {{{branch1_data3}}}
| {{{branch1_data3}}}
{{!}}- {{#if: {{{branch1_label4|}}} | | style="display:none;"}}
|- {{#if: {{{branch1_label4|}}} | | style="display:none;"}}
! {{{branch1_label4}}}
! {{{branch1_label4}}}
{{!}} {{{branch1_data4}}} | }}
| {{{branch1_data4}}}
|-
! style="background-color: #BDBDBD;" colspan="2" | '''{{{branch2|Executive}}}'''
|- {{#if: {{{government type|}}} | | style="display: none;" }}
! Government Type
| {{{government type}}}
|-
! {{{Leader 1 title|Your 1st leader title (e.g. King)}}}
| {{{leader1|name}}}
|-
! {{{Leader 2 title|Your 2nd leader title (e.g. Prime minister)}}}
| {{{leader2|name}}}
|-
! Legislature
| {{{legislature|your choice}}}
|-
! colspan="2" | '''Establishment'''
|-
! {{{event1|event 1}}}
| {{{date1|date 1}}}
|-
|-
! style="background-color: #BDBDBD;"! colspan="2" | '''Area'''
! style="background-color: #BDBDBD;" colspan="2" | '''{{{branch2|Executive branch}}}'''
|- {{#if: {{{total area|}}} | | style="display: none;" }}
! Total
| {{{total area}}} km<sup>2</sup>
|- {{#if: {{{water percentage|}}} | | style="display: none;" }}
! Water %
| {{{water percentage}}}
|-
|-
! colspan="2" | '''Population'''
! {{{leader_type}}}
|- {{#if: {{{total population|}}} | | style="display: none;" }}
| {{{leader_title}}} {{#if: {{{leader_name|}}} | <br>{{{leader_name}}} | }}
! Total
|- {{#if: {{{appointed1_by|}}} | | style="display:none;" }}
| {{{total population}}}
! {{{appointed1|Appointed by}}}
|- {{#if: {{{population density|}}} | | style="display: none;" }}
| {{{appointed1_by}}}
! Density
|- {{#if: {{{leader_type2|}}} | | style="display:none;"}}
| {{{population density}}}/km<sup>2</sup>
! {{{leader_type2}}}
| {{{leader_title2}}} {{#if: {{{leader_name2|}}} | <br>{{{leader_name2}}} | }}
|- {{#if: {{{appointed2_by|}}} | | style="display:none;"}}
! {{{appointed2|Appointed by}}}
| {{{appointed2_by}}}
|- {{#if: {{{main_body|}}} | | style="display:none;"}}
! Main body
| {{{main_body}}}
|- {{#if: {{{headquarters|}}} | | style="display:none;"}}
! Headquarters
| {{{headquarters}}}
|- {{#if: {{{departments|}}} | | style="display:none;"}}
! {{{components|Ministries}}}
| {{{departments}}}
|-
|-
! style="background-color: #BDBDBD;" colspan="2" | '''Economy'''
! style="background-color: #BDBDBD;"! colspan="2" | '''{{{branch3|Legislative branch}}}'''
|- {{#if: {{{economy type|}}} | | style="display: none;" }}
! Economy type
| {{{economy type}}}
|-{{#if: {{{GDP total|}}} | | style="display: none;" }}
! GDP (total)
| Ꞡ {{{GDP total}}}
|- {{#if: {{{GDP per capita|}}} | | style="display: none;" }}
! GDP per capita
| Ꞡ {{{GDP per capita}}}
|- {{#if: {{{currency link|}}} | | style="display: none;" }}
! Currency
| [[{{{currency link}}}]]
|- {{#if: {{{currency symbol|}}} | | style="display: none;" }}
! Currency symbol
| {{#if: {{{currency link|}}} | [[File:{{{currency symbol}}}|18px]] | {{{currency symbol}}} }}
|- {{#if: {{{inequality index|}}} | | style="display: none;" }}
! Inequality index
| {{{inequality index}}}
|- {{#if: {{{development index|}}} | | style="display: none;" }}
! Development index
| {{{development index}}}
|-
|-
! style="background-color: #BDBDBD;" colspan="2" | '''Other information'''
! {{{house1|Upper house}}}
|- {{#if: {{{time zone|}}} | | style="display: none;" }}
| {{{house1_name}}}
! Time zone
|- {{#if: {{{house1_leader1|}}} | | style="display:none;"}}
| {{{time zone}}}
! {{{house1_leader1}}}
|- {{#if: {{{driving side|}}} | | style="display: none;" }}
| {{{house1_leader1_name}}}
! Driving side
|- {{#if: {{{house1_leader2|}}} | | style="display:none;"}}
| {{{driving side}}}
! {{{house1_leader2}}}
|- {{#if: {{{calling code|}}} | | style="display: none;" }}
| {{{house1_leader2_name}}}
! Calling code
|- {{#if: {{{house1_member_title|}}} | | style="display:none;"}}
| {{{calling code}}}
! {{{house1_member_title}}}
|- {{#if: {{{internet code|}}} | | style="display: none;" }}
| {{{house1_members}}}
! Internet code
|- {{#if: {{{house1_place|}}} | | style="display:none;" }}
| {{{internet code}}}
! Meeting place
|- {{#if: {{{nation number|}}} | | style="display: none;" }}
| {{{house1_place}}}
! Nation number
|- {{#if: {{{house2_name|}}} | | style="display:none;"}}
| {{{nation number}}}
| colspan="2" | <hr>
|- {{#if: {{{house2_name|}}} | | style="display:none;"}}
! {{{house2|Middle house}}}
| {{{house2_name}}}
|- {{#if: {{{house2_leader1|}}} | | style="display:none;"}}
! {{{house2_leader1}}}
| {{{house2_leader1_name}}}
|- {{#if: {{{house2_leader2|}}} | | style="display:none;"}}
! {{{house2_leader2}}}
| {{{house2_leader2_name}}}
|- {{#if: {{{house2_member_title|}}} | | style="display:none;"}}
! {{{house2_member_title}}}
| {{{house2_members}}}
|- {{#if: {{{house2_place|}}} | | style="display:none;" }}
! Meeting place
| {{{house2_place}}}
|- {{#if: {{{house3_name|}}} | | style="display:none;" }}
| colspan="2" | <hr>
|- {{#if: {{{house3_name||}}} | | style="display: none;" }}
! {{{house3|Lower house}}}
| {{{house3_name}}}
|- {{#if: {{{house3_leader1|}}} | | style="display:none;" }}
! {{{house3_leader1}}}
| {{{house3_leader1_name}}}
|- {{#if: {{{house3_leader2|}}} | | style="display:none;" }}
! {{{house3_leader2}}}
| {{{house3_leader2_name}}}
|- {{#if: {{{house3_member_title|}}} | | style="display:none;" }}
! {{{house3_member_title}}}
| {{{house3_members}}}
|- {{#if: {{{house3_place|}}} | | style="display:none;" }}
! Meeting place
| {{{house3_place}}}
|-
|-
|}
! style="background-color: #BDBDBD;" colspan="2" | '''{{{branch4|Judicial branch}}}'''
|-
! {{{court1|Court}}}
| {{{court1_name}}}
|- {{#if: {{{court1_chief|}}} | | style="display:none;"}}
! {{{court1_chief}}}
| {{{court1_chief_name}}}
|- {{#if: {{{court1_seat|}}} | | style="display:none;"}}
! Seat
| {{{court1_seat}}}
|-{{#if: {{{court2|}}} | | style="display: none;" }}
! {{{court2}}}
| {{{court2_name}}}
|- {{#if: {{{court2_chief|}}} | | style="display:none;"}}
! {{{court2_chief}}}
| {{{court2_chief_name}}}
|- {{#if: {{{court2_seat|}}} | | style="display:none;"}}
! Seat
| {{{court2_seat}}}
|}</includeonly><noinclude>{{GovernmentInfobox/doc}}
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 22:21, 11 December 2023

The {{GovernmentInfobox}} provides an infobox to summarize the structure of a government.

Usage

{{{government_name}}}
{{{native_name}}}
{{{government_form}}}
[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt}}}]]
{{{caption}}}
Formation {{{formation}}}
Extinction {{{extinction}}}
{{{document type|Founding document}}} {{{document}}}
State {{{state}}}
Country {{{country}}}
Website {{{website}}}
{{{branh1}}}
{{{branch1_label1}}} {{{branch1_data1}}}
{{{branch1_label2}}} {{{branch1_data2}}}
{{{branch1_label3}}} {{{branch1_data3}}}
{{{branch1_label4}}} {{{branch1_data4}}}
{{{branch2|Executive branch}}}
{{{leader_type}}} {{{leader_title}}}
{{{leader_name}}}
{{{appointed1|Appointed by}}} {{{appointed1_by}}}
{{{leader_type2}}} {{{leader_title2}}}
{{{leader_name2}}}
{{{appointed2|Appointed by}}} {{{appointed2_by}}}
Main body {{{main_body}}}
Headquarters {{{headquarters}}}
{{{components|Ministries}}} {{{departments}}}
{{{branch3|Legislative branch}}}
{{{house1|Upper house}}} {{{house1_name}}}
{{{house1_leader1}}} {{{house1_leader1_name}}}
{{{house1_leader2}}} {{{house1_neader2_name}}}
{{{house1_member_title}}} {{{house1_members}}}
Meeting place {{{house1_place}}}

{{{house2|Middle house}}} {{{house2_name}}}
{{{house2_leader1}}} {{{house2_leader1_name}}}
{{{house2_leader2}}} {{{house2_neader2_name}}}
{{{house2_member_title}}} {{{house2_members}}}
Meeting place {{{house2_place}}}

{{{house3|Lower house}}} {{{house3_name}}}
{{{house3_leader1}}} {{{house3_leader1_name}}}
{{{house3_leader2}}} {{{house3_neader2_name}}}
{{{house3_member_title}}} {{{house3_members}}}
Meeting place {{{house3_place}}}
{{{branch4|Judicial branch}}}
{{{court1}}} {{{court1_name}}}
{{{court1_chief}}} {{{court1_chief_name}}}
Seat {{{court1_seat}}}
{{{court2}}} {{{court2_name}}}
{{{court2_chief}}} {{{court2_chief_name}}}
Seat {{{court2_seat}}}

Copy and paste the following to the top of the article page, adding the appropriate values to the desired parameters.

{{GovernmentInfobox
| government_name     = <!-- Omit this parameter to use the pagename as the default value -->
| native_name         = 
| government_form     = 
| image               = 
| image_size          = <!-- Defaults to 250px -->
| alt                 =
| caption             = 
| formation           = 
| extinction          = 
| document_type       = <!-- Defaults to "Founding document" -->
| document            =
| state               = 
| country             =
| website             =

| branch1             =
| branch1_label1      =
| branch1_data1       = <!-- Requires a value in branch1_label1 -->
| branch1_label2      =
| branch1_data2       = <!-- Requires a value in branch1_label2 -->
| branch1_label3      = 
| branch1_data3       = <!-- Requires a value in branch1_label3 -->
| branch1_label4      = 
| branch1_data4       = <!-- Requires a value in branch1_label4 -->

| branch2             = <!-- Defaults to "Executive branch" -->
| leader_type         = 
| leader_title        = 
| leader_name         = 
| appointed1          = <!-- Defaults to "Appointed by'; requires a value in appointed1_by -->
| appointed1_by       =
| leader_type2        = 
| leader_title2       = <!-- Requires a value in leader_type2 -->
| leader_name2        = <!-- Requires a value in leader_type2 -->
| appointed2          = <!-- Defaults to "Appointed by"; requires a value in appointed2_by -->
| appointed2_by       = 
| main_body           = 
| headquarters        = 
| components          = <!-- Defaults to "Ministries"; requires a value in departments -->
| departments         =

| branch3             = <!-- Defaults to "Legislative branch" -->
| house1              = <!-- Defaults to "Upper house" -->
| house1_name         = 
| house1_leader1      = 
| house1_leader1_name = <!-- Requires a value in house1_leader1 -->
| house1_leader2      = 
| house1_leader2_name = <!-- Requires a value in house1_leader2 -->
| house1_member_title = 
| house1_members      = <!-- Requires a value in house1_member_title -->
| house1_place        = 
| house2              = <!-- Defaults to "Middle house" -->
| house2_name         = 
| house2_leader1      = 
| house2_leader1_name = <!-- Requires a value in house2_leader1 -->
| house2_leader2      = 
| house2_leader2_name = <!-- Requires a value in house2_leader2 -->
| house2_member_title =
| house2_members      = <!-- Requires a value in house2_member_title -->
| house2_place        = 
| house3              = <!-- Defaults to "Lower house" -->
| house3_name         = 
| house3_leader1      = 
| house3_leader1_name = <!-- Requires a value in house3_leader1 -->
| house3_leader2      = 
| house3_leader2_name = <!-- Requires a value in house3_leader2 -->
| house3_member_title = 
| house3_members      = <!-- Requires a value in house3_member_title -->
| house3_place        = 

| branch4             = <!-- Defaults to "Judicial branch" -->
| court1              = 
| court1_name         = 
| court1_chief        = 
| court1_chief_name   = <!-- Requires a value in court1_chief -->
| court1_seat         = 
| court2              =
| court2_name         = <!-- Requires a value in court2 -->
| court2_chief        = 
| court2_chief_name   = <!-- Requires a value in court2_chief -->
| court2_seat         = 
}}

Parameters

All parameters are optional. However, some parameters are dependent on another parameter having a value, as noted above.