Template:Cite legislation UK: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|website=[[legislation.gov.uk]] |
|website=[[legislation.gov.uk]] |
||
|id={{#switch:{{{type|act}}}| act= {{{year|1978}}} c. {{{chapter|30}}} | si = SI {{{year|1948}}}/{{{number|1}}}}} {{#if: {{{section|}}} | {{sp}}(s. {{{section}}})}}{{#if: {{{schedule|}}} | (sch.{{#ifeq:{{{schedule|}}}|0||{{sp}}{{{schedule}}})}}}} |
|id={{#switch:{{{type|act}}}| act= {{{year|1978}}} c. {{{chapter|30}}} | si = SI {{{year|1948}}}/{{{number|1}}}}} {{#if: {{{section|}}} | {{sp}}(s. {{{section}}})}}{{#if: {{{schedule|}}} | (sch.{{#ifeq:{{{schedule|}}}|0||{{sp}}{{{schedule}}})}}}} |
||
|title={{#switch:{{{type|act}}}| act= {{{act|Interpretation Act 1978}}} | si = {{{si|The Statutory Instruments Regulations 1947}}}}}{{#if: {{{section|}}} | |
|title={{#switch:{{{type|act}}}| act= {{{act|Interpretation Act 1978}}} | si = {{{si|The Statutory Instruments Regulations 1947}}}}}{{#if: {{{section|}}} | {{colon}} Section {{{section}}}}}{{#if: {{{schedule|}}} | {{colon}} Schedule {{#ifeq:{{{schedule|}}}|0||{{{schedule|}}}}}}} |
||
|url=http://legislation.gov.uk/{{#switch:{{{type|act}}}| act= ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} | si = uksi/{{{year|1948}}}/{{{number|1}}}{{#if: {{{section|}}} | /section/{{{section}}}}}}}{{#if: {{{schedule|}}} | /schedule/{{#ifeq:{{{schedule|}}}|0||{{{schedule|}}}}}}} |
|url=http://legislation.gov.uk/{{#switch:{{{type|act}}}| act= ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} | si = uksi/{{{year|1948}}}/{{{number|1}}}{{#if: {{{section|}}} | /section/{{{section}}}}}}}{{#if: {{{schedule|}}} | /schedule/{{#ifeq:{{{schedule|}}}|0||{{{schedule|}}}}}}} |
||
|accessdate={{{accessdate|}}} |
|accessdate={{{accessdate|}}} |
Revision as of 07:48, 12 September 2019
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), "local act", "private act" or "si"
|year= ("1978" or "1948" if omitted)
|chapter= (if type=act|local act|private 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|local act|private 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=local act: https://legislation.gov.uk/ukla/{year}/{chapter}[/section/{section}]/enacted
if type=private act: https://legislation.gov.uk/ukppa/{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", legislation.gov.uk, The National Archives, 1978 c. 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:
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", legislation.gov.uk, The National Archives, SI 2018/1409
{{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]", legislation.gov.uk, The National Archives, 3 January 2019, SI 2018/1418
TemplateData for Cite legislation UK
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | 'act' for Act or 'si' for Statutory Instrument
| Unknown | suggested |
Chapter | chapter | The chapter number of the act
| Number | suggested |
Section | section | The section number, if you would like to cite a particular section | Number | optional |
Name | act | The full name of the Act
| String | optional |
Number | number | The number of the SI
| Number | suggested |
SI name | si | The full name of the SI
| String | optional |
Access Date | accessdate | The date that legislation.gov.uk was accessed | Date | optional |
Year | Year | The year of the Act or SI
| Date | optional |
Date | date | The date the act was given Royal Assent or the SI was made
| Date | optional |
Schedule | schedule | The Schedule number, if you would like to cite a specific schedule; for acts with a single schedule, use '0' | Number | optional |
type
See also
- {{Ukhansard}}
- {{UK Parliament}}
- {{UK SI}}
- {{ELI}}: Identifier in multiple European countries, but resolves differently in each.
Cite UK Acts of parliament, and UK statutory instruments
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | 'act' for Act or 'si' for Statutory Instrument
| Unknown | suggested |
Year | Year | The year of the Act or SI
| Date | optional |
Chapter | chapter | The chapter number of the act
| Number | suggested |
Number | number | The number of the SI
| Number | suggested |
Name | act | The full name of the Act
| String | optional |
SI name | si | The full name of the SI
| String | optional |
Section | section | The section number, if you would like to cite a particular section | Number | optional |
Schedule | schedule | The Schedule number, if you would like to cite a specific schedule; for acts with a single schedule, use '0' | Number | optional |
Access Date | accessdate | The date that legislation.gov.uk was accessed | Date | optional |
Date | date | The date the act was given Royal Assent or the SI was made
| Date | optional |