Difference between revisions of "Template:Infobox European Parliament constituency"
imported>BrownHairedGirl (use {{{memberstatelink}}} parameter) |
imported>Spleodrach (bypass redirect) |
||
| Line 22: | Line 22: | ||
{{#if: {{{dissolved|}}} |<tr><th>Dissolved</th><td>{{Infobox European Parliament constituency/election link|{{{dissolved}}}|{{{memberstate}}}}}</td></tr>}} | {{#if: {{{dissolved|}}} |<tr><th>Dissolved</th><td>{{Infobox European Parliament constituency/election link|{{{dissolved}}}|{{{memberstate}}}}}</td></tr>}} | ||
{{#if: {{{meps|}}} |<tr><th>[[Member of the European Parliament|MEP(s)]]</th><td>{{{meps}}}</td></tr>}} | {{#if: {{{meps|}}} |<tr><th>[[Member of the European Parliament|MEP(s)]]</th><td>{{{meps}}}</td></tr>}} | ||
| − | {{#if: {{{memberstate|}}} |<tr class="adr"><th>[[European Union | + | {{#if: {{{memberstate|}}} |<tr class="adr"><th>[[Member State of the European Union|Member State]]</th><td class="country-name">{{#if: {{{memberstatelink|}}}|[[{{{memberstatelink}}}{{!}}{{{memberstate}}}]]|[[{{{memberstate}}}]]}}</td></tr>}} |
{{#if: {{{sources|}}} |<tr><th>Source(s)</th><td>{{{sources}}}</td></tr>}} | {{#if: {{{sources|}}} |<tr><th>Source(s)</th><td>{{{sources}}}</td></tr>}} | ||
|}<noinclude>{{documentation}}</noinclude> | |}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 18:00, 23 August 2010
| {{{title}}} European Parliament constituency
|
|---|
| This template uses Lua: |
Contents
- 1 Usage
- 2 Parameters
- 3 Examples
- 3.1 Łódź (existing constituency smaller than member state)
- 3.2 Sweden (existing constituency same size as member state)
- 3.3 France (no-longer-existing constituency same size as member state)
- 3.4 Leinster (no-longer-existing constituency smaller than member state)
- 3.5 Overseas Territories of France (constituency outside the member state)
- 3.6 Merseyside West (constituency with no map yet)
- 4 Tracking category
- 5 Microformat
Usage
| {{{title}}} European Parliament constituency | |
|---|---|
| [[{{{map}}}|190px]] | |
| {{{mapcaption}}} | |
| Electorate population | {{{electorate population}}} |
| Created | [[{{{created}}} European Parliament election in {{{memberstate}}}|{{{created}}}]] |
| Dissolved | [[{{{dissolved}}} European Parliament election in {{{memberstate}}}|{{{dissolved}}}]] |
| MEP(s) | {{{meps}}} |
| Member State | [[{{{memberstatelink}}}|{{{memberstate}}}]] |
| Source(s) | {{{sources}}} |
{{Infobox European Parliament constituency
| title =
| locationmap2014 =
| coordinates = <!-- {{coord|...|...}} -->
| pushpin_map =
| pushpin_mapsize =
| pushpin_mapcaption =
| map =
| mapsize =
| mapalt =
| mapcaption =
| memberstate =
| memberstatelink =
| memberstatelink2 =
| electorate population =
| created =
| dissolved =
| meps =
| created2 =
| dissolved2 =
| meps2 =
| sources =
}}
Short syntax
{{Infobox European Parliament constituency
| title =
| locationmap2014 =
| coordinates = <!-- {{coord|...|...}} -->
| map =
| mapalt =
| mapcaption =
| memberstate =
| electorate population =
| created =
| dissolved =
| meps =
}}
Parameters
- title
- what appears at the top of the infobox; required
- locationmap2014
- set to the region code for the constituency if constituency existed in 2014 (must match one of the EP-constituency maps at commons)
- coordinates
- coordinates of constituency using the {{coord}} template; set to decimal longitude if location map set to "yes"
- pushpin_map
- name of a location map to use via {{location map}} (requires coordinates)
| pushpin_mapsize :
- pushpin_mapcaption
- map
- a secondary map
- mapsize
- mapalt
- mapcaption
- memberstate
- the name of the country the constituency is part of
- memberstatelink
- the Wikipedia-article title of the country, if different from its name
- memberstatelink2
- former or full country name, if different from its name, e.g. 'West Germany' or 'the United Kingdom'
- electorate population
- population of electorate as of last election
- created
- date of constituency creation
- dissolved
- date of constituency dissolution
- meps
- number of MEPs
- created2
- dissolved2
- meps2
- sources
- sources for further reading
Examples
Łódź (existing constituency smaller than member state)
Łódź is one of 13 constituencies in Poland. The code for its infobox looks like this:
| Łódź European Parliament constituency | |
|---|---|
![]() | |
| 6th constituency in Poland | |
| Created | 2004 |
| MEP(s) | 4 (2004) |
| Member State | Poland |
| Source(s) | [1] |
{{Infobox European Parliament constituency
| title = Łódź
| locationmap2014 = PL-6
| coordinates = {{coord|51.78|19.47}}
| map = File:European Parliament constituencies Poland.png
| mapcaption = 6th constituency in [[Poland]]
| created = 2004
| meps = 4 (2004)
| memberstate = Poland
| memberstatelink2 = Poland
| sources = [http://www.europarl.europa.eu/elections2004/ep-election/sites/en/yourvoice/pl/law.html]
}}
Sweden (existing constituency same size as member state)
Sweden is a single constituency for European Parliament purposes. The code for its infobox looks like this:
| Sweden European Parliament constituency
| |
|---|---|
| Created | 1995 |
| MEP(s) | 19 (2004) |
| Member State | Sweden |
| Source(s) | [2][3] |
{{Infobox European Parliament constituency
| title = Sweden
| memberstate = Sweden
| memberstatelink2 = Sweden
| pushpin_map = Europe
| pushpin_mapcaption = Location within Europe
| coordinates = {{coord|67.0|16.0}}
| created = 1995
| meps = 19 (2004)
| sources = [http://www.europarl.europa.eu/election/newep/en/maps.htm][http://www.europarl.europa.eu/elections2004/ep-election/sites/en/yourvoice/index.html]
}}
France (no-longer-existing constituency same size as member state)
France was a single constituency for European Parliament purposes, but is now subdivided into smaller constituencies. The code for its infobox looks like this:
| France European Parliament constituency | |
|---|---|
![]() | |
| Shown within European Union | |
| Created | 1979 |
| Dissolved | 2004 |
| MEP(s) | 87 (1999) |
| Member State | France |
| Source(s) | [4] |
{{Infobox European Parliament constituency
| title = France
| map = File:EU location FRA.png
| mapcaption = Shown within [[European Union]]
| created = 1979
| dissolved = 2004
| meps = 87 (1999)
| memberstate = France
| memberstatelink2 = France
| sources = [http://www.europarl.europa.eu/election/newep/en/maps.htm]
}}
Leinster (no-longer-existing constituency smaller than member state)
Leinster was a constituency of the European Parliament until 2004. The code for its infobox looks like this:
| Leinster European Parliament constituency | |
|---|---|
![]() | |
| Shown within Ireland | |
| Created | 1979 |
| Dissolved | 2004 |
| MEP(s) | 4 (1994–2004), 3 (1979–1994) |
| Member State | Ireland |
| Source(s) | [5] |
{{Infobox European Parliament constituency
| title = Leinster
| map = File:IrelandEuroParlLabelled19792004.png
| mapcaption = Shown within [[Ireland]]
| created = 1979
| dissolved = 2004
| meps = 4 (1994–2004); 3 (1979–1994)
| memberstatelink = Republic of Ireland
| memberstatelink2 = Ireland
| memberstate = Ireland
| sources = [http://www.europarl.europa.eu/election/law/en/lair01en.htm]
}}
Overseas Territories of France (constituency outside the member state)
The Overseas Territories of France are a constituency of the European Parliament. The code for its infobox looks like this:
| Overseas Territories of France European Parliament constituency | |
|---|---|
![]() | |
| Shown in blue | |
| Created | 2004 |
| MEP(s) | 3 |
| Member State | France |
| Source(s) | [6] |
{{Infobox European Parliament constituency
| title = Overseas Territories of France
| map = File:Outre-mer en.png
| mapcaption = Shown in [[Overseas departments and territories of France|blue]]
| created = 2004
| meps = 3
| memberstate = France
| memberstatelink2 = France
| sources = [http://www.europarl.europa.eu/elections2004/ep-election/sites/en/yourvoice/fr/law.html]
}}
Merseyside West (constituency with no map yet)
Merseyside West was a constituency of the European Parliament, but there is no map yet. The code for its infobox looks like this:
| Merseyside West European Parliament constituency
| |
|---|---|
| Created | 1984 |
| Dissolved | 1999 |
| MEP(s) | 1 |
| Member State | United Kingdom |
| Source(s) | [7] |
{{Infobox European Parliament constituency
| title = Merseyside West
| map =
| mapcaption =
| created = 1984
| dissolved = 1999
| meps = 1
| memberstate = United Kingdom
| memberstatelink2 = the United Kingdom
| sources = [http://www.election.demon.co.uk/]
}}
Tracking category
Microformat
| The above documentation is transcluded from Template:Infobox European Parliament constituency/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. |



