Template:Infobox political party/doc: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m (1 revision imported)
imported>JohnFromPinckney
(Reverted good faith edits by Ncase56 (talk): Rv poss. test outside of sandbox)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
{{high-use}}
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
{{Auto short description}}
{{Auto short description}}
{{lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
{{lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
Line 31: Line 31:
|country
|country
}}
}}
<pre style="overflow:auto;">
<syntaxhighlight lang="html" style="overflow:auto;">
{{Infobox political party
{{Infobox political party
| name =  
| name =  
Line 56: Line 56:
| country =  
| country =  
}}
}}
</pre>
</syntaxhighlight>
{{clear right}}
{{clear right}}


Line 64: Line 64:
|native_name_lang |lang1 |name_lang1 |lang2 |name_lang2 |lang3 |name_lang3 |lang4 |name_lang4 |logo |logo_size |logo_upright |logo_alt |caption |colorcode=red |abbreviation={{{abbreviation}}} or {{{abbr}}} |leader |president |chairperson={{{chairperson}}} or {{{chairman}}} |general_secretary |first_secretary |secretary_general |presidium |governing_body |standing_committee |secretary |spokesperson={{{spokesperson}}} or {{{spokesman}}}  
|native_name_lang |lang1 |name_lang1 |lang2 |name_lang2 |lang3 |name_lang3 |lang4 |name_lang4 |logo |logo_size |logo_upright |logo_alt |caption |colorcode=red |abbreviation={{{abbreviation}}} or {{{abbr}}} |leader |president |chairperson={{{chairperson}}} or {{{chairman}}} |general_secretary |first_secretary |secretary_general |presidium |governing_body |standing_committee |secretary |spokesperson={{{spokesperson}}} or {{{spokesman}}}  
  |leader1_title |leader1_name |leader2_title |leader2_name |leader3_title |leader3_name |leader4_title |leader4_name |leader5_title |leader5_name
  |leader1_title |leader1_name |leader2_title |leader2_name |leader3_title |leader3_name |leader4_title |leader4_name |leader5_title |leader5_name
|founder={{{founder}}} or {{{founders}}} |founded={{{founded}}} or {{{foundation}}} |registered |legalised={{{legalised}}} or {{{legalized}}} |dissolved={{{dissolved}}} or {{{banned}}} or {{{dissolution}}} |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
|founder={{{founder}}} or {{{founders}}} |founded={{{founded}}} or {{{foundation}}} |registered |legalised={{{legalised}}} or {{{legalized}}} |dissolved={{{dissolved}}} or {{{banned}}} or {{{dissolution}}} |merger |split |predecessor |merged |successor |headquarters |newspaper |think_tank |student_wing |youth_wing |womens_wing |lgbt_wing |wing1_title |wing1 |wing2_title |wing2 |wing3_title |wing3 |wing4_title |wing4
  |membership_year=[''year''] |membership |ideology |position |religion |national |regional |european |continental |international |europarl |affiliation1_title |affiliation1 |affiliation2_title |affiliation2 |colors={{{colors}}} or {{{colours}}} |slogan |anthem
  |membership_year=[''year''] |membership |ideology |position |religion |national |regional |european |continental |international |europarl |affiliation1_title |affiliation1 |affiliation2_title |affiliation2 |colors={{{colors}}} or {{{colours}}} |slogan |anthem
  |blank1_title |blank1 |blank2_title |blank2 |blank3_title |blank3 |blank4_title |blank4
  |blank1_title |blank1 |blank2_title |blank2 |blank3_title |blank3 |blank4_title |blank4
Line 70: Line 70:
  |symbol |flag |flag_title |flag_alt |website |country |country2 |footnotes  
  |symbol |flag |flag_title |flag_alt |website |country |country2 |footnotes  
}}
}}
<pre style="overflow:auto;">
<syntaxhighlight lang="html" style="overflow:auto;">
{{Infobox political party
{{Infobox political party
| name =  
| name =  
Line 150: Line 150:
| affiliation2_title =
| affiliation2_title =
| affiliation2 =
| affiliation2 =
| colors =            <!-- or | colours = -->
| colors =            <!-- or | colours = ; use based on [[WP:ENGVAR]]-->
| slogan =  
| slogan =  
| anthem =  
| anthem =  
Line 185: Line 185:
| footnotes =  
| footnotes =  
}}
}}
</pre>
</syntaxhighlight>
{{clear right}}
{{clear right}}


