• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:UK MP links/sandbox

  • Language
  • Watch
  • View source
< Template:UK MP links
  • Profile at Parliament of the United Kingdom
  • "UK MP links/sandbox" Hansard at TheyWorkForYou
  • Voting record at Public Whip
  • Record in Parliament at TheyWorkForYou
  • Profile at Westminster Parliamentary Record
  • Profile at BBC News Democracy Live
  • Articles authored at Journalisted
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:UK MP links (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
Wikidata has the properties:
  • NO LABEL (P1996) (see uses)
  • NO LABEL (P2170) (see uses)
  • NO LABEL (P2015) (see uses)
  • NO LABEL (P2169) (see uses)
  • NO LABEL (P2171) (see uses)
  • NO LABEL (P2172) (see uses)
  • NO LABEL (P1714) (see uses)

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

Contents

  • 1 How to use
    • 1.1 Cut & paste
    • 1.2 Fields
  • 2 Example

How to use

  • This template should not be substituted.

Cut & paste

Either <syntaxhighlight lang="wikitext">

</syntaxhighlight> or <syntaxhighlight lang="wikitext">

</syntaxhighlight> 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/[parliament] (name and numerical id)
https://hansard.parliament.uk/search/MemberContributions?memberId=[parliament] (numerical id only)
hansardcurr name Contributions in Parliament 2006–2010 https://publications.parliament.uk/pa/cm200607/cmhansrd/cmallfiles/mps/commons_hansard_[hansardcurr]_home.html (unless parliament is used)
hansard name Contributions in Parliament 1803–2005 https://api.parliament.uk/historic-hansard/people/[hansard]
publicwhip name Voting record https://www.publicwhip.org.uk/mp.php?mpn=[publicwhip]
theywork id Record in Parliament https://www.theyworkforyou.com/mp/[theywork]
record id Profile http://www.parliamentaryrecord.com/content/profiles/mp/[record]
journalisted name Articles authored http://journalisted.com/[journalisted]

Example

Nick Clegg: <syntaxhighlight lang="wikitext">

  • 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 </syntaxhighlight> 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
The above documentation is transcluded from Template:UK MP links/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:UK_MP_links/sandbox&oldid=7186756"
Last edited on 2 December 2017, at 23:21

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 2 December 2017, at 23:21.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop