Template:Hansard/doc

From blackwiki
< Template:Hansard
Revision as of 16:43, 27 April 2020 by imported>Bungle (provide some documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{Hansard|URL|House (optional)|Accessed}}

This template is used for auto generating a citation when using Historic Hansard (UK Parliament) as a reference. It will determine the date from the url and generate a title from the url (both of which are stored in the url). Only part of the url needs to be entered into the parameter (from the year onwards).

Parameters

  • |URL=address, mandatory, defines the url portion from the year onwards
  • |house=NAME, optional, defines whether it relates to commons, lord or written-answers (default commons)
  • |accessed=DATE, mandatory, defines a manually entered date for the access-date value

Example

If the url is https://api.parliament.uk/historic-hansard/commons/1914/aug/07/royal-assent, only the part from "1914" should be entered. For example,

 {{Hansard|url=1914/aug/07/royal-assent |accessed=1 January 2010}}