Revision as of 16:54, 1 May 2015 view sourceRcsprinter123 (talk | contribs)Autopatrolled, Extended confirmed users, File movers, IP block exemptions, Rollbackers81,791 edits bypass redirects← Previous edit | Revision as of 18:47, 1 May 2015 view source Pigsonthewing (talk | contribs)Autopatrolled, Event coordinators, Extended confirmed users, Page movers, File movers, IP block exemptions, New page reviewers, Pending changes reviewers, Rollbackers, Template editors266,141 edits Undid revision 660274762 by Rcsprinter123 (talk) WP:NOTBROKENNext edit → | ||
Line 10: | Line 10: | ||
* at ] | * at ] | ||
}} {{#if:{{{theywork|}}}| | }} {{#if:{{{theywork|}}}| | ||
* at ] | * at ] | ||
}} {{#if:{{{record|}}}| | }} {{#if:{{{record|}}}| | ||
* at Westminster Parliamentary Record | * at Westminster Parliamentary Record | ||
}} {{#if:{{{bbc|}}}| | }} {{#if:{{{bbc|}}}| | ||
* at ] | * at ] | ||
}} {{#if:{{{journalisted|}}}| | }} {{#if:{{{journalisted|}}}| | ||
* at '']'' | * at '']'' | ||
}}<noinclude>{{Documentation}} | }}<noinclude>{{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:47, 1 May 2015
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 1803–2005
- Current session contributions in Parliament at Hansard
- Voting record at Public Whip
- Record in Parliament at TheyWorkForYou
- Profile at Westminster Parliamentary Record
- Articles authored at Journalisted
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: