Template:National legislature: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| align="right" cellpadding="3" cellspacing="0" width="300" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 90%;"
<includeonly>{| align="right" cellpadding="3" cellspacing="0" width="300" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 90%;"
|- style="font-size:larger;"  
|- style="font-size:larger;"  
!colspan="2" align="center" | <div style="background:#c4c4c4;">{{{name}}}{{#if: {{{native_name|}}} | <br /><span style="font-size:80%; font-style:italic;">{{{native_name}}}</span> | }}</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">{{{name}}}{{#if: {{{native_name|}}} | <br /><span style="font-size:80%; font-style:italic;">{{{native_name}}}</span> | }}</div>
|- {{#if: {{{logo|}}} | | style="display: none;" }}
|- {{#if: {{{logo|}}} | | style="display: none;" }}
| colspan="2" align="center" | [[File:{{{logo}}}|{{{size|200 px}}}|{{{logo_alt}}}]]{{#if: {{{logo_description|}}} | <br />{{{logo_description}}} | }}
| colspan="2" align="center" | [[File:{{{logo}}}|{{{size|145px}}}|{{{logo_alt}}}]]{{#if: {{{logo_caption|}}} | <br />{{{logo_caption}}} | }}
|- {{#if: {{{legislature_type|}}}{{{house1|}}}{{{house2|}}}{{{house3|}}}{{{house4|}}} | | style="display: none;" }}
|- {{#if: {{{legislature_type|}}}{{{house1|}}}{{{house2|}}}{{{house3|}}}{{{house4|}}} | | style="display: none;" }}
!colspan="2" align="center" | <div style="background:#c4c4c4;">Type</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">Type</div>
Line 11: Line 11:
| width="100"| {{#if: {{{house2|}}}{{{house3|}}}{{{house4|}}} | '''Houses''' | '''House'''}}
| width="100"| {{#if: {{{house2|}}}{{{house3|}}}{{{house4|}}} | '''Houses''' | '''House'''}}
| {{{house1|}}} {{#if: {{{house2|}}} | <br />{{{house2}}} | }}{{#if: {{{house3|}}} | <br />{{{house3}}} | }}{{#if: {{{house4|}}} | <br />{{{house4}}} | }}
| {{{house1|}}} {{#if: {{{house2|}}} | <br />{{{house2}}} | }}{{#if: {{{house3|}}} | <br />{{{house3}}} | }}{{#if: {{{house4|}}} | <br />{{{house4}}} | }}
|- {{#if: {{{leader_title1|}}}{{{leader_title2|}}}{{{leader_title3|}}}{{{leader_title4|}}}{{{leader1|}}}{{{leader2|}}}{{{leader3|}}}{{{leader4|}}} |  | style="display: none;" }}
|- {{#if: {{{leader1_title|}}}{{{leader2_title|}}}{{{leader3_title|}}}{{{leader4_title|}}}{{{leader1|}}}{{{leader2|}}}{{{leader3|}}}{{{leader4|}}} |  | style="display: none;" }}
!colspan="2" align="center" | <div style="background:#c4c4c4;">Leadership</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">Leadership</div>
|- valign="top" {{#if: {{{leader_title1|}}}{{{leader1|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{leader1_title|}}}{{{leader1|}}} | | style="display: none;" }}
| width="100"| '''{{{leader_title1}}}''' || {{{leader1}}}
| width="100"| '''{{{leader1_title}}}''' || {{{leader1}}}
|- valign="top" {{#if: {{{leader_title2|}}}{{{leader2|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{leader2_title|}}}{{{leader2|}}} | | style="display: none;" }}
| width="100"| '''{{{leader_title2}}}''' || {{{leader2}}}
| width="100"| '''{{{leader2_title}}}''' || {{{leader2}}}
|- valign="top" {{#if: {{{leader_title3|}}}{{{leader3|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{leader3_title|}}}{{{leader3|}}} | | style="display: none;" }}
| width="100"| '''{{{leader_title3}}}''' || {{{leader3}}}
| width="100"| '''{{{leader3_title}}}''' || {{{leader3}}}
|- valign="top" {{#if: {{{leader_title4|}}}{{{leader4|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{leader4_title|}}}{{{leader4|}}} | | style="display: none;" }}
| width="100"| '''{{{leader_title4}}}''' || {{{leader4}}}
| width="100"| '''{{{leader4_title}}}''' || {{{leader4}}}
|- {{#if: {{{seats|}}}{{{structure1|}}}{{{political_groups1|}}}{{{term1|}}}{{{structure2|}}}{{{political_groups2|}}}{{{term2|}}} | | style="display: none;" }}
|- {{#if: {{{seats|}}}{{{structure1|}}}{{{political_groups1|}}}{{{term1|}}}{{{structure2|}}}{{{political_groups2|}}}{{{term2|}}}{{{structure3|}}}{{{political_groups3|}}}{{{term3|}}}{{{structure4|}}}{{{political_groups4|}}}{{{term4|}}} | | style="display: none;" }}
!colspan="2" align="center" | <div style="background:#c4c4c4;">Structure</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">Structure</div>
|- valign="top" {{#if: {{{seats|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{seats|}}} | | style="display: none;" }}
| width="100"| '''Seats''' || {{{seats}}}
| width="100"| '''Seats''' || {{{seats}}}
|- valign="top" {{#if: {{{structure1|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{structure1|}}} | | style="display: none;" }}
| colspan="2" align="center" | [[File:{{{structure1}}}|{{{structure1_size|290px}}}|{{{structure1_alt]]
| colspan="2" align="center" | [[File:{{{structure1}}}|{{{structure1_size|250px}}}|{{{structure1_alt}}}]]
|- valign="top" {{#if: {{{political_groups1|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{political_groups1|}}} | | style="display: none;" }}
| width="100"| '''{{{house1}}} political groups''' || {{{political_groups1}}}
| width="100"| '''{{{house1}}} {{#if: {{{house1|}}} | political | Political }} groups''' || {{{political_groups1}}}
|- valign="top" {{#if: {{{term1|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{term1|}}} | | style="display: none;" }}
| width="100" | '''Length of term''' || {{{term1}}}
| width="100" | '''Length of term''' || {{{term1}}}
|- valign="top" {{#if: {{{structure2|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{structure2|}}} | | style="display: none;" }}
| colspan="2" align="center" | [[File:{{{structure2}}}|{{{structure2_size|290px}}}|{{{structure2_alt]]
| colspan="2" align="center" | [[File:{{{structure2}}}|{{{structure2_size|250px}}}|{{{structure2_alt}}}]]
|- valign="top" {{#if: {{{political_groups2|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{political_groups2|}}} | | style="display: none;" }}
| width="100"| '''{{{house2}}} political groups''' || {{{political_groups2}}}
| width="100"| '''{{{house2}}} political groups''' || {{{political_groups2}}}
|- valign="top" {{#if: {{{term2|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{term2|}}} | | style="display: none;" }}
| width="100" | '''Length of term''' || {{{term2}}}
| width="100" | '''Length of term''' || {{{term2}}}
 
|- valign="top" {{#if: {{{structure3|}}} | | style="display: none;" }}
 
| colspan="2" align="center" | [[File:{{{structure3}}}|{{{structure3_size|250px}}}|{{{structure3_alt}}}]]
|-  
|- valign="top" {{#if: {{{political_groups3|}}} | | style="display: none;" }}
| width="100"| '''{{{house3}}} political groups''' || {{{political_groups3}}}
|- valign="top" {{#if: {{{term3|}}} | | style="display: none;" }}
| width="100" | '''Length of term''' || {{{term3}}}
|- valign="top" {{#if: {{{structure4|}}} | | style="display: none;" }}
| colspan="2" align="center" | [[File:{{{structure4}}}|{{{structure4_size|250px}}}|{{{structure4_alt}}}]]
|- valign="top" {{#if: {{{political_groups4|}}} | | style="display: none;" }}
| width="100"| '''{{{house4}}} political groups''' || {{{political_groups4}}}
|- valign="top" {{#if: {{{term4|}}} | | style="display: none;" }}
| width="100" | '''Length of term''' || {{{term4}}}
|- {{#if:{{{voting_system1|}}}{{{voting_system2|}}}{{{voting_system3|}}}{{{voting_system4|}}}{{{last_election1|}}}{{{last_election2|}}}{{{last_election3|}}}{{{last_election4|}}}{{{next_election1|}}}{{{next_election2|}}}{{{next_election3|}}}{{{next_election4|}}} | | style="display: none;" }}
!colspan="2" align="center" | <div style="background:#c4c4c4;">Elections</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">Elections</div>
|-class="hiddenStructure{{{Voting_system|}}}
|- valign="top" {{#if: {{{voting_system1|}}} | | style="display: none;" }}
| valign="top" | '''Voting system''' || {{{Voting_system}}}
| width="100" | '''{{{house1}}} {{#if: {{{house1|}}} | {{wp|voting system}} | {{wp|Voting system}} }}''' || {{{voting_system1}}}
|- class="hiddenStructure{{{Last_election_1|}}}
|- valign="top" {{#if: {{{voting_system2|}}} | | style="display: none;" }}
| valign="top" | '''Last {{{House_1}}} election''' || {{{Last_election_1}}}
| width="100" | '''{{{house2}}} {{wp|voting system}}''' || {{{voting_system2}}}
|- class="hiddenStructure{{{Next_election_1|}}}
|- valign="top" {{#if: {{{voting_system3|}}} | | style="display: none;" }}
| valign="top" | '''Next {{{House_1}}} election''' || {{{Next_election_1}}}
| width="100" | '''{{{house3}}} {{wp|voting system}}''' || {{{voting_system3}}}
|-class="hiddenStructure{{{Last_election_2|}}}
|- valign="top" {{#if: {{{voting_system4|}}} | | style="display: none;" }}
| valign="top" | '''Last {{{House_2}}} election''' || {{{Last_election_2}}}
| width="100" | '''{{{house4}}} {{wp|voting system}}''' || {{{voting_system4}}}
|- class="hiddenStructure{{{Next_election_2|}}}
|- valign="top" {{#if: {{{last_election1|}}} | | style="display: none;" }}
| valign="top" | '''Next {{{House_2}}} election''' || {{{Next_election_2}}}
| width="100" | '''Last {{{house1}}} election''' || {{{last_election1}}}
|-
|- valign="top" {{#if: {{{last_election2|}}} | | style="display: none;" }}
| width="100" | '''Last {{{house2}}} election''' || {{{last_election2}}}
|- valign="top" {{#if: {{{last_election3|}}} | | style="display: none;" }}
| width="100" | '''Last {{{house3}}} election''' || {{{last_election3}}}
|- valign="top" {{#if: {{{last_election4|}}} | | style="display: none;" }}
| width="100" | '''Last {{{house4}}} election''' || {{{last_election4}}}
|- valign="top" {{#if: {{{next_election1|}}} | | style="display: none;" }}
| width="100" | '''Next {{{house1}}} election''' || {{{next_election1}}}
|- valign="top" {{#if: {{{next_election2|}}} | | style="display: none;" }}
| width="100" | '''Next {{{house2}}} election''' || {{{next_election2}}}
|- valign="top" {{#if: {{{next_election3|}}} | | style="display: none;" }}
| width="100" | '''Next {{{house3}}} election''' || {{{next_election3}}}
|- valign="top" {{#if: {{{next_election4|}}} | | style="display: none;" }}
| width="100" | '''Next {{{house4}}} election''' || {{{next_election4}}}
|- {{#if: {{{meeting_place1|}}}{{{meeting_place2|}}}{{{meeting_place3|}}}{{{meeting_place4|}}} | | style="display: none;" }}}
!colspan="2" align="center" | <div style="background:#c4c4c4;">Meeting Place</div>
!colspan="2" align="center" | <div style="background:#c4c4c4;">Meeting Place</div>
|-class="hiddenStructure{{{Legilature_image|}}}
|- {{#if: {{{meeting_place1|}}} | | style="display: none;" }}
| valign="top" colspan="2" align="center" | [[Image:{{{Legislature_image}}}|{{{size|250 px}}}]]
| colspan="2" align="center" | [[File:{{{meeting_place1}}}|{{{meeting_place1_size|250px}}}|{{{meeting_place1_alt}}}]]{{#if: {{{meeting_place1_caption|}}} | <br />{{{meeting_place1_caption}}} | }}
|-  
|- {{#if: {{{meeting_place2|}}} | | style="display: none;" }}
| valign="top" colspan="2" align="center" | {{{Legislature_meeting_place}}}
| colspan="2" align="center" | [[File:{{{meeting_place2}}}|{{{meeting_place2_size|250px}}}|{{{meeting_place2_alt}}}]]{{#if: {{{meeting_place2_caption|}}} | <br />{{{meeting_place2_caption}}} | }}
|-  
|- {{#if: {{{meeting_place3|}}} | | style="display: none;" }}
|}
| colspan="2" align="center" | [[File:{{{meeting_place3}}}|{{{meeting_place3_size|250px}}}|{{{meeting_place3_alt}}}]]{{#if: {{{meeting_place3_caption|}}} | <br />{{{meeting_place3_caption}}} | }}
<noinclude>{{doc}}</noinclude>
|- {{#if: {{{meeting_place4|}}} | | style="display: none;" }}
| colspan="2" align="center" | [[File:{{{meeting_place4}}}|{{{meeting_place4_size|250px}}}|{{{meeting_place4_alt}}}]]{{#if: {{{meeting_place4_caption|}}} | <br />{{{meeting_place4_caption}}} | }}
|}</includeonly><!--
--><noinclude>{{doc}}</noinclude>

Latest revision as of 19:14, 24 March 2025

Template documentation

The {{national legislature}} template provides an infobox for a legislature from a single chamber up to four houses.

Usage

Bicameral syntax
Livarian Parliament
Livarian parliament seal
Seal of the Livarian Parliament
Type
Type Bicameral
Houses Noble Assembly
Rada
Leadership
'
'
{{{leader3_title}}} {{{leader3}}}
{{{leader4_title}}} {{{leader4}}}
Structure
Seats Noble Assembly: 689
Rada: 750
[[File:|250px|]]
Noble Assembly political groups Stims
Length of term Lifetime
[[File:|250px|]]
Rada political groups  
Length of term 5 years
[[File:{{{structure3}}}|250px|{{{structure3_alt}}}]]
{{{house3}}} political groups {{{political_groups3}}}
Length of term {{{term3}}}
[[File:{{{structure4}}}|250px|{{{structure4_alt}}}]]
{{{house4}}} political groups {{{political_groups4}}}
Length of term {{{term4}}}
Elections
Noble Assembly voting system
Rada voting system 50% party list
50% first-past-the-post
{{{house3}}} voting system {{{voting_system3}}}
{{{house4}}} voting system {{{voting_system4}}}
Last Noble Assembly election
Last Rada election  
Last {{{house3}}} election {{{last_election3}}}
Last {{{house4}}} election {{{last_election4}}}
Next Noble Assembly election
Next Rada election  
Next {{{house3}}} election {{{next_election3}}}
Next {{{house4}}} election {{{next_election4}}}
Meeting Place
[[File:|250px|]]
[[File:|250px|]]
[[File:{{{meeting_place3}}}|250px|{{{meeting_place3_alt}}}]]
[[File:{{{meeting_place4}}}|250px|{{{meeting_place4_alt}}}]]

To use the template for a bicameral legislature, copy and paste the following at the top of the article. For a unicameral legislature, remove or leave xxx2 parameters blank.

{{National legislature
| name                   = 
| native_name            = 
| logo                   = 
| logo_alt               = 
| logo_caption           = 
| legislature_type       = {{wp|Bicameral}} <!--Change to {{wp|Unicameral}} for a single house-->
| house1                 = 
| house2                 = 
| leader1_title          = 
| leader1                = 
| leader2_title          = 
| leader2                = 
| seats                  = 
| structure1             = 
| structure1_alt         = 
| political_groups1      = 
| term1                  = 
| structure2             = 
| structure2_alt         = 
| political_groups2      = 
| term2                  = 
| voting_system1         = 
| voting_system2         = 
| last_election1         = 
| last_election2         = 
| next_election1         = 
| next_election2         = 
| meeting_place1         = 
| meeting_place1_alt     = 
| meeting_place1_caption = 
| meeting_place2         = 
| meeting_place2_alt     = 
| meeting_place2_caption = 
}}
Full syntax

Parameters

Parameter Description Type Status Notes
name Legislature name String Required
native_name Native name String Optional
logo Logo filename String Optional
size Logo size String Optional Defaults to 145px wide; omit to accept default.
logo_alt Logo alt text String Optional
logo_caption Logo caption String Optional Requires logo to display
legislature_type Type String Optional For the legislature as a whole, recommended values are:
  • Single house: {{wp|Unicameral}}
  • Two houses: {{wp|Bicameral}}
  • Three houses: {{wp|Tricameral}}
  • Four houses: {{wp|Tetracameral}}

For houses, consider values of Upper house, Middle house, Lower house, or similar

house# House name String Optional Up to four houses are supported: house1, house2, house3, house4.
The house# value is used in political_groups#, voting_system#, last_election#, and next_election# descriptions.
leader#_title Leader title String Optional Up to four leader titles are supported. Required to display a leader name.
leader# Leader name String Optional Up to four leader names are supported.
seats Number of seats String Optional Seats by house may be specified and may be separated by a line break (<br />) if desired
structure# Apportionment diagram file name String Optional Up to four apportionment diagrams are supported.
structure#_size Apportionment diagram display size String Optional Defaults to 250px; omit to accept default size.
structure#_alt Apportionment diagram alt text String Optional
political_groups# Political groups represented in a house String Optional Up to four political groups are supported.
term# Term of office String Optional Up to four terms are supported.
voting_system# Voting system String Optional Up to four voting systems are supported
last_election# Date of last election String Optional Up to four last election dates are supported
next_election# Date of next election String Optional Up to four next election dates are supported
meeting_place# Meeting place image file name String Optional Up to four meeting places are supported.
meeting_place#_size Meeting place image display size String Optional Defaults to 250px; omit to a ccept default size.
meeting_place#_alt Meeting place alt text String Optional
meeting_place#_caption Meeting place caption String Optional Requires meeting_place# to display