Difference between revisions of "Template:Infobox political party/sandbox"
imported>Dannis243 |
|||
| Line 3: | Line 3: | ||
| aboveclass = fn org | | aboveclass = fn org | ||
| − | | abovestyle = border-top:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}}; | + | | abovestyle = padding-top:0.3em; border-top:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}}; {{#if:{{{native_name|}}} |padding-bottom:0; |padding-bottom:0.3em;border-bottom:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}};}} |
| − | |||
| above = {{{name|{{{name_english|{{{party name|{{{party_name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}}}}}}} | | above = {{{name|{{{name_english|{{{party name|{{{party_name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}}}}}}} | ||
| − | | subheaderstyle = | + | | subheaderstyle = line-height:1.2em;padding-top:0;padding-bottom:0.4em;font-weight:bold;border-bottom:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}}; |
| subheader = {{#if:{{{native_name|}}} |<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | | subheader = {{#if:{{{native_name|}}} |<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | ||
| imageclass = logo | | imageclass = logo | ||
| + | | imagestyle = padding-top:.4em;padding-bottom:.3em; | ||
| image = {{{party logo|{{{party_logo|{{{logo|}}}}}}}}} | | image = {{{party logo|{{{party_logo|{{{logo|}}}}}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| − | | labelstyle = padding-top:0.2em;line-height:1. | + | | headerstyle = line-height: 0.8em; padding-top:0.5em; padding-bottom:0; |
| − | | datastyle = padding-top:0. | + | | labelstyle = padding-top:0.2em;line-height:1.3em; |
| + | | datastyle = padding-top:0.2em;line-height:1.3em; | ||
| label1 = {{{lang1}}} name | | label1 = {{{lang1}}} name | ||
| Line 156: | Line 157: | ||
| data39 = {{{ideology|}}} | | data39 = {{{ideology|}}} | ||
| − | | label40 = [[Political spectrum|Political position]] | + | | label40 = [[Political spectrum|Political position]] |
| class40 = category | | class40 = category | ||
| data40 = {{{position|}}} | | data40 = {{{position|}}} | ||
| + | | label41 = [[Religion]] | ||
| class41 = category | | class41 = category | ||
| − | |||
| data41 = {{{religion|}}} | | data41 = {{{religion|}}} | ||
| Line 182: | Line 183: | ||
| label46 = {{{affiliation1_title}}} | | label46 = {{{affiliation1_title}}} | ||
| class46 = category | | class46 = category | ||
| − | | data46 = {{{affiliation1|}}} | + | | data46 = {{#if:{{{affiliation1_title|}}}|{{{affiliation1|}}}}} |
| label47 = Colo{{#if:{{{colours|}}}|u|}}rs | | label47 = Colo{{#if:{{{colours|}}}|u|}}rs | ||
| Line 241: | Line 242: | ||
| data69 = {{{website|}}} | | data69 = {{{website|}}} | ||
| − | | belowstyle = border-top:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}}; | + | | belowstyle = line-height:1.3em; padding-top:0.4em; border-top:2px solid {{#if:{{{colorcode|}}}|{{{colorcode}}}|transparent}}; |
| below = {{#if:{{{state|{{{country|}}}}}} | | below = {{#if:{{{state|{{{country|}}}}}} | ||
| {{#ifexist: {{#if:{{{country_dab1|}}} |{{{country_dab1}}} |Politics of {{{state|{{{country}}}}}} }} | | {{#ifexist: {{#if:{{{country_dab1|}}} |{{{country_dab1}}} |Politics of {{{state|{{{country}}}}}} }} | ||
| Line 269: | Line 270: | ||
-->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes|}}} }} | -->{{#if:{{{footnotes|}}} |<hr/>{{{footnotes|}}} }} | ||
| − | }}<!-- | + | }}{{main other |
| − | + | |<!-- | |
| − | + | -->{{#if:{{{1|}}}| [[Category:Political party articles using deprecated parameters|§{{PAGENAME}}]] | |
| − | + | }}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Political party articles using deprecated parameters|_VALUE_{{PAGENAME}}]]|ignoreblank=y | |
| − | + | | colors| colorcode| native_name| name| native_name_lang| logo| caption| lang1| name_lang1| lang2| name_lang2| lang3| name_lang3| lang4| name_lang4| abbr| abbreviation| leader| president| chairperson| chairman| general_secretary| first_secretary| secretary_general| secretary| presidium| spokesperson| founder| leader1_title| leader1_name| leader2_title| leader2_name| leader3_title| leader3_name| leader4_title| leader4_name| leader5_title| leader5_name| slogan| founded| foundation| legalised| legalized| dissolved| dissolution| merger| split| predecessor| merged| successor| headquarters| newspaper| think tank| think_tank| student_wing| youth_wing| wing1_title| wing1| wing2_title| wing2| wing3_title| wing3| membership_year| membership| ideology| position| religion| national| international| european| europarl| affiliation1_title| affiliation1| colours| anthem| blank1_title| blank1| blank2_title| blank2| blank3_title| blank3| seats1_title| seats1| seats2_title| seats2| seats3_title| seats3| seats4_title| seats4| seats5_title| seats5| seats6_title| seats6| seats7_title| seats7| seats8_title| seats8| seats9_title| seats9| seats10_title| seats10| seats11_title| seats11| symbol| flag| website| state| country| country_dab1| parties_dab1| elections_dab1| country2| country_dab2| parties_dab2| elections_dab2| footnotes<!-- | blank_title| blank_info| blank1_info| blank2_info| blank3_info| european affiliation| european parliament group| international affiliation| party name| party_name| name_english| party logo| party_logo| preceded by| preceded_by| succeeded by| succeeded_by| disbanded| spokesman -->}} | |
| − | + | }}<noinclude> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:10, 7 January 2015
| This is the template sandbox page for Template:Infobox political party (diff). See also the companion subpage for test cases. |
| This template is used on many 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. |