قالب:Cite legislation UK
Usage
A template to cite UK primary and secondary legislation, as provided by legislation.gov.uk. This is a straightforward wrapper of {{Citation}} (CS2 by default).
To do
- Clean and sanitize. The doc was a nightmare to figure out.
- Eventually move this to a proper CS1|2 module wrapper
- ELI support
Implementation outline
{{Citation
|publisher=[[The National Archives (United Kingdom)|The National Archives]]
|website=[[legislation.gov.uk]]
|id= populated by:
|type= "act" (default) or "si"
|year= ("1978" or "1948" if omitted)
|chapter= (if type=act, "30" if omitted)
|number= (if type=si, "1" if omitted)
|section= (for SIs use "article", "regulation" or "rule" as appropriate; "section" will construct a functional link, but the wording will be incorrect)
|schedule= (set to "0" for a blank after "sch." text, where there is only one schedule)
|title= populated by:
|act= (if type=act; "Interpretation Act 1978" if omitted)
|si= (if type=si; "The Statutory Instruments Regulations 1947" if omitted)
|url=
if type=act: https://legislation.gov.uk/ukpga/{year}/{chapter}[/section/{section}]/enacted
if type=si: https://legislation.gov.uk/uksi/{year}/{number}[/section/{section}][/article/{article}][/regulation/{regulation}][/rule/{rule}][/schedule/{schedule}]/made
|access-date=
|date=
|mode=
|quote=
}}
UK Act of Parliament
{{Cite legislation UK |type=act |year= |chapter= |act= |section= |date= |accessdate= }}
The template defaults to the Interpretation Act 1978:
- Interpretation Act 1978, The National Archives, 1978 c. 30, https://legislation.gov.uk/ukpga/1978/30/
UK Statutory Instrument
{{Cite legislation UK |type=si |year= |number= |si= |article= (or |regulation= or |rule=) |date= |accessdate= }}
The template defaults to the Statutory Instruments Regulations 1947:
- The Statutory Instruments Regulations 1947, The National Archives, SI 1948/1, https://legislation.gov.uk/uksi/1948/1/made
Examples
{{Cite legislation UK
| type = si
| si = The Equine Identification (England) (Amendment) (EU Exit) Regulations 2018
| year = 2018
| number = 1409
| regulation = 1
| access-date = 2022-07-08
| quote= These Regulations come into force 21 days after the day on which they are made
}}
The Equine Identification (England) (Amendment) (EU Exit) Regulations 2018: Regulation 1, The National Archives, SI 2018/1409 (reg. 1), https://legislation.gov.uk/uksi/2018/1409/regulation/1/made, retrieved on 2022-07-08, "These Regulations come into force 21 days after the day on which they are made"
{{Cite legislation UK
| year = 2018
| number = 1418
| article = 3
| type = si
| si = Gorchymyn Cefnffordd yr A40 a'r Ffordd Gyswllt (Cyffordd Travellers' Rest, Sir Gaerfyrddin) (Gwahardd Cerbydau a Therfyn Cyflymder 30 MYA Dros Dro) 2018 [The A40 Trunk Road and Link Road (Travellers' Rest Junction, Carmarthenshire) (Temporary Prohibition of Vehicles and 30 MPH Speed Limit) Order 2018]
| date = 3 January 2019
}}
Gorchymyn Cefnffordd yr A40 a'r Ffordd Gyswllt (Cyffordd Travellers' Rest, Sir Gaerfyrddin) (Gwahardd Cerbydau a Therfyn Cyflymder 30 MYA Dros Dro) 2018 [The A40 Trunk Road and Link Road (Travellers' Rest Junction, Carmarthenshire) (Temporary Prohibition of Vehicles and 30 MPH Speed Limit) Order 2018: Article 3], The National Archives, 3 January 2019, SI 2018/1418 (art. 3), https://legislation.gov.uk/uksi/2018/1418/article/3/made
See the monthly error report for this template.
TemplateData for Cite legislation UK
| وسيط | وصف | نوع | حالة | |
|---|---|---|---|---|
| Type | type | 'act' for an Act or 'si' for a statutory instrument
| نص | مطلوب |
| Chapter | chapter | The chapter number of the act
| رقم | مقترح |
| Section | section | The section number, if you would like to cite a particular section of an Act. Also works for SIs, but not recommended | رقم | اختياري |
| Name | act | The full name of the Act
| نص | مقترح |
| Number | number | The number of the SI
| رقم | مقترح |
| SI name | si | The full name of the SI
| نص | مقترح |
| Section | article | The article number, if you would like to cite a particular article of an Order | رقم | اختياري |
| Section | regulation | The regulation number, if you would like to cite a particular regulation of an SI with 'Regulations' in its title | رقم | اختياري |
| Section | rule | The rule number, if you would like to cite a particular rule within an SI with 'Rules' in its title | رقم | اختياري |
| Access date | accessdate | The date that legislation.gov.uk was accessed | نص | اختياري |
| year | year | The year of the Act or SI. For Acts usually cited by regnal year, use whichever year constructs a functional link, usually the year included in its short title.
| رقم | مطلوب |
| Date | date | The date the act was given Royal Assent or the SI was made
| نص | اختياري |
| Schedule | schedule | The Schedule number, if you would like to cite a specific schedule; for acts with a single schedule, use '0' | رقم | اختياري |
Format: inline
params.type.suggestedvalues
See also
- {{Ukhansard}}
- {{UK Parliament}}
- {{UK SI}}
- {{ELI}}: Identifier in multiple European countries, but resolves differently in each.
| The above documentation is transcluded from قالب:Cite legislation UK/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |