Template:Infobox political party: Difference between revisions

From The Pinched Universe
Jump to navigation Jump to search
Mibu (talk | contribs)
No edit summary
Mibu (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|political party
<includeonly>
| name            = {{{name|}}}
{| class="infobox" style="width:25em; font-size:90%; line-height:1.4em; text-align:center;"
| native_name      = {{{native_name|}}}
| abbreviation    = {{{abbreviation|}}}
| country          = {{{country|}}}
| headquarters    = {{{headquarters|}}}
| status          = {{{status|}}}


| founded          = {{{founded|}}}
|+ style="font-weight:bold; font-size:110%; background:#ddd;" |
| founder          = {{{founder|}}}
{{#if:{{{name|}}}|{{{name}}}
| dissolved        = {{{dissolved|}}}
{{#if:{{{native_name|}}}|<br><small>({{{native_name}}})</small>}}
| reestablished    = {{{reestablished|}}}
{{#if:{{{abbreviation|}}}|<br><small><i>({{{abbreviation}}})</i></small>}}
| predecessor      = {{{predecessor|}}}
}}


| president        = {{{president|}}}
|-
| vice_president  = {{{vice_president|}}}
{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{logo}}}|200px]]</td></tr>}}
| secretary        = {{{secretary|}}}
| membership      = {{{membership|}}}
| parliament_seats = {{{parliament_seats|}}}
| position        = {{{position|}}}
| ideology        = {{{ideology|}}}


| colors          = {{{colors|}}}
|-
| newspaper        = {{{newspaper|}}}
! colspan="2" style="background:#ccc; text-align:center;" | General
| slogan           = {{{slogan|}}}
|-
| anthem          = {{{anthem|}}}
{{#if:{{{country|}}}|<tr><th scope="row" style="text-align:left;">Country</th><td style="text-align:left;">{{{country}}}</td></tr>}}
| website          = {{{website|}}}
{{#if:{{{headquarters|}}}|<tr><th scope="row" style="text-align:left;">Headquarters</th><td style="text-align:left;">{{{headquarters}}}</td></tr>}}
}}</includeonly><noinclude>
{{#if:{{{status|}}}|<tr><th scope="row" style="text-align:left;">Status</th><td style="text-align:left;">{{{status}}}</td></tr>}}
This template displays a political party infobox with expandable sections. 
 
It hides any empty fields automatically.
|-
! colspan="2" style="background:#ccc; text-align:center;" | History
|-
{{#if:{{{founded|}}}|<tr><th scope="row" style="text-align:left;">Founded</th><td style="text-align:left;">{{{founded}}}</td></tr>}}
{{#if:{{{founder|}}}|<tr><th scope="row" style="text-align:left;">Founder</th><td style="text-align:left;">{{{founder}}}</td></tr>}}
{{#if:{{{dissolved|}}}|<tr><th scope="row" style="text-align:left;">Dissolved</th><td style="text-align:left;">{{{dissolved}}}</td></tr>}}
{{#if:{{{reestablished|}}}|<tr><th scope="row" style="text-align:left;">Reestablished</th><td style="text-align:left;">{{{reestablished}}}</td></tr>}}
{{#if:{{{predecessor|}}}|<tr><th scope="row" style="text-align:left;">Predecessor</th><td style="text-align:left;">{{{predecessor}}}</td></tr>}}
 
|-
! colspan="2" style="background:#ccc; text-align:center;" | Political Profile
|-
{{#if:{{{leader_title1|}}}|<tr><th scope="row" style="text-align:left;">{{{leader_title1}}}</th><td style="text-align:left;">{{{leader_name1}}}</td></tr>}}
{{#if:{{{leader_title2|}}}|<tr><th scope="row" style="text-align:left;">{{{leader_title2}}}</th><td style="text-align:left;">{{{leader_name2}}}</td></tr>}}
{{#if:{{{leader_title3|}}}|<tr><th scope="row" style="text-align:left;">{{{leader_title3}}}</th><td style="text-align:left;">{{{leader_name3}}}</td></tr>}}
{{#if:{{{members|}}}|<tr><th scope="row" style="text-align:left;">Members</th><td style="text-align:left;">{{{members}}}</td></tr>}}
{{#if:{{{seats_title1|}}}|<tr><th scope="row" style="text-align:left;">{{{seats_title1}}}</th><td style="text-align:left;">{{{seats1}}}</td></tr>}}
{{#if:{{{seats_title2|}}}|<tr><th scope="row" style="text-align:left;">{{{seats_title2}}}</th><td style="text-align:left;">{{{seats2}}}</td></tr>}}
{{#if:{{{seats_title3|}}}|<tr><th scope="row" style="text-align:left;">{{{seats_title3}}}</th><td style="text-align:left;">{{{seats3}}}</td></tr>}}
{{#if:{{{position|}}}|<tr><th scope="row" style="text-align:left;">Political position</th><td style="text-align:left;">{{{position}}}</td></tr>}}
{{#if:{{{ideology|}}}|<tr><th scope="row" style="text-align:left;">Ideology</th><td style="text-align:left;">{{{ideology}}}</td></tr>}}
 
|-
! colspan="2" style="background:#ccc; text-align:center;" | Symbols
|-
{{#if:{{{colors|}}}|<tr><th scope="row" style="text-align:left;">Colors</th><td style="text-align:left;">{{{colors}}}</td></tr>}}
{{#if:{{{slogan|}}}|<tr><th scope="row" style="text-align:left;">Slogan</th><td style="text-align:left;">{{{slogan}}}</td></tr>}}
{{#if:{{{anthem|}}}|<tr><th scope="row" style="text-align:left;">Anthem</th><td style="text-align:left;">{{{anthem}}}</td></tr>}}
{{#if:{{{newspaper|}}}|<tr><th scope="row" style="text-align:left;">Newspaper</th><td style="text-align:left;">{{{newspaper}}}</td></tr>}}
{{#if:{{{website|}}}|<tr><th scope="row" style="text-align:left;">Website</th><td style="text-align:left;">[{{{website}}} Official site]</td></tr>}}
 
|}
</includeonly>
 
<noinclude>
== Usage example ==


== Usage ==
<pre>
<pre>
{{Infobox political party
{{Infobox political party
| name             = Matza Party
| name = United Block Party
| native_name     = ?
| native_name = Blocul Unit Enădean
| abbreviation     = MP
| abbreviation = UBP
| country         = eRepublik
| logo = BlocUnitEnadean.png
| headquarters     = Republic Square
 
| country = United Fraternity of Blocks
| headquarters = 9 Beton Street, Enada
| status = Active
 
| founded = 2019
| founder = Radu Enadeanu
| dissolved =
| reestablished = 2024
| predecessor = Citizen Group of Enada


| founded          = Jan 1, 2020
| leader_title1 = President
| founder          = John Doe
| leader_name1 = Irina Găletescu
| predecessor      = Old Party
| leader_title2 = Vice President
| leader_name2 = Mihai Asfalt
| leader_title3 = Secretary
| leader_name3 = Elena Mortar


| president        = Jane Doe
| members = 4,400
| position         = Center-right
| seats_title1 = Parliament
| ideology         = Liberalism
| seats1 = 14 / 50
| seats_title2 = Cabinet
| seats2 = 2 / 8
| seats_title3 = Local Councils
| seats3 = 7 / 20
| position = Centre-left
| ideology = Urban Socialism, Blocism


| colors           = Blue and White
| colors = Blue and Gray
| slogan           = "Forward!"
| slogan = "A voice for every block"
| website         = https://matza.party
| anthem = "The Anthem of the Blocks"
| newspaper = Block News
| website = https://unitedblockparty.example
}}
}}
</pre>
</pre>

Latest revision as of 21:00, 14 June 2025


Usage example

{{Infobox political party
| name = United Block Party
| native_name = Blocul Unit Enădean
| abbreviation = UBP
| logo = BlocUnitEnadean.png

| country = United Fraternity of Blocks
| headquarters = 9 Beton Street, Enada
| status = Active

| founded = 2019
| founder = Radu Enadeanu
| dissolved = 
| reestablished = 2024
| predecessor = Citizen Group of Enada

| leader_title1 = President
| leader_name1 = Irina Găletescu
| leader_title2 = Vice President
| leader_name2 = Mihai Asfalt
| leader_title3 = Secretary
| leader_name3 = Elena Mortar

| members = 4,400
| seats_title1 = Parliament
| seats1 = 14 / 50
| seats_title2 = Cabinet
| seats2 = 2 / 8
| seats_title3 = Local Councils
| seats3 = 7 / 20
| position = Centre-left
| ideology = Urban Socialism, Blocism

| colors = Blue and Gray
| slogan = "A voice for every block"
| anthem = "The Anthem of the Blocks"
| newspaper = Block News
| website = https://unitedblockparty.example
}}