Template:National legislature/doc: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{Docsub}}</noinclude>
<noinclude>{{Docsub}}</noinclude>
The {{tl|national legislature}} template provides an infobox for a {{wp|legislature}} from a single {{wp|chambers of parliament|chamber}} up to four houses.
The {{tl|national legislature}} template provides an infobox for a {{wp|legislature}} from a single {{wp|chambers of parliament|chamber}} up to four houses.
{{wip}}
 
==Usage==
==Usage==
<div id="basic" style="font-size:120%; font-weight:bold;">Bicameral syntax</div>
<div id="basic" style="font-size:120%; font-weight:bold;">Bicameral syntax</div>
{{National legislature
| name                  = Livarian Parliament
| native_name            =
| logo                  = Livarian parliament seal.png
| logo_alt              = Livarian parliament seal
| logo_caption          = Seal of the Livarian Parliament
| legislature_type      = {{wp|Bicameral}}
| house1                = Noble Assembly
| house2                = Rada
| leader1_title          =
| leader1                =
| leader2_title          =
| leader2                =
| seats                  = '''Noble Assembly:''' 689<br />'''Rada:''' 750
| structure1            =
| structure1_alt        =
| political_groups1      = [[Stim]]s
| term1                  = Lifetime
| structure2            =
| structure2_alt        =
| political_groups2      = &nbsp;
| term2                  = 5 years
| voting_system1        =
| voting_system2        = 50% {{wp|party list}}<br />50% {{wp|first-past-the-post}}
| last_election1        =
| last_election2        = &nbsp;
| next_election1        =
| next_election2        = &nbsp;
| meeting_place1        =
| meeting_place1_alt    =
| meeting_place1_caption =
| meeting_place2        =
| meeting_place2_alt    =
| meeting_place2_caption =
}}
To use the template for a {{wp|bicameral}} legislature, copy and paste the following at the top of the article. For a {{wp|unicameral}} legislature, remove or leave <code>''xxx''2</code> parameters blank.
To use the template for a {{wp|bicameral}} legislature, copy and paste the following at the top of the article. For a {{wp|unicameral}} legislature, remove or leave <code>''xxx''2</code> parameters blank.
<div id="basic usage" style="background-color: transparent; width: 800px;">
<div id="basic usage" style="background-color: transparent; width: 800px;">
Line 10: Line 45:
| native_name            =  
| native_name            =  
| logo                  =  
| logo                  =  
| size                  =
| logo_alt              =  
| logo_alt              =  
| logo_description      =  
| logo_caption          =  
| legislature_type      = {{wp|Bicameral}} <!--Change to {{wp|Unicameral}} for a single house-->
| legislature_type      = {{wp|Bicameral}} <!--Change to {{wp|Unicameral}} for a single house-->
| house1                =  
| house1                =  
Line 22: Line 56:
| seats                  =  
| seats                  =  
| structure1            =  
| structure1            =  
| structure1_size        =
| structure1_alt        =  
| structure1_alt        =  
| political_groups1      =  
| political_groups1      =  
| term1                  =  
| term1                  =  
| structure2            =  
| structure2            =  
| structure2_size        =
| structure2_alt        =  
| structure2_alt        =  
| political_groups2      =  
| political_groups2      =  
Line 38: Line 70:
| next_election2        =  
| next_election2        =  
| meeting_place1        =  
| meeting_place1        =  
| meeting_place1_size    =
| meeting_place1_alt    =  
| meeting_place1_alt    =  
| meeting_place1_caption =  
| meeting_place1_caption =  
| meeting_place2        =  
| meeting_place2        =  
| meeting_place2_size    =
| meeting_place2_alt    =  
| meeting_place2_alt    =  
| meeting_place2_caption =  
| meeting_place2_caption =  
Line 56: Line 86:
| size                  =  
| size                  =  
| logo_alt              =  
| logo_alt              =  
| logo_description      =  
| logo_caption          =  
<!-- Type -->
<!-- Type -->
| legislature_type      =  
| legislature_type      =  
Line 127: Line 157:


==Parameters==
==Parameters==
{| class="wikitable"
! Parameter !! Description !! Type !! Status !! Notes
|-
| {{code|name}} || Legislature name || String || '''Required''' ||
|-
| {{code|native_name}} || Native name || String || Optional ||
|-
| {{code|logo}} || Logo filename || String || Optional ||
|-
| {{code|size}} || Logo size || String || Optional || Defaults to {{code|145px}} wide; omit to accept default.
|-
| {{code|logo_alt}} || Logo alt text || String || Optional ||
|-
| {{code|logo_caption}} || Logo caption || String || Optional || Requires {{code|logo}} to display
|}


<includeonly>
<includeonly>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</includeonly>
</includeonly>

Revision as of 01:59, 24 March 2025

This is a documentation subpage for Template:National legislature.
It may contain usage information, categories and other content that is not part of the original template page.

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