Line 195: Line 195:
<templatedata>
<templatedata>
{
{
"description": "An infobox for political party.",
"description": "An infobox for a political party. Used to briefly summarize information about a party at the top of the article. ",
"format": "{{_\n| ________________ = _\n}}\n",
"format": "{{_\n| ________________ = _\n}}\n",
"params": {
"params": {
Line 289: Line 289:
"international": {
"international": {
"label": "International",
"label": "International",
"description": "The international of the party",
"description": "The party’s international affiliation(s)",
"type": "string"
"type": "string"
},
},
Line 332: Line 332:
},
},
"colors": {
"colors": {
"description": "The official colors of the party, independent of infobox usage",
"description": "The official colors of the party, independent of infobox usage",
"aliases": [
"aliases": [
"colours"
"colours"
Line 345: Line 345:
"label": "Native name language code",
"label": "Native name language code",
"description": "The ISO-639 language code of the native name of the party",
"description": "The ISO-639 language code of the native name of the party",
"example": "en",
"example": "fr",
"type": "string"
"type": "string"
},
},
        "governing_body": {},
"governing_body": {},
"standing_committee": {},
"standing_committee": {},
"merger": {},
"merger": {},
Line 427: Line 427:
"colors",
"colors",
"native_name_lang",
"native_name_lang",
        "governing_body",
"governing_body",
"standing_committee",
"standing_committee",
"merger",
"merger",

Latest revision as of 10:49, 24 March 2023

Usage

Basic

{{{name}}}
Leader{{{leader}}}
President{{{president}}}
Chairperson{{{chairperson}}}
Secretary{{{secretary}}}
General Secretary{{{general_secretary}}}
First Secretary{{{first_secretary}}}
Secretary-General{{{secretary_general}}}
Presidium{{{presidium}}}
Governing body{{{governing_body}}}
Standing Committee{{{standing_committee}}}
Spokesperson{{{spokesperson}}}
Founder{{{founder}}}
Founded{{{founded}}}
Headquarters{{{headquarters}}}
Ideology{{{ideology}}}
International affiliation{{{international}}}
Website
{{{website}}}
{{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 = 
| secretary = 
| general_secretary = 
| first_secretary = 
| secretary_general = 
| presidium = 
| governing_body =
| standing_committee =
| spokesperson = 
| founder =
| founded =        <!-- {{start date|YYYY|MM|DD}} -->
| headquarters = 
| ideology = 
| international = 
| website = 
| country = 
}}

Full

{{{name}}}
{{{native_name}}}
{{{lang1}}} name{{{name_lang1}}}
{{{lang2}}} name{{{name_lang2}}}
{{{lang3}}} name{{{name_lang3}}}
{{{lang4}}} name{{{name_lang4}}}
Abbreviation{{{abbreviation}}} or {{{abbr}}}
Leader{{{leader}}}
President{{{president}}}
Chairperson{{{chairperson}}} or {{{chairman}}}
Secretary{{{secretary}}}
General Secretary{{{general_secretary}}}
First Secretary{{{first_secretary}}}
Secretary-General{{{secretary_general}}}
Presidium{{{presidium}}}
Governing body{{{governing_body}}}
Standing Committee{{{standing_committee}}}
Spokesperson{{{spokesperson}}} or {{{spokesman}}}
{{{leader1_title}}}{{{leader1_name}}}
{{{leader2_title}}}{{{leader2_name}}}
{{{leader3_title}}}{{{leader3_name}}}
{{{leader4_title}}}{{{leader4_name}}}
{{{leader5_title}}}{{{leader5_name}}}
Founder{{{founder}}} or {{{founders}}}
Founded{{{founded}}} or {{{foundation}}}
Registered{{{registered}}}
Legalised{{{legalised}}} or {{{legalized}}}
Dissolved{{{dissolved}}} or {{{banned}}} or {{{dissolution}}}
Merger of{{{merger}}}
Split from{{{split}}}
Preceded by{{{predecessor}}}
Merged into{{{merged}}}
Succeeded by{{{successor}}}
Headquarters{{{headquarters}}}
Newspaper{{{newspaper}}}
Think tank{{{think_tank}}}
Student wing{{{student_wing}}}
Youth wing{{{youth_wing}}}
Women's wing{{{womens_wing}}}
{{{wing1_title}}}{{{wing1}}}
{{{wing2_title}}}{{{wing2}}}
{{{wing3_title}}}{{{wing3}}}
{{{wing4_title}}}{{{wing4}}}
Membership ([year]){{{membership}}}
Ideology{{{ideology}}}
Political position{{{position}}}
Religion{{{religion}}}
National affiliation{{{national}}}
Regional affiliation{{{regional}}}
European affiliation{{{european}}}
Continental affiliation{{{continental}}}
International affiliation{{{international}}}
European Parliament group{{{europarl}}}
{{{affiliation1_title}}}{{{affiliation1}}}
{{{affiliation2_title}}}{{{affiliation2}}}
Colors{{{colors}}} or {{{colours}}}
Slogan{{{slogan}}}
Anthem{{{anthem}}}
{{{blank1_title}}}{{{blank1}}}
{{{blank2_title}}}{{{blank2}}}
{{{blank3_title}}}{{{blank3}}}
{{{blank4_title}}}{{{blank4}}}
{{{seats1_title}}}{{{seats1}}}
{{{seats2_title}}}{{{seats2}}}
{{{seats3_title}}}{{{seats3}}}
{{{seats4_title}}}{{{seats4}}}
Election symbol
{{{symbol}}}
{{{flag_title}}}
[[File:{{{flag}}}|frameless|alt={{{flag_alt}}}|upright=0.8]]
Website
{{{website}}}

{{{footnotes}}}
{{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 = -->
| secretary =
| general_secretary =
| first_secretary =
| secretary_general = 
| presidium =
| governing_body =
| standing_committee =
| 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 = ; use based on [[WP:ENGVAR]]-->
| 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

The HTML mark-up produced by this template includes an hCard microformat that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Subtemplates

Please do not remove instances of these subtemplates.

Classes used

The HTML classes of this microformat include:

  • adr
  • agent
  • category
  • country-name
  • extended-address
  • fn
  • geo
  • label
  • latitude
  • locality
  • longitude
  • nickname
  • note
  • org
  • region
  • street-address
  • url
  • vcard
Please do not rename or remove these classes
nor collapse nested elements which use them.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Infobox political party

An infobox for a political party. Used to briefly summarize information about a party at the top of the article.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

The name of the party

Stringoptional
Native namenative_name

The native name of the party

Stringoptional
Logologo

The logo of the party

Stringoptional
Logo sizelogo_size

Size of logo image

Stringoptional
Color codecolorcode

The color to be used for infobox accents. HTML color code (e.g. red, #FF0000 or Party metadata color template) or transparent for no coloring.

Stringoptional
Leaderleader

The leader of the party

Stringoptional
Presidentpresident

The president of the party

Stringoptional
Chairpersonchairperson chairman

The chairperson of the party

Stringoptional
Secretarysecretary

The secretary of the party

Stringoptional
General secretarygeneral_secretary

The general secretary of the party

Stringoptional
First secretaryfirst_secretary

The first secretary of the party

Stringoptional
Secretary-generalsecretary_general

The secretary-general of the party

Stringoptional
Presidiumpresidium

The presidium of the party

Stringoptional
Spokespersonspokesperson spokesman

The spokesperson of the party

Stringoptional
Foundationfoundation founded

The foundation date of the party. Insert as {{Start date|YYYY|MM|DD}}.

Stringoptional
Ideologyideology

The ideology of the party

Stringoptional
Headquartersheadquarters

The headquarters of the party

Stringoptional
Internationalinternational

The party’s international affiliation(s)

Stringoptional
Websitewebsite

The website of the party

Stringoptional
Registeredregistered

The registration number of party; if unregistered, then write NO.

Stringoptional
Countrycountry state

The country of the party

Stringoptional
abbreviationabbreviation abbr

no description

Unknownoptional
founderfounder founders

no description

Unknownoptional
legalisedlegalised legalized

no description

Unknownoptional
dissolveddissolved banned dissolution

no description

Unknownoptional
colorscolors colours

The official colors of the party, independent of infobox usage

Unknownoptional
Native name language codenative_name_lang

The ISO-639 language code of the native name of the party

Example
fr
Stringoptional
governing_bodygoverning_body

no description

Unknownoptional
standing_committeestanding_committee

no description

Unknownoptional
mergermerger

no description

Unknownoptional
Split fromsplit

Party or organisation the party was split from

Stringoptional
predecessorpredecessor

no description

Unknownoptional
mergedmerged

no description

Unknownoptional
successorsuccessor

no description

Unknownoptional
newspapernewspaper

no description

Unknownoptional
think_tankthink_tank think tank

no description

Unknownoptional
student_wingstudent_wing

no description

Unknownoptional
youth_wingyouth_wing

no description

Unknownoptional
womens_wingwomens_wing

no description

Unknownoptional
membershipmembership

no description

Unknownoptional
membership_yearmembership_year

no description

Unknownoptional
positionposition

no description

Unknownoptional
religionreligion

no description

Unknownoptional
nationalnational

no description

Unknownoptional
regionalregional regional affiliation

no description

Unknownoptional
europeaneuropean

no description

Unknownoptional
continentalcontinental continental affiliation

no description

Unknownoptional
europarleuroparl

no description

Unknownoptional
sloganslogan

no description

Unknownoptional
anthemanthem

no description

Unknownoptional
symbolsymbol

no description

Unknownoptional
flagflag flag_title

no description

Unknownoptional
flag_altflag_alt

no description

Unknownoptional
country2country2

no description

Unknownoptional
footnotesfootnotes

no description

Unknownoptional
logo_uprightlogo_upright

no description

Unknownoptional
logo_altlogo_alt

no description

Unknownoptional

Tracking categories

See also

  • {{Composition bar}}, used to display a statistic, such as the number of seats held by a political party.