Difference between revisions of "Template:Party"
From eRepublik Official Wiki
Daniel Dimow (Talk | contribs) m |
(automatic categorization for historical parties.) |
||
Line 45: | Line 45: | ||
}} | }} | ||
|} | |} | ||
− | |}</div>{{#if: {{{nocat|}}}||{{#if: {{{country|}}}|{{#if: {{{succeeded|}}}|[[Category:Historical Parties of {{{country}}}]]|{{#if: {{{dissolution|}}}|[[Category:Historical Parties of {{{country}}}]]|[[Category:Parties of {{{country}}}]]}}}}|[[Category:Parties]]}}}}{{#ifeq: Far-Left | {{{orientation|}}} | [[Category:Far-Left Parties]] | }}{{#ifeq: Far-Right | {{{orientation|}}} | [[Category:Far-Right Parties]] | }} {{#ifeq: Center-Right | {{{orientation|}}} | [[Category:Center-Right Parties]] | }}{{#ifeq: Center-Left | {{{orientation|}}} | [[Category:Center-Left Parties]] | }} {{#ifeq: Center | {{{orientation|}}} | [[Category:Center Parties]] | }} {{#ifeq: Totalitarian | {{{ideology|}}} | [[Category:Totalitarian Parties]] | }}{{#ifeq: Authoritarian | {{{ideology|}}} | [[Category:Authoritarian Parties]] | }} {{#ifeq: Libertarian | {{{ideology|}}} | [[Category:Libertarian Parties]] | }}{{#ifeq: Anarchist | {{{ideology|}}} | [[Category:Anarchist Parties]] | }}</includeonly><noinclude>{{Documentation}}[[Category:Main Templates]]</noinclude> | + | |}</div>{{#if: {{{nocat|}}}||{{#if: {{{country|}}}|{{#if: {{{succeeded|}}}|[[Category:Historical Parties of {{{country}}}]]|{{#if: {{{dissolution|}}}|[[Category:Historical Parties of {{{country}}}]]|[[Category:Parties of {{{country}}}]]}}}}|[[Category:Parties]]}}}} |
+ | {{#ifeq: Far-Left | {{{orientation|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Far-Left Parties]] | [[Category:Far-Left Parties]] | }}}} {{#ifeq: Far-Right | {{{orientation|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Far-Right Parties]] |[[Category:Far-Right Parties]] | }}}} {{#ifeq: Center-Right | {{{orientation|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Center-Right Parties]] | [[Category:Center-Right Parties]] | }}}} {{#ifeq: Center-Left | {{{orientation|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Center-Left Parties]] | [[Category:Center-Left Parties]] | }}}} {{#ifeq: Center | {{{orientation|}}} |{{#if: {{{dissolution|}}} | [[Category:Historical Center Parties]] | [[Category:Center Parties]] | }}}} {{#ifeq: Totalitarian | {{{ideology|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Totalitarian Parties]] | [[Category:Totalitarian Parties]] | }}}} {{#ifeq: Authoritarian | {{{ideology|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Authoritarian Parties]] | [[Category:Authoritarian Parties]] | }}}} {{#ifeq: Libertarian | {{{ideology|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Libertarian Parties]] | [[Category:Libertarian Parties]] | }}}} {{#ifeq: Anarchist | {{{ideology|}}} | {{#if: {{{dissolution|}}} | [[Category:Historical Anarchist Parties]] | [[Category:Anarchist Parties]] | }}}} </includeonly><noinclude>{{Documentation}}[[Category:Main Templates]]</noinclude> |
Latest revision as of 03:53, 21 October 2020
The code of this template is really complex, please use your sandbox before editing this template
| ||||||||||||||||||||||
|
Example
{{Party |nocat=true |name=The Admin Party |logo=HeadlessChicken.jpg |number=12 |general=show |country=UK |abbreviation=TAP |rank=1 |website=http://www.erepublik.com erepublik.com |newspaper=eRepublik Insider |organization=Admin |forum=http://forum.erepublik.com forum.erepublik.com |colors=blue| |founded=1st April 2010 |dissolution=2nd April 2010 <!--if the party is "dead", important to put, even if you just put ''unknown'' --> |congress=20 |president=Admin |vicepresident=Yamisuke |secretarygeneral=Moderator |councillor=Headless |spokesman=Chicken |members=600 |political=show |succeeds=Party |succeeded= |orientation=Far Left <!--It is without dash, won't show up in the correct category --> |ideology=Totalitarizam <!--It is misspeled, won't show up in the correct category --> }}
This is a template for pages regarding Parties.
Usage
{{Party |name= |logo= |number= |general= |country= |abbreviation= |rank= |website= |newspaper= |organization= |forum= |irc= |colors= |founded= |dissolution= <!--if the party is "dead", important to put, even if you just put ''unknown'' --> |political= |president= |vicepresident= |secretarygeneral= |councillor= |spokesman= |members= |congress= |succeeds= |succeeded= |orientation= <!--Use Far-Left, Center-Left, Center, Center-Right, Far-Right --> |ideology= <!--Use Totalitarian, Authoritarian, Libertarian, Anarchist --> }}
Parameters
- name - The name
- logo - The logo
- number - The Unique number of it when on the profile page
- general - Type 'hide' or 'show' for automatic showing the section or not
- country - The country of location
- abbreviation - The abbreviation of the party name
- rank - The ranking number of the party in the country of location
- website - The website, in 'http://www.example.com/ example website' format
- newspaper - The name of the newspaper
- organization - The name of the organization
- forum - The forum, in 'http://www.example.com/ example website' format
- colors - The colors
- founded - the date of foundation
- dissolution - the date of dissolution
- political - Type 'hide' or 'show' for automatic showing the section or not
- president - The party president
- vicepresident - The vice party president
- secretary general - The party secretary general
- councillor - The party councillor
- spokesman - The party spokesman
- members - The amount of party members
- congress - The number of people in Congress (if you put only the number, the percentage will be automatically calculated) *Temporarily not working properly
- succeeds - The party it takes over from
- succeeded - The party that takes over from it
- orientation - The political orientation, e.g. left, center, right...
- ideology - The political ideology