Template:Political party data
Appearance
Error: {{Template:Political party data}}: unknown data type: $1 (help)
Usage
[edit]{{Political party data|<data_type>|<party>|<institution>|extra parameters}}
Parameters
[edit]Parameter | Description |
---|---|
1 | The type of data requested and pulled from Wikidata, from the following list:
This parameter is mandatory. |
2 | The name of the party, either as the Wikidata qID of the party or omitted when the module is called from the Wikipedia page of the entity (alternatively, thisparty can be used to refer to the party in question).
This parameter is optional when called from the page of the party. Notes:
|
3 | The name of the institution, from the following list:
Notes:
This parameter is mandatory when |
extra parameters | The following extra parameters can also be used, depending on the requested data_type :
These parameters are optional. |
Test cases
[edit]The template's module has two testcase pages:
- Module:European and national party data/testcases composition bar for the
seat composition bar
data type; and - Module:European and national party data/testcases for all other data types.
Updating the template
[edit]The template's module draws its data from two sources:
- Wikidata for all data points returned by the template's module; and
- commons:Data:Mapping of national parties members of European parties to lower and upper houses.tab which maps the national member parties of European political parties and also serves to link member states (and, therefore, national parties) to their lower and upper houses.
Examples
[edit]Data type seats
[edit]Code | Result | Output |
---|---|---|
{{Political party data|seats|Q49768|EP}}
|
14 | number of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the European Parliament |
{{Political party data|seats|Q13564543|ms-lower-house|reference=yes}}
|
17[1] | number of seats of Austria's NEOS (called by its Wikidata qID) in the National Council, with reference |
{{Political party data|seats|Q138198|ms-upper-house}}
|
88 | number of seats of the Spanish Socialist Workers' Party (called by its Wikidata qID) in the Senate |
Data type seat share
[edit]Code | Result | Output |
---|---|---|
{{Political party data|seat share|Q49768|EP|reference=yes}}
|
14.58 | share of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the European Parliament, with reference |
{{Political party data|seat share|Q13564543|ms-lower-house}}
|
9.29 | share of seats of Austria's NEOS (called by its Wikidata qID) in the National Council |
{{Political party data|seat share|Q655611|ms-lower-house|constituency=61}}
|
4.92 | share of seats of Belgium's Écolo (called by its Wikidata qID) in the French-speaking seats of the Chamber of Representatives |
Data type seat composition bar
[edit]Code | Result | Output |
---|---|---|
{{Political party data|seat composition bar|Q49768|ms-lower-house}}
|
120 / 733
|
composition bar of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the German Bundestag |
{{Political party data|seat composition bar|Q49768|EP|reference=yes}}
|
14 / 96 [2]
|
composition bar of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the European Parliament, with reference |
{{Political party data|seat composition bar|Q655611|ms-lower-house|constituency=61}}
|
3 / 61
|
composition bar of seats of Belgium's Écolo (called by its Wikidata qID) in the French-speaking seats of the Chamber of Representatives |
{{Political party data|seat composition bar|Q49768|EP|width=80%|background-color=blue|border=green|bar-color=red}}
|
14 / 96
|
composition bar of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the European Parliament, with special parameters |
{{Political party data|seat composition bar|Q49768|EP|width=80%|background-color=#FFFF00|border=#008080|bar-color=#A020F0}}
|
14 / 96
|
composition bar of seats of the Social Democratic Party of Germany (called by its Wikidata qID) in the European Parliament, with special parameters |
Other data types
[edit]Code | Result | Output |
---|---|---|
{{Political party data|acronym|Q49768}}
|
SPD | acronym of the Social Democratic Party of Germany |
{{Political party data|color|Q49768}}
|
#ED1B34 | colour of the Social Democratic Party of Germany |
{{Political party data|color|Q49768}}
|
Czech Republic | country of Levice (called by its Wikidata qID) |
{{Political party data|foundation date|Q49768}}
|
23 May 1863 | foundation date of the Social Democratic Party of Germany |
{{Political party data|individual members|Q49768|reference=yes}}
|
379,861[3] | individual members of the Social Democratic Party of Germany, with reference |
{{Political party data|label|Q49768}}
|
Social Democratic Party of Germany | label of the Social Democratic Party of Germany |
{{Political party data|official name|Q49768}}
|
Social Democratic Party of Germany | official name of the Social Democratic Party of Germany |
{{Political party data|parliamentary group|Q170972}}
|
New Ecologic and Social People's Union | parliamentary group of France's Socialist Party |
{{Political party data|public funding|Q49768}}
|
public funding of the Social Democratic Party of Germany | |
{{Political party data|website|Q667680}}
|
groenlinks.nl | website of the Netherlands' GroenLinks |
{{Political party data|official name|Q22748|verbose=yes}}
|
Error: {{European and national party data}}: no data available on Wikidata for P1448; see https://www.wikidata.org/wiki/Q22748 (help) | official name of Germany's Die PARTEI, showing verbose error message |
- ^ "Sitzplan & Mandatsverteilung". Retrieved 9 April 2025.
- ^ "Full list". European Parliament. Retrieved 9 April 2025.
- ^ Andreas Schmid (1 February 2023). "Herbe Verluste: SPD und CDU sterben die Parteimitglieder weg". Merkur. Retrieved 1 March 2023.