User:Hairy Dude/Template:Cite legislation UK new


 * Optionally set parturl to the fragment of the URL after the domain name; otherwise, the URL will be constructed from other parameters
 * Use shorttitle for all types of enactment - include the year
 * Type is the abbreviation given in the URL: ukla, ukppa, aep, apgb, gbla, ukpga, uksi
 * NOT act; modern acts are ukpga
 * UK statutory instruments of all types are uksi
 * Local acts of the GB parliament, and local and personal acts of the UK Parliament, are supported (gbla, ukla, ukppa respectively)
 * Acts of the old English and GB parliaments (aep and agbp respectively) are supported
 * Not supported: ministerial directions and orders (ukmd, ukmo), statutory rules and orders 1900-1948 (uksro), Scottish/Welsh/Irish acts, SIs etc. (asp, nia, aosp, aip, nisr, anaw, wsi, ssi, nisi, mnia, apni, nisro), GB private and personal acts (gbppa, because there aren't any on legislation.gov.uk), church measures/instruments (ukcm, ukci)
 * To do: support at least devolved enactments so we can retire etc.
 * Cite by regnal year using year and monarch – omit dots
 * Use monarchurl and yearurl to give them in the form they appear in the URL, if different (optional if the same)
 * e.g. for Habeas Corpus Act 1803 (43 Geo 3 c. 140) use 43, Geo 3, Geo3, 140
 * To do: try simply replacing ampersands with hyphens (or "and" for monarch: Will & Mar → WillandMar) and stripping spaces
 * type and shorttitle are required
 * year is required. May be either calendar year or regnal year; if regnal year, monarch is also required
 * not sure if SIs are ever cited by regnal year, but we don't support it because legislation.gov.uk doesn't do that even for pre-1948 statutory rules and orders
 * chapter is required if type indicates an Act of Parliament (ukla, ukppa, aep, apgb, gbla, ukpga)
 * number is required if type indicates a statutory instrument (uksi)
 * Mode defaults to CS1
 * Section, schedule, regulation, rule, article, part, crossheading, and paragraph are all supported and optional
 * To do: Combinations that legislation.gov.uk actually uses, e.g. schedule/part, schedule/paragraph should work, but are formatted oddly
 * To do: Schedule/chapter should work, but not supported (to do - would need a different parameter name)
 * Set 0 if there is only one schedule; the number will be omitted
 * If crossheading is given, crossheadingurl is also required
 * subsection, subregulation, subrule, subarticle all optional; one set of parentheses are added automatically. These will not be linked directly