Difference between revisions of "Template:Infobox government cabinet/sandbox"
Jump to navigation
Jump to search
imported>Frietjes m |
imported>Funandtrvl (sync w/template) |
||
| Line 7: | Line 7: | ||
| subheader1 = {{br separated entries | | subheader1 = {{br separated entries | ||
| 1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{flag|}}}|border={{#if:{{{flag_border|}}}|yes}}|size={{{flag_width|}}}|sizedefault=50px}} | | 1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{flag|}}}|border={{#if:{{{flag_border|}}}|yes}}|size={{{flag_width|}}}|sizedefault=50px}} | ||
| − | | 2 = {{#if:{{{jurisdiction|}}}|{{{cabinet_number|}}} {{if empty|{{{cabinet_type|}}}| | + | | 2 = {{#if:{{{jurisdiction|}}}|{{{cabinet_number|}}} {{if empty|{{{cabinet_type|}}}|Cabinet}} of {{{jurisdiction}}}}} |
}} | }} | ||
| Line 30: | Line 30: | ||
| data4 = {{#if:{{{state_head|}}}|{{{state_head|}}}}} | | data4 = {{#if:{{{state_head|}}}|{{{state_head|}}}}} | ||
| − | | label5 = {{#if:{{{ | + | | label5 = {{#if:{{{governor_title|}}}|{{{governor_title}}}|Governor}} |
| − | | data5 = {{{ | + | | data5 = {{{governor|}}} |
| − | | label6 = {{#if:{{{ | + | | label6 = {{#if:{{{governor_general_title|}}}|{{{governor_general_title}}}|Governor-General}} |
| − | | data6 = {{{ | + | | data6 = {{{governor_general|}}} |
| − | | label7 = {{#if:{{{ | + | | label7 = {{#if:{{{represented_by_title|}}}|{{{represented_by_title}}}|Represented by}} |
| − | | data7 = {{ | + | | data7 = {{{represented_by|}}} |
| − | | label8 = {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|Head of government}} | + | | label8 = {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|Head of government}} |
| − | | data8 = {{{ | + | | data8 = {{#if:{{{government_head|}}}|{{{government_head|}}}}} |
| − | | label9 = | + | | label9 = {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|Head of government}}'s history |
| − | | data9 = {{{ | + | | data9 = {{{government_head_history|}}} |
| − | | label10 = {{ | + | | label10 = {{#if:{{{deputy_government_head_title|}}}|{{{deputy_government_head_title}}}|Deputy {{#if:{{{government_head_title|}}}|{{{government_head_title}}}|head of government}}}} |
| − | | | + | | data10 = {{{deputy_government_head|}}} |
| − | | label11 = | + | | label11 = {{#if:{{{other_government_minister_title|}}}|{{{other_government_minister_title}}}}} |
| − | | data11 = {{{ | + | | data11 = {{{other_government_minister|}}} |
| − | | label12 = | + | | label12 = {{abbr|No.|Number}} of ministers |
| − | | data12 = {{{ | + | | data12 = {{{members_number|{{{current_number|}}}}}} |
| − | | label13 = {{#if:{{{ | + | | label13 = Ministers removed |
| − | | | + | | data13 ={{br separated entries |
| + | | 1 = {{#if:{{{former_members_resigned|}}}|{{{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 }} | ||
| + | }} | ||
| − | | label14 = | + | | label14 = Total {{abbr|no.|number}} of members |
| − | | data14 = {{{ | + | | data14 = {{{total_number|}}} |
| − | | label15 = | + | | label15 = {{#if:{{{political_party|}}}|Member party|Member parties}} |
| − | | data15 = {{{ | + | | data15 = {{#if:{{{political_party|}}}|{{{political_party}}}|{{{political_parties|}}}}} |
| − | | label16 = | + | | label16 = Status in legislature |
| − | | data16 = | + | | data16 = {{{legislature_status|}}} |
| − | | label17 = | + | | label17 = Opposition cabinet |
| − | | data17 = | + | | data17 = {{{opposition_cabinet|}}} |
| − | | | + | | label18 = {{#if:{{{opposition_party|}}}|Opposition party|Opposition parties}} |
| + | | data18 = {{#if:{{{opposition_party|}}}|{{{opposition_party}}}|{{{opposition_parties|}}}}} | ||
| − | | label19 = | + | | label19 = {{#if:{{{opposition_leader|}}}|Opposition leader|Opposition leaders}} |
| − | | data19 = {{{ | + | | data19 = {{#if:{{{opposition_leader|}}}|{{{opposition_leader}}}|{{{opposition_leaders|}}}}} |
| − | | | + | | header20 = {{#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}} |
| − | | | ||
| − | | label21 = | + | | label21 = Election(s) |
| − | | data21 = {{{ | + | | data21 = {{{election|}}} |
| − | | label22 = | + | | label22 = Outgoing election |
| − | | data22 = {{{ | + | | data22 = {{{last_election|}}} |
| − | | label23 = Advice and consent | + | | label23 = Legislature term(s) |
| − | | | + | | data23 = {{{legislature_term|}}} |
| + | |||
| + | | label24 = Budget(s) | ||
| + | | data24 = {{{budget|}}} | ||
| + | |||
| + | | label25 = Advice and consent | ||
| + | | data25 = {{br separated entries | ||
| 1 = {{{advice_and_consent1|}}} | | 1 = {{{advice_and_consent1|}}} | ||
| 2 = {{{advice_and_consent2|}}} | | 2 = {{{advice_and_consent2|}}} | ||
| Line 92: | Line 104: | ||
}} | }} | ||
| − | | | + | | label26 = Incoming formation |
| − | | | + | | data26 = {{{incoming_formation|}}} |
| − | | | + | | label27 = Outgoing formation |
| − | | | + | | data27 = {{{outgoing_formation|}}} |
| − | | | + | | label28 = Predecessor |
| − | | | + | | data28 = {{{previous|{{{predecessor|}}}}}} |
| − | | | + | | label29 = Successor |
| − | | | + | | data29 = {{{successor|}}} |
| − | }}{{#if:{{{cabinet_number|}}}|{{#if:{{{jurisdiction|}}}||[[Category:Pages using infobox government cabinet with number and without jurisdiction]]}}}}{{#if:{{{government_head_history|}}}|[[Category:Pages using infobox government cabinet with government_head_history]]}}<noinclude> | + | }}{{#if:{{{cabinet_number|}}}|{{#if:{{{jurisdiction|}}}||{{main other|[[Category:Pages using infobox government cabinet with number and without jurisdiction]]}}}}}}{{#if:{{{government_head_history|}}}|{{main other|[[Category:Pages using infobox government cabinet with government_head_history]]}}}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 04:41, 30 September 2020
| 50px | This is the template sandbox page for Template:Infobox government cabinet (diff). See also the companion subpage for test cases. |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
Template:Parameter names example
{{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}} -->
| 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 =
| state_head_title = <!-- e.g., Monarch, President; defaults to "Head of state" -->
| state_head =
| 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., [[Norway debate]] -->
| 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
- Category:Pages using infobox government cabinet with number and without jurisdiction (0)
- Category:Pages using infobox government cabinet with government_head_history (0)
| 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. Please add categories to the /doc subpage. Subpages of this template. |