Difference between revisions of "Template:Infobox political party"
imported>Jonesey95 (Fix Linter errors) |
imported>MSGJ (add "registered" field, as requested on talk page) |
||
| Line 106: | Line 106: | ||
| data22 = {{if empty|{{{founded|}}}|{{{foundation|}}}}} | | data22 = {{if empty|{{{founded|}}}|{{{foundation|}}}}} | ||
| − | | label23 = | + | | label23 = Registered |
| − | | data23 = | + | | data23 = {{{registered|}}} |
| − | | label24 = {{#if:{{{ | + | | label24 = Legali{{#if:{{{legalised|}}}|s|z}}ed |
| − | | data24 = {{if empty|{{{ | + | | data24 = {{if empty|{{{legalised|}}}|{{{legalized|}}}}} |
| − | | label25 = | + | | label25 = {{#if:{{{banned|}}} |Banned |Dissolved}} |
| − | | data25 = {{{ | + | | data25 = {{if empty|{{{banned|}}}|{{{dissolved|}}}|{{{dissolution|}}}}} |
| − | | label26 = | + | | label26 = Merger of |
| − | | data26 = {{{ | + | | data26 = {{{merger|}}} |
| − | | label27 = | + | | label27 = Split from |
| − | | data27 = {{{ | + | | data27 = {{{split|}}} |
| − | | label28 = | + | | label28 = Preceded by |
| − | | data28 = {{{ | + | | data28 = {{{predecessor|}}} |
| − | | label29 = | + | | label29 = Merged into |
| − | | data29 = {{{ | + | | data29 = {{{merged|}}} |
| − | | label30 = | + | | label30 = Succeeded by |
| − | + | | data30 = {{{successor|}}} | |
| − | | data30 = {{{ | ||
| − | | label31 = | + | | label31 = Headquarters |
| − | | data31 = {{{ | + | | class31 = label |
| + | | data31 = {{{headquarters|}}} | ||
| − | | label32 = | + | | label32 = Newspaper |
| − | | data32 = | + | | data32 = {{{newspaper|}}} |
| − | | label33 = | + | | label33 = [[Think tank]] |
| − | | data33 = {{{ | + | | data33 = {{if empty|{{{think tank|}}}|{{{think_tank|}}}}} |
| − | | label34 = | + | | label34 = Student wing |
| − | | data34 = {{{ | + | | data34 = {{{student_wing|}}} |
| − | | label35 = | + | | label35 = [[Youth wing]] |
| − | | data35 = {{{ | + | | data35 = {{{youth_wing|}}} |
| − | | label36 = | + | | label36 = Women's wing |
| − | | data36 = {{{ | + | | data36 = {{{womens_wing|}}} |
| − | | label37 = {{{ | + | | label37 = {{{wing1_title}}} |
| − | | data37 = {{{ | + | | data37 = {{{wing1|}}} |
| − | | label38 = {{{ | + | | label38 = {{{wing2_title}}} |
| − | | data38 = {{{ | + | | data38 = {{{wing2|}}} |
| − | | label39 = {{{ | + | | label39 = {{{wing3_title}}} |
| − | | data39 = {{{ | + | | data39 = {{{wing3|}}} |
| − | | label40 = | + | | label40 = {{{wing4_title}}} |
| − | | data40 = {{{ | + | | data40 = {{{wing4|}}} |
| − | | label41 = | + | | label41 = Membership{{#if:{{{membership_year|}}} | ({{{membership_year}}})}} |
| − | | | + | | data41 = {{{membership|}}} |
| − | | data41 = {{{ | ||
| − | | label42 = [[ | + | | label42 = [[List of political ideologies|Ideology]] |
| class42 = category | | class42 = category | ||
| − | | data42 = {{{ | + | | data42 = {{{ideology|}}} |
| − | | label43 = [[ | + | | label43 = [[Political spectrum|Political position]] |
| class43 = category | | class43 = category | ||
| − | | data43 = {{{ | + | | data43 = {{{position|}}} |
| − | | label44 = | + | | label44 = [[Religion]] |
| class44 = category | | class44 = category | ||
| − | | data44 = {{{ | + | | data44 = {{{religion|}}} |
| − | | label45 = | + | | label45 = National affiliation |
| class45 = category | | class45 = category | ||
| − | | data45 = | + | | data45 = {{{national|}}} |
| − | | label46 = | + | | label46 = Regional affiliation |
| class46 = category | | class46 = category | ||
| − | | data46 = {{{ | + | | data46 = {{if empty|{{{regional|}}}|{{{regional affiliation|}}}}} |
| − | | label47 = | + | | label47 = [[European political party|European affiliation]] |
| class47 = category | | class47 = category | ||
| − | | data47 = | + | | data47 = {{{european|}}} |
| − | | label48 = | + | | label48 = Continental affiliation |
| class48 = category | | class48 = category | ||
| − | | data48 = {{{ | + | | data48 = {{if empty|{{{continental|}}}|{{{continental affiliation|}}}}} |
| − | | label49 = | + | | label49 = International affiliation |
| class49 = category | | class49 = category | ||
| − | | data49 = {{{ | + | | data49 = {{{international|}}} |
| − | | label50 = | + | | label50 = [[Political groups of the European Parliament|European Parliament group]] |
| class50 = category | | class50 = category | ||
| − | | data50 = {{ | + | | data50 = {{{europarl|}}} |
| − | | label51 = {{{ | + | | label51 = {{{affiliation1_title}}} |
| class51 = category | | class51 = category | ||
| − | | data51 = {{#if:{{{ | + | | data51 = {{#if:{{{affiliation1_title|}}}|{{{affiliation1|}}}}} |
| − | | label52 = | + | | label52 = {{{affiliation2_title}}} |
| − | | data52 = | + | | class52 = category |
| + | | data52 = {{#if:{{{affiliation2_title|}}}|{{{affiliation2|}}}}} | ||
| − | | label53 = | + | | label53 = Colo{{#if:{{{colours|}}}|u|}}rs |
| − | | data53 = {{{ | + | | data53 = {{{colo{{#if:{{{colours|}}}|u|}}rs|}}} |
| − | | label54 = | + | | label54 = Slogan |
| − | | data54 = {{{ | + | | data54 = {{{slogan|}}} |
| − | | label55 = | + | | label55 = Anthem |
| − | | data55 = {{{ | + | | data55 = {{{anthem|}}} |
| − | | label56 = {{{ | + | | label56 = {{{blank1_title|}}} |
| − | | data56 = {{{ | + | | data56 = {{{blank1|}}} |
| − | | label57 = {{{ | + | | label57 = {{{blank2_title|}}} |
| − | | data57 = {{{ | + | | data57 = {{{blank2|}}} |
| − | | label58 = {{{ | + | | label58 = {{{blank3_title|}}} |
| − | | data58 = {{{ | + | | data58 = {{{blank3|}}} |
| − | | label59 = {{{ | + | | label59 = {{{blank4_title|}}} |
| − | | data59 = {{{ | + | | data59 = {{{blank4|}}} |
| − | | label60 = {{{ | + | | label60 = {{{seats1_title|}}} |
| − | | data60 = {{{ | + | | data60 = {{{seats1|}}} |
| − | | label61 = {{{ | + | | label61 = {{{seats2_title|}}} |
| − | | data61 = {{{ | + | | data61 = {{{seats2|}}} |
| − | | label62 = {{{ | + | | label62 = {{{seats3_title|}}} |
| − | | data62 = {{{ | + | | data62 = {{{seats3|}}} |
| − | | label63 = {{{ | + | | label63 = {{{seats4_title|}}} |
| − | | data63 = {{{ | + | | data63 = {{{seats4|}}} |
| − | | label64 = {{{ | + | | label64 = {{{seats5_title|}}} |
| − | | data64 = {{{ | + | | data64 = {{{seats5|}}} |
| − | | label65 = {{{ | + | | label65 = {{{seats6_title|}}} |
| − | | data65 = {{{ | + | | data65 = {{{seats6|}}} |
| − | | label66 = {{{ | + | | label66 = {{{seats7_title|}}} |
| − | | data66 = {{{ | + | | data66 = {{{seats7|}}} |
| − | | label67 = {{{ | + | | label67 = {{{seats8_title|}}} |
| − | | data67 = {{{ | + | | data67 = {{{seats8|}}} |
| − | | label68 = {{{ | + | | label68 = {{{seats9_title|}}} |
| − | | data68 = {{{ | + | | data68 = {{{seats9|}}} |
| − | | label69 = {{{ | + | | label69 = {{{seats10_title|}}} |
| − | | data69 = {{{ | + | | data69 = {{{seats10|}}} |
| − | | | + | | label70 = {{{seats11_title|}}} |
| − | + | | data70 = {{{seats11|}}} | |
| − | | | ||
| − | | | + | | header71 = {{#if:{{{symbol|}}} |Election symbol}} |
| − | | | + | | rowstyle72 = font-size: 150% |
| + | | data72 = {{{symbol|}}} | ||
| − | | | + | | header73 = {{#if:{{{flag|}}} |{{{flag_title|Party flag}}}}} |
| − | | | + | | data74 = {{#invoke:InfoboxImage|InfoboxImage|image={{{flag|}}}|upright=0.6|alt={{if empty|{{{flag_alt|}}}|{{{flag_title|}}}}}}} |
| + | |||
| + | | header75 = {{#if:{{{website|}}} |Website}} | ||
| + | | data76 = {{{website|}}} | ||
| belowstyle = padding-top:0; | | belowstyle = padding-top:0; | ||
| Line 303: | Line 306: | ||
-->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes}}} }} | -->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes}}} }} | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox political party with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox political party]] with unknown parameter "_VALUE_"|ignoreblank=y| _subheader | abbr | abbreviation | affiliation1 | affiliation1_title | affiliation2 | affiliation2_title | anthem | banned | blank1 | blank1_title | blank2 | blank2_title | blank3 | blank3_title | blank4 | blank4_title | caption | chairman | chairperson | colorcode | colors | colours | continental | continental affiliation | country | country_dab1 | country_dab2 | country2 | dissolution | dissolved | elections_dab1 | elections_dab2 | europarl | european | first_secretary | flag | flag_alt | flag_title | footnotes | foundation | founded | founder | founders | general_secretary | headquarters | ideology | international | lang1 | lang2 | lang3 | lang4 | leader | leader1_name | leader1_title | leader2_name | leader2_title | leader3_name | leader3_title | leader4_name | leader4_title | leader5_name | leader5_title | legalised | legalized | logo | logo_alt | logo_size | logo_upright | membership | membership_year | merged | merger | name | name_lang1 | name_lang2 | name_lang3 | name_lang4 | national | native_name | native_name_lang | newspaper | parties_dab1 | parties_dab2 | position | predecessor | president | presidium | regional | regional affiliation | religion | seats1 | seats1_title | seats10 | seats10_title | seats11 | seats11_title | seats2 | seats2_title | seats3 | seats3_title | seats4 | seats4_title | seats5 | seats5_title | seats6 | seats6_title | seats7 | seats7_title | seats8 | seats8_title | seats9 | seats9_title | secretary | secretary_general | slogan | split | spokesman | spokesperson | standing_committee | state | student_wing | successor | symbol | think tank | think_tank | website | wing1 | wing1_title | wing2 | wing2_title | wing3 | wing3_title | wing4 | wing4_title | womens_wing | youth_wing | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox political party with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox political party]] with unknown parameter "_VALUE_"|ignoreblank=y| _subheader | abbr | abbreviation | affiliation1 | affiliation1_title | affiliation2 | affiliation2_title | anthem | banned | blank1 | blank1_title | blank2 | blank2_title | blank3 | blank3_title | blank4 | blank4_title | caption | chairman | chairperson | colorcode | colors | colours | continental | continental affiliation | country | country_dab1 | country_dab2 | country2 | dissolution | dissolved | elections_dab1 | elections_dab2 | europarl | european | first_secretary | flag | flag_alt | flag_title | footnotes | foundation | founded | founder | founders | general_secretary | headquarters | ideology | international | lang1 | lang2 | lang3 | lang4 | leader | leader1_name | leader1_title | leader2_name | leader2_title | leader3_name | leader3_title | leader4_name | leader4_title | leader5_name | leader5_title | legalised | legalized | logo | logo_alt | logo_size | logo_upright | membership | membership_year | merged | merger | name | name_lang1 | name_lang2 | name_lang3 | name_lang4 | national | native_name | native_name_lang | newspaper | parties_dab1 | parties_dab2 | position | predecessor | president | presidium | regional | regional affiliation | registered | religion | seats1 | seats1_title | seats10 | seats10_title | seats11 | seats11_title | seats2 | seats2_title | seats3 | seats3_title | seats4 | seats4_title | seats5 | seats5_title | seats6 | seats6_title | seats7 | seats7_title | seats8 | seats8_title | seats9 | seats9_title | secretary | secretary_general | slogan | split | spokesman | spokesperson | standing_committee | state | student_wing | successor | symbol | think tank | think_tank | website | wing1 | wing1_title | wing2 | wing2_title | wing3 | wing3_title | wing4 | wing4_title | womens_wing | youth_wing |
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 17:40, 7 May 2019
Script error: No such module "If empty". | |
|---|---|
| Abbreviation | Script error: No such module "If empty". |
| Chairman | Script error: No such module "If empty". |
| General Secretary | Script error: No such module "If empty". |
| First Secretary | Script error: No such module "If empty". |
| Secretary-General | Script error: No such module "If empty". |
| Presidium | Script error: No such module "If empty". |
| Standing Committee | Script error: No such module "If empty". |
| Secretary | Script error: No such module "If empty". |
| Spokesman | Script error: No such module "If empty". |
| Founder | Script error: No such module "If empty". |
| Founded | Script error: No such module "If empty". |
| Legalized | Script error: No such module "If empty". |
| Dissolved | Script error: No such module "If empty". |
| Think tank | Script error: No such module "If empty". |
| Regional affiliation | Script error: No such module "If empty". |
| Continental affiliation | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
| This template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| This template uses Lua: |
Usage
Basic
Template:Parameter names example
{{Infobox political party
| name =
| logo =
| logo_alt =
| colorcode = <!-- HTML color code (e.g. "red", "#FF0000" or Party metadata color template) otherwise "transparent" -->
| leader =
| president =
| chairperson =
| general_secretary =
| first_secretary =
| secretary_general =
| presidium =
| standing_committee =
| secretary =
| spokesperson =
| founder =
| founded = <!-- {{start date|YYYY|MM|DD}} -->
| headquarters =
| ideology =
| international =
| website =
| country =
}}
Full
Template:Parameter names example
{{Infobox political party
| name =
| native_name =
| native_name_lang =
| lang1 =
| name_lang1 =
| lang2 =
| name_lang2 =
| lang3 =
| name_lang3 =
| lang4 =
| name_lang4 =
| logo =
| logo_size =
| logo_upright =
| logo_alt =
| caption =
| colorcode = <!-- HTML color code (e.g. "red", "#FF0000" or Party metadata color template) otherwise "transparent" -->
| abbreviation = <!-- official abbreviation or | abbr = -->
| leader =
| president =
| chairperson = <!-- or | chairman = -->
| general_secretary =
| first_secretary =
| secretary_general =
| presidium =
| standing_committee =
| secretary =
| spokesperson = <!-- or | spokesman = -->
| leader1_title =
| leader1_name =
| leader2_title =
| leader2_name =
| leader3_title =
| leader3_name =
| leader4_title =
| leader4_name =
| leader5_title =
| leader5_name =
| founder = <!-- or | founders = -->
| founded = <!-- or | foundation = use {{start date|YYYY|MM|DD}} -->
| registered =
| legalised = <!-- or | legalized = -->
| dissolved = <!-- or | banned = or | dissolution = use {{end date|YYYY|MM|DD}} -->
| merger =
| split =
| predecessor =
| merged =
| successor =
| headquarters =
| newspaper =
| think_tank =
| student_wing =
| youth_wing =
| womens_wing =
| wing1_title =
| wing1 =
| wing2_title =
| wing2 =
| wing3_title =
| wing3 =
| wing4_title =
| wing4 =
| membership_year =
| membership =
| ideology =
| position =
| religion =
| national =
| regional = <!-- or | regional affiliation = -->
| european =
| continental = <!-- or | continental affiliation = -->
| international =
| europarl =
| affiliation1_title =
| affiliation1 =
| affiliation2_title =
| affiliation2 =
| colors = <!-- or | colours = -->
| slogan =
| anthem =
| blank1_title =
| blank1 =
| blank2_title =
| blank2 =
| blank3_title =
| blank3 =
| blank4_title =
| blank4 =
| seats1_title =
| seats1 = <!-- {{Infobox political party/seats|50|100|hex=#ff0000}} -->
| seats2_title =
| seats2 =
| seats3_title =
| seats3 =
| seats4_title = <!-- up to | seats11_title = -->
| seats4 = <!-- up to | seats11 = -->
| symbol =
| flag =
| flag_title =
| flag_alt =
| website =
| state = <!-- or | country = -->
| country = <!-- or | state = -->
| country_dab1 =
| parties_dab1 =
| elections_dab1 =
| country2 =
| country_dab2 =
| parties_dab2 =
| elections_dab2 =
| footnotes =
}}
Microformat
TemplateData
TemplateData for Infobox political party
An infobox for political party.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the party. | String | optional |
| Native_name | native_name | no description | Unknown | optional |
| Logo | logo | The logo of the party. | String | optional |
| Logo Size | logo_size | Size of logo image | String | optional |
| Color code | colorcode | The color code of the party. HTML color code (e.g. red, #FF0000 or Party metadata color template) or transparent for no coloring. | String | optional |
| Leader | leader | The leader of the party. | String | optional |
| President | president | The president of the party. | String | optional |
| Chairperson | chairperson chairman | The chairperson of the party. | String | optional |
| General secretary | general_secretary | The general secretary of the party. | String | optional |
| First secretary | first_secretary | The first secretary of the party. | String | optional |
| Secretary-general | secretary_general | The secretary-general of the party. | String | optional |
| Presidium | presidium | The presidium of the party. | String | optional |
| Secretary | secretary | The secretary of the party. | String | optional |
| Spokesperson | spokesperson spokesman | The spokesperson of the party. | String | optional |
| Foundation | foundation founded | The foundation date of the party. Insert as {{Start date|YYYY|MM|DD}}. | String | optional |
| Ideology | ideology | The ideology of the party. | String | optional |
| Headquarters | headquarters | The headquarters of the party. | String | optional |
| International | international | The international of the party. | String | optional |
| Website | website | The website of the party. | String | optional |
| Registered | registered | The Registration Number of party,If havent registered then write NO. | String | optional |
| Country | country state | The country of the party. | String | optional |
| Abbreviation | abbreviation abbr | no description | Unknown | optional |
| Founder | founder founders | no description | Unknown | optional |
| Legalised | legalised legalized | no description | Unknown | optional |
| Dissolved | dissolved banned dissolution | no description | Unknown | optional |
| Colors | colors colours | no description | Unknown | optional |
| Native_name_lang | native_name_lang | no description | Unknown | optional |
| Standing_committee | standing_committee | no description | Unknown | optional |
| Merger | merger | no description | Unknown | optional |
| Split | split | no description | Unknown | optional |
| Predecessor | predecessor | no description | Unknown | optional |
| Merged | merged | no description | Unknown | optional |
| Successor | successor | no description | Unknown | optional |
| Newspaper | newspaper | no description | Unknown | optional |
| Think_tank | think_tank think tank | no description | Unknown | optional |
| Student_wing | student_wing | no description | Unknown | optional |
| Youth_wing | youth_wing | no description | Unknown | optional |
| Womens_wing | womens_wing | no description | Unknown | optional |
| Membership | membership | no description | Unknown | optional |
| Membership_year | membership_year | no description | Unknown | optional |
| Position | position | no description | Unknown | optional |
| Religion | religion | no description | Unknown | optional |
| National | national | no description | Unknown | optional |
| Regional | regional regional affiliation | no description | Unknown | optional |
| European | european | no description | Unknown | optional |
| Continental | continental continental affiliation | no description | Unknown | optional |
| Europarl | europarl | no description | Unknown | optional |
| Slogan | slogan | no description | Unknown | optional |
| Anthem | anthem | no description | Unknown | optional |
| Symbol | symbol | no description | Unknown | optional |
| Flag | flag flag_title | no description | Unknown | optional |
| Flag_alt | flag_alt | no description | Unknown | optional |
| Country2 | country2 | no description | Unknown | optional |
| Footnotes | footnotes | no description | Unknown | optional |
| Logo_upright | logo_upright | no description | Unknown | optional |
| Logo_alt | logo_alt | no description | Unknown | optional |
Tracking categories
See also
- {{Composition bar}}, used to display a statistic, such as the number of seats held by a political party.
Template:Organization infoboxes
| The above documentation is transcluded from Template:Infobox political party/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |