Template:National legislature: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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_description|}}} | <br />{{{logo_description}}} | }}
|- {{#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 75: Line 75:
|- valign="top" {{#if: {{{next_election4|}}} | | style="display: none;" }}
|- valign="top" {{#if: {{{next_election4|}}} | | style="display: none;" }}
| width="100" | '''Next {{{house4}}} election''' || {{{next_election4}}}
| 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>

Revision as of 19:42, 23 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
Type
Type Bicameral
Houses Noble Assembly
Rada
Leadership
'
'
{{{leader3_title}}} {{{leader3}}}
{{{leader4_title}}} {{{leader4}}}
Structure
Seats Noble Assembly: 689
Rada: 750
[[File:|280px|]]
Noble Assembly political groups Stims
Length of term Lifetime
[[File:|280px|]]
Rada political groups  
Length of term 5 years
[[File:{{{structure3}}}|280px|{{{structure3_alt}}}]]
{{{house3}}} political groups {{{political_groups3}}}
Length of term {{{term3}}}
[[File:{{{structure4}}}|280px|{{{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