This is the current revision of this page, as edited by DocWatson42 (talk | contribs) at 04:25, 24 November 2024 (Added a wikilink, in part for those instances where the previous instance of the link does not appear.). The present address (URL) is a permanent link to this version.
Revision as of 04:25, 24 November 2024 by DocWatson42 (talk | contribs) (Added a wikilink, in part for those instances where the previous instance of the link does not appear.)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff) Template documentation[view] [edit] [history] [purge]This template allows linking to external links found on most current UK House of Commons biographies. This will aid in the maintenance and standardization of these external links.
Note: Links to the Parliamentary Record and Journalisted are currently commented out, as these sites are offline
How to use
- This template should not be substituted.
Cut & paste
Either
{{UK MP links | parliament = | hansardcurr = | hansard = | publicwhip = | theywork = | record = | journalisted = }}
or
{{UK MP links | parliament = | hansardcurr = | hansard = | publicwhip = | theywork = | record = | journalisted = }}
The order of the fields does not matter.
Fields
- All parameters are optional, but if you don't include any of them, nothing will show up.
- Do not use capital letters. They might disrupt the code.
- The parliament field may be a combined name and numerical id (e.g.
nick-clegg/1563
) or numerical id only (e.g.1563
). Either format will work.
Field | Data | Result | URL source |
---|---|---|---|
parliament | id | Parliament Profile and Contributions in Parliament | https://www.parliament.uk/biographies/commons/ (name and numerical id) https://hansard.parliament.uk/search/MemberContributions?memberId= (numerical id only) |
hansardcurr | name | Contributions in Parliament 2006–2010 | https://publications.parliament.uk/pa/cm200607/cmhansrd/cmallfiles/mps/commons_hansard__home.html (unless parliament is used) |
hansard | name | Contributions in Parliament 1803–2005 | https://api.parliament.uk/historic-hansard/people/ |
publicwhip | name | Voting record | https://www.publicwhip.org.uk/mp.php?mpn= |
theywork | id | Record in Parliament | https://www.theyworkforyou.com/mp/ |
record | id | Profile | http://www.parliamentaryrecord.com/content/profiles/mp/ |
journalisted | name | Articles authored | http://journalisted.com/ |
Example
{{ UK MP links | parliament = nick-clegg/1563 | hansardcurr = 2631 | hansard = mr-nick-clegg | publicwhip = Nicholas_Clegg | theywork = 11812 | record = Nick-Clegg/Sheffield-Hallam/1086 | journalisted = nick-clegg }}will return all relevant external links:
- Profile at Parliament of the United Kingdom
- Contributions in Parliament at Hansard
- Contributions in Parliament at Hansard 1803–2005
- Voting record at Public Whip
- Record in Parliament at TheyWorkForYou
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: