Misplaced Pages

Template:Infobox government cabinet: Difference between revisions

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 20:03, 10 November 2014 view sourcePanchoS (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers68,603 edits cabinet name above infobox, fallback to pagename← Previous edit Latest revision as of 18:56, 12 September 2024 view source FCBWanderer (talk | contribs)Extended confirmed users5,533 editsNo edit summary 
(99 intermediate revisions by 37 users not shown)
Line 1: Line 1:
{{infobox {{infobox
| bodystyle = width:auto; max-width:30em | bodystyle = width:auto; max-width:30em
| abovestyle = background-color: #ededed;
| name = {{{cabinet_name|{{PAGENAME}}}}}
| above = <includeonly><div class="fn org">{{{cabinet_name|{{PAGENAMEBASE}}}}}</div></includeonly>


| subheaderstyle1 = font-weight:bold; | subheaderstyle1 = font-weight:bold;
| subheader1 = {{br separated entries | subheader1 = {{br separated entries
| 1 = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{flag|}}}|{{{flag}}}|{{#if:{{{jurisdiction|}}}|{{#switch:{{lc:{{{cabinet_type|Cabinet}}}}}||cabinet|government = {{#if:{{Find country|{{{jurisdiction}}}}}|{{getalias|{{Find country|{{{jurisdiction}}}}}|flag}}|{{#ifexist:{{{jurisdiction|}}}|{{getalias|{{{jurisdiction}}}|flag}}}}}}}}}}}}|border={{#if:{{getalias2|{{Find country|{{{jurisdiction}}}}}|border}}|{{yesno-yes|{{{flag_border|}}}}}}}|size={{{flag_width|}}}|sizedefault=50px}}
| 1 = {{#if:{{{cabinet_number|}}}|{{{cabinet_number}}} Cabinet {{#if:{{{jurisdiction|}}}|of {{{jurisdiction}}}}}}}
| 2 = {{#if:{{{jurisdiction|}}}|{{{cabinet_number|}}} {{Link if exists|{{if empty|{{{cabinet_type|}}}|Cabinet}} of {{CountryPrefixThe|{{{jurisdiction}}}}}}}}}
| 2 = {{#if:{{{flag|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{flag}}}|border={{#if:{{{flag_border|}}}|yes}}|size={{{flag_width|}}}|sizedefault=50px|title={{{flag_caption|}}}}}{{#if:{{{flag_caption|}}}
| <div style="font-size:smaller;font-weight:normal">{{{flag_caption}}}</div>
}}
}}
}} }}


Line 18: Line 15:
| headerstyle = background-color: #efefef | headerstyle = background-color: #efefef


| 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|}}}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=300x200px|alt={{{alt|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image_size2|}}}|sizedefault=300x200px|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 = {{{caption|}}}


Line 27: Line 24:
| data2 = {{{date_dissolved|}}} | data2 = {{{date_dissolved|}}}


| header3 = {{#if:{{{government_head|}}}{{{government_head_history|}}}{{{deputy_government_head|}}}{{{state_head|}}}{{{current_number|}}}{{{former_members_number|}}}{{{total_number|}}}{{{political_party|}}}{{{legislature_status|}}}{{{opposition_cabinet|}}}{{{opposition_party|}}}{{{opposition_leader|}}}|People and organizations}} | header3 = {{#if:{{{government_head|}}}{{{government_head_history|}}}{{{deputy_government_head|}}}{{{state_head|}}}{{{current_number|}}}{{{former_members_number|}}}{{{total_number|}}}{{{political_party|}}}{{{legislature_status|}}}{{{opposition_cabinet|}}}{{{opposition_party|}}}{{{opposition_leader|}}}|People and {{engvar |defaultWord=organisations |defaultLang=en-UK |en-US=organizations |en-CA=organizations |engvar={{{engvar|{{{jurisdiction|}}}}}}}}}}


| label4 = Head of government
| data4 = {{{government_head|}}}


| label4 = {{#if:{{{state_head_title|}}}|{{{state_head_title}}}|Head of state}}
| label5 = Head of government's history
| data5 = {{{government_head_history|}}} | data4 = {{{state_head|}}}


| label5 = {{#if:{{{president_title|}}}|{{{president_title}}}|President}}
| label6 = Deputy head of government
| data6 = {{{deputy_government_head|}}} | data5 = {{{president|}}}


| label6 = {{#if:{{{governor_title|}}}|{{{governor_title}}}|Governor}}
| label7 = Head of state
| data7 = {{{state_head|}}} | data6 = {{{governor|}}}


| label7 = {{#if:{{{governor_general_title|}}}|{{{governor_general_title}}}|Governor-General}}
| label8 = Number of ministers
| data8 = {{{members_number|{{{current_number|}}}}}} | data7 = {{{governor_general|}}}


| label8 = {{#if:{{{represented_by_title|}}}|{{{represented_by_title}}}|Represented by}}
| label9 = Ministers removed<br />{{nobold|(Death/resignation/dismissal)}}
| data9 = {{{former_members_number|}}} | data8 = {{{represented_by|}}}


| label9 = {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|Head of government}}
| label10 = Total number of ministers
| data10 = {{{total_number|}}} | data9 = {{{government_head|}}}


| label11 = {{#if:{{{political_party|}}}|Member party|Member parties}} | label10 = {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|Head of government}}'s history
| data10 = {{{government_head_history|}}}
| data11 = {{#if:{{{political_party|}}}|{{{political_party}}}|{{{political_parties|}}}}}


| label11 = {{#if:{{{prime minister_title|}}}|{{{prime minister_title}}}|Prime Minister}}
| label12 = Status in legislature
| data12 = {{{legislature_status|}}} | data11 = {{{prime minister|}}}


| label12 = {{#if:{{{appointed_title|}}}|{{{appointed_title}}}|Appointed by}}
| label13 = Opposition cabinet
| data13 = {{{opposition_cabinet|}}} | data12 = {{{appointed|}}}


| label14 = {{#if:{{{opposition_party|}}}|Opposition party|Opposition parties}} | label13 = {{#if:{{{premier_title|}}}|{{{premier_title}}}|Premier}}
| data13 = {{{premier|}}}
| data14 = {{#if:{{{opposition_party|}}}|{{{opposition_party}}}|{{{opposition_parties|}}}}}


| label15 = {{#if:{{{opposition_leader|}}}|Opposition leader|Opposition leaders}} | label14 = {{#if:{{{chancellor_title|}}}|{{{chancellor_title}}}|Chancellor}}
| data14 = {{{chancellor|}}}
| data15 = {{#if:{{{opposition_leader|}}}|{{{opposition_leader}}}|{{{opposition_leaders|}}}}}


| label15 = {{#if:{{{chief minister_title|}}}|{{{chief minister_title}}}|Chief Minister}}
| header16 = {{#if:{{{election|}}}{{{last_election|}}}{{{legislature_term|}}}{{{budget|}}}{{{advice_and_consent1|}}}{{{advice_and_consent2|}}}{{{advice_and_consent3|}}}{{{advice_and_consent4|}}}{{{advice_and_consent5|}}}{{{incoming_formation|}}}{{{outgoing_formation|}}}{{{previous|}}}{{{successor|}}}|History}}
| data15 = {{{chief minister|}}}


| label16 = {{#if:{{{first minister_title|}}}|{{{first minister_title}}}|First Minister}}
| label17 = Election(s)
| data17 = {{{election|}}} | data16 = {{{first minister|}}}


| label17 = {{#if:{{{minister-president_title|}}}|{{{minister-president_title}}}|Minister-President}}
| label18 = Outgoing election
| data18 = {{{last_election|}}} | data17 = {{{minister-president|}}}


| label18 = {{#if:{{{deputy_government_head_title|}}}|{{{deputy_government_head_title}}}|Deputy {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|head of government}}}}
| label19 = Legislature term(s)
| data19 = {{{legislature_term|}}} | data18 = {{{deputy_government_head|}}}


| label19 = {{{other_government_minister_title|}}}
| label20 = Budget(s)
| data20 = {{{budget|}}} | data19 = {{{other_government_minister|}}}


| label20 = {{abbr|No.|Number}} of ministers
| label21 = Advice and consent
| data20 = {{{members_number|{{{current_number|}}}}}}
| data21 = {{br separated entries

| label21 = Ministers removed
| data21 ={{br separated entries
| 1 = {{#if:{{{former_members_number|}}}|{{{former_members_number|}}}}}
| 2 = {{#if:{{{former_members_resigned|}}}|{{{former_members_resigned|}}} resigned }}
| 3 = {{#if:{{{former_members_dismissed|}}}|{{{former_members_dismissed|}}} dismissed }}
| 4 = {{#if:{{{former_members_died|}}}|{{{former_members_died|}}} died }}
| 5 = {{#if:{{{former_members_other|}}}|{{{former_members_other|}}} left for other reasons }}
}}

| label22 = Total {{abbr|no.|number}} of members
| data22 = {{{total_number|}}}

| label23 = {{#if:{{{political_party|}}}|Member party|Member parties}}
| data23 = {{#if:{{{political_party|}}}|{{{political_party}}}|{{{political_parties|}}}}}

| label24 = Status in legislature
| data24 = {{{legislature_status|}}}

| label25 = Opposition cabinet
| data25 = {{{opposition_cabinet|}}}

| label26 = {{#if:{{{opposition_party|}}}|Opposition party|Opposition parties}}
| data26 = {{#if:{{{opposition_party|}}}|{{{opposition_party}}}|{{{opposition_parties|}}}}}

| label27 = {{#if:{{{opposition_leader|}}}|Opposition leader|Opposition leaders}}
| data27 = {{#if:{{{opposition_leader|}}}|{{{opposition_leader}}}|{{{opposition_leaders|}}}}}

| header28 = {{#if:{{{election|}}}{{{last_election|}}}{{{legislature_term|}}}{{{budget|}}}{{{advice_and_consent1|}}}{{{advice_and_consent2|}}}{{{advice_and_consent3|}}}{{{advice_and_consent4|}}}{{{advice_and_consent5|}}}{{{incoming_formation|}}}{{{outgoing_formation|}}}{{{previous|{{{predecessor|}}}}}}{{{successor|}}}|History}}

| label29 = Election{{Pluralize from text|{{{election|}}}|plural=s}}
| data29 = {{{election|}}}

| label30 = Outgoing election
| data30 = {{{last_election|}}}

| label31 = Legislature term{{Pluralize from text|{{{legislature_term|}}}|plural=s}}
| data31 = {{{legislature_term|}}}

| label32 = Budget{{Pluralize from text|{{{budget|}}}|plural=s}}
| data32 = {{{budget|}}}

| label33 = Advice and consent
| data33 = {{br separated entries
| 1 = {{{advice_and_consent1|}}} | 1 = {{{advice_and_consent1|}}}
| 2 = {{{advice_and_consent2|}}} | 2 = {{{advice_and_consent2|}}}
Line 87: Line 127:
| 5 = {{{advice_and_consent5|}}} | 5 = {{{advice_and_consent5|}}}
}} }}

| label22 = Incoming formation
| label34 = Incoming formation
| data22 = {{{incoming_formation|}}}
| data34 = {{{incoming_formation|}}}
| label23 = Outgoing formation

| data23 = {{{outgoing_formation|}}}
| label35 = Outgoing formation
| label24 = Previous
| data24 = {{{previous|}}} | data35 = {{{outgoing_formation|}}}

| label25 = Successor
| label36 = Predecessor
| data25 = {{{successor|}}}
| data36 = {{{previous|{{{predecessor|}}}}}}
}}<noinclude>

{{documentation}}
| label37 = Successor
| data37 = {{{successor|}}}
}}{{#if:{{{cabinet_number|}}}|{{#if:{{{jurisdiction|}}}||{{main other|]}}}}}}{{#if:{{{government_head_history|}}}|{{main other|]}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|]}}|preview=Page using ] with unknown parameter "_VALUE_"|ignoreblank=y| advice_and_consent1 | advice_and_consent2 | advice_and_consent3 | advice_and_consent4 | advice_and_consent5 | alt | alt2 | alt3 | alt4 | budget | cabinet_name | cabinet_number | cabinet_type | caption | current_number | date_dissolved | date_formed | deputy_government_head | deputy_government_head_title | election | engvar | flag | flag_border | flag_width | former_members_died | former_members_dismissed | former_members_number | former_members_other | former_members_resigned | government_head | government_head_history | government_head_title | president | governor | governor_general | governor_general_title | governor_title | image | image_size | image_size2 | image_size3 | image_size4 | image2 | image3 | image4 | incoming_formation | incumbent | jurisdiction | last_election | legislature_status | legislature_term | members_number | opposition_cabinet | opposition_leader | opposition_leaders | opposition_parties | opposition_party | prime_minister | premier | chancellor | chief_minister | first_minister | minister-president | other_government_minister | other_government_minister_title | outgoing_formation | political_parties | political_party | predecessor | previous | represented_by | represented_by_title | state_head | state_head_title | successor | total_number }}<noinclude>
{{documentation}}<!-- Please place categories and language links on the /doc page, not here! -->
</noinclude> </noinclude>

Latest revision as of 18:56, 12 September 2024

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:

Usage

Infobox government cabinet
]
{{{cabinet_number}}} {{{cabinet_type}}} of {{{jurisdiction}}}
{{{incumbent}}}
]{{{caption}}}
Date formed{{{date_formed}}}
Date dissolved{{{date_dissolved}}}
People and organisations
Head of state{{{state_head}}}
Governor{{{governor}}}
Governor-General{{{governor_general}}}
Represented by{{{represented_by}}}
{{{government_head_title}}}{{{government_head}}}
{{{government_head_title}}}'s history{{{government_head_history}}}
{{{deputy_government_head_title}}}{{{deputy_government_head}}}
{{{other_government_minister_title}}}{{{other_government_minister}}}
No. of ministers{{{members_number}}} or {{{current_number}}}
Ministers removed{{{former_members_number}}}
Total no. of members{{{total_number}}}
Member party{{{political_party}}} or {{{political_parties}}}
Status in legislature{{{legislature_status}}}
Opposition cabinet{{{opposition_cabinet}}}
Opposition party{{{opposition_party}}} or {{{opposition_parties}}}
Opposition leader{{{opposition_leader}}} or {{{opposition_leaders}}}
History
Election{{{election}}}
Outgoing election{{{last_election}}}
Legislature term{{{legislature_term}}}
Budget{{{budget}}}
Advice and consent{{{advice_and_consent1}}}
{{{advice_and_consent2}}}
{{{advice_and_consent3}}}
{{{advice_and_consent4}}}
{{{advice_and_consent5}}}
Incoming formation{{{incoming_formation}}}
Outgoing formation{{{outgoing_formation}}}
Predecessor{{{predecessor}}} or {{{previous}}}
Successor{{{successor}}}
{{Infobox government cabinet
| cabinet_name            = 
| cabinet_number          = 
| cabinet_type            = <!-- an alternative name for "cabinet"; defaults to "cabinet" -->
| jurisdiction            = 
| flag                    = 
| flag_border             = true
| flag_width              =
| incumbent               = 
| image                   = 
| image_size              =
| alt                     =
| caption                 = 
| date_formed             = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| date_dissolved          = <!-- {{End date|YYYY|MM|DD|df=y}} -->
| state_head_title        = <!-- e.g., Monarch, President; defaults to "Head of state" -->
| state_head              =
| government_head_title   = <!-- e.g., Prime Minister -->
| government_head         = 
| government_head_history = 
| deputy_government_head_title = 
| deputy_government_head  = 
| other_government_minister_title =
| other_government_minister =
| governor_title          = 
| governor                =
| governor_general_title  =
| governor_general        =
| represented_by_title    =
| represented_by          =
| members_number          = <!-- or | current_number = -->
| former_members_number   = 
| total_number            = 
| political_party         = <!-- or | political_parties = -->
| legislature_status      = <!-- e.g., coalition government -->
| opposition_cabinet      = 
| opposition_party        = <!-- or | opposition_parties = -->
| opposition_leader       = <!-- or | opposition_leaders = -->
| election                = 
| last_election           = 
| legislature_term        = 
| budget                  = 
| advice_and_consent1     = 
| advice_and_consent2     = <!-- up to | advice_and_consent5 = -->
| incoming_formation      = <!-- events leading to formation of govt.: e.g., ] -->
| outgoing_formation      = <!-- events or debate leading to dissolution -->
| predecessor             = <!-- or | previous = -->
| successor               = 
}}

Separate multiple values using {{plainlist}}.

Multiple images

For an array of up to four images, use:

| image                  =
| image_size             = x85px
| alt                    =
| image2                 =
| image_size2            = x85px
| alt2                   =
| image3                 =
| image_size3            = x85px
| alt3                   =
| image4                 =
| image_size4            = x85px
| alt4                   =
| caption                =

Tracking categories

The above documentation is transcluded from Template:Infobox government cabinet/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories:
Template:Infobox government cabinet: Difference between revisions Add topic