Template:EUPP data
Error: {{Template:EUPP data}}: not called from the page of a European party (help)
![]() | This template is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
Usage
[edit]{{EUPP 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 entity, from the following list:
The name can be omitted when the template is called from the Wikipedia page of the entity (alternatively, This parameter is optional when called from the page of the entity. The following acronyms are used for European parties:
In addition, the following European political alliances are covered:
In addition, four special parameters can be used instead of European parties (so not when
Notes:
|
3 | The name of the institution, from the following list:
For lower and upper houses, the module will sum the number of seats of the European party's member parties across member states. Note that, as of June 2025, the per-European party breakdown of seats of PACE political groups is rarely available. 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 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.
To update data returned by the module, go to the Wikidata page of the entity in question (the link is often provided as a comment in the infobox of the Wikipedia article), and edit the relevant property, preferably by adding a new value and marking it as preferred (instead of deleting outdated information).
Here are some relevant properties for the module:
- number of seats in assembly: P1410, with the following qualifiers:
- short name/acronym: P1813
- colour/sRGB color hex triplet: P465
- country: P17
- foundation date: P571
- individual members: P2124
- official name: P1448
- parliamentary group: P4100
- public funding: P12919
- official website: P856
Wherever possible, try and add:
- a
start time
(P580) qualifier (and a matchingend time
(P582) in the outdated entry) or apoint in time
(P585) qualifier, and - a reference, including the
reference URL
(P854),title
(P1476),retrieved
(P813), andpublisher
qualifiers (P123).
Updating Wikidata ensures that updated and sourced information is available not just to this Wiki, but to all versions of Wikipedia, as well as to other services drawing information from Wikidata.
Translating the module
[edit]To adapt the module to a new Wiki, follow these steps:
- Create two modules to replicate the modules below (the content must remain the same as in the English version):
- Create the following files and translate them as needed (translate only the non-English parts, as indicated):
- Translate the module documentations, and adapt the examples as necessary using the translated terms;
- Create testcases, such as the ones below, and adapt the examples as necessary using the translated terms:
- Create three templates to replicate the ones below:
- Translate the template documentations, based on the module documentations, and adapt the examples as necessary using the translated terms;
- Add the two modules in the "Wikipedia" sections of the two relevant Wikidata pages below:
- Create a topic on the consolidated module talk page to adapt the content of the common module (in particular its function for composition bars) to the new Wiki. After being adapted, the main module will be synchronised to update the modules in all Wiki languages; this helps ensure that the same module is used across Wikis, which is essential to keep its functions updated.
Examples
[edit]Data type seats
[edit]Code | Result | Output |
---|---|---|
{{EUPP data|seats|EPP|EP}}
|
182 | number of seats of the European People's Party in the European Parliament |
{{EUPP data|seats|PES|EC|reference=yes}}
|
4[1] | number of seats of the Party of European Socialists in the European Commission, with reference |
{{EUPP data|seats|ind|EUCO}}
|
5 | number of seats of independent politicians in the European Council |
{{EUPP data|seats|ALDE|ms-lower-house}}
|
416 | number of seats of the Alliance of Liberals and Democrats for Europe in member states' lower houses |
{{EUPP data|seats|EGP|ms-upper-house|reference=yes}}
|
50 | number of seats of the European Green Party in member states' upper houses, without reference (see table above) |
{{EUPP data|seats|Q208242|EC}}
|
11 | number of seats of the European People's Party (called by its Wikidata qID) in the European Commission |
{{EUPP data|seats|Q208242|ms-upper-house}}
|
457 | number of seats of the European People's Party (called by its Wikidata qID) in member states' upper houses |
{{EUPP data|seats|all|EP}}
|
634 | number of seats of all European parties combined in the European Parliament |
{{EUPP data|seats|none|EP}}
|
86 | number of seats not occupied by European parties in the European Parliament |
Data type seat share
[edit]Code | Result | Output |
---|---|---|
{{EUPP data|seat share|EPP|EP|reference=yes}}
|
25.28 | share of seats of the European People's Party in the European Parliament, with reference |
{{EUPP data|seat share|ind|EUCO}}
|
18.52 | share of seats of independent politicians in the European Council |
{{EUPP data|seat share|ALDE|ms-lower-house}}
|
6.68 | share of seats of the Alliance of Liberals and Democrats for Europe in member states' lower houses |
{{EUPP data|seat share|Q208242|EC}}
|
40.74 | share of seats of the European People's Party (called by its Wikidata qID) in the European Commission |
{{EUPP data|seat share|all|EP}}
|
88.06 | share of seats of all European parties combined in the European Parliament |
Data type seat composition bar
[edit]Code | Result | Output |
---|---|---|
{{EUPP data|seat composition bar|EPP|EP|reference=yes}}
|
182 / 720 [2]
|
composition bar of seats of the European People's Party in the European Parliament |
{{EUPP data|seat composition bar|ind|EUCO|percent=yes}}
|
5 / 27
|
composition bar of seats of independent politicians in the European Council |
{{EUPP data|seat composition bar|ALDE|ms-lower-house}}
|
416 / 6,229
|
composition bar of seats of the Alliance of Liberals and Democrats for Europe in member states' lower houses |
{{EUPP data|seat composition bar|Q208242|EC|percent=yes|reference=yes}}
|
11 / 27 (41%) [3]
|
composition bar of seats of the European People's Party (called by its Wikidata qID) in the European Commission |
{{EUPP data|seat composition bar|all|EP|width=80%|background-color=#FFFF00|border=#008080|bar-color=#A020F0}}
|
634 / 720
|
composition bar of seats of all European parties combined in the European Parliament, with special parameters |
Other data types
[edit]Code | Result | Output |
---|---|---|
{{EUPP data|acronym|EPP}}
|
EPP | acronym of the European People's Party |
{{EUPP data|color|PES}}
|
#F0001C | colour of the Party of European Socialists |
{{EUPP data|foundation date|PES}}
|
10 November 1992 | foundation date of the Party of European Socialists |
{{EUPP data|individual members|EPP|reference=yes}}
|
25[4] | individual members of the European People's Party, with reference |
{{EUPP data|label|ALDE}}
|
Alliance of Liberals and Democrats for Europe Party | label of the Alliance of Liberals and Democrats for Europe |
{{EUPP data|official name|EGP}}
|
European Green Party | official name of the European Green Party |
{{EUPP data|parliamentary group|EFA}}
|
The Greens–European Free Alliance | parliamentary group of the European Free Alliance |
{{EUPP data|public funding|EGP}}
|
171,460.56 euros | public funding of the European Green Party |
- ^ "PES in the EU institutions". Retrieved 7 February 2025.
- ^ "European People's Party". Authority for European Political Parties and European Political Foundations. Retrieved 4 November 2024.
- ^ "Parties and partners". Retrieved 7 February 2025.
- ^ "List of members as per Article 32(2) of Regulation 1141/2014 (English)". Retrieved 26 January 2025.