Jump to content

Template:Cite legislation UK: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
add rule/regulation/article for SIs that don't have "sections"
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(11 intermediate revisions by 8 users not shown)
Line 2: Line 2:
|publisher=[[The National Archives (United Kingdom)|The National Archives]]
|publisher=[[The National Archives (United Kingdom)|The National Archives]]
|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|}}}}})}}{{#if: {{{regulation|}}} | {{sp}}(reg. {{{regulation}}})}}{{#if: {{{rule|}}} | {{sp}}(r. {{{rule}}})}}{{#if: {{{article|}}} | {{sp}}(art. {{{article}}})}}
|title={{#switch:{{{type|act}}}| act= {{{act|Interpretation Act 1978}}} | si = {{{si|The Statutory Instruments Regulations 1947}}}}}{{#if: {{{section|}}} | : Section {{{section}}}}}{{#if: {{{schedule|}}} | : Schedule {{#ifeq:{{{schedule|}}}|0||{{{schedule|}}}}}}}
|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|}}}}}}}{{#if: {{{regulation|}}} | {{colon}} Regulation {{{regulation}}}}}{{#if: {{{rule|}}} | {{colon}} Rule {{{rule}}}}}{{#if: {{{article|}}} | {{colon}} Article {{{article}}}}}
|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=https://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|}}}}}}}{{#if: {{{regulation|}}} | /regulation/{{{regulation}}}}}{{#if: {{{rule|}}} | /rule/{{{rule}}}}}{{#if: {{{article|}}} | /article/{{{article}}}}}/{{#switch:{{{type|act}}} | act= | si=made}}
|accessdate={{{accessdate|}}}
|access-date={{{access-date|{{{accessdate|}}}}}}
|date={{{date|}}}
|date={{{date|}}}
|mode={{{mode|}}}
}}</includeonly><noinclude>{{documentation}} <templatedata>
|quote={{{quote|}}}
{
}}</includeonly><noinclude>
"params": {
{{documentation}}
"type": {
"description": "'act' for Act or 'si' for Statutory Instrument",
"example": "act",
"default": "act",
"suggested": true,
"label": "Type"
},
"chapter": {
"suggested": true,
"label": "Chapter",
"description": "The chapter number of the act",
"example": "30",
"type": "number"
},
"section": {
"description": "The section number, if you would like to cite a particular section",
"label": "Section",
"type": "number"
},
"act": {
"description": "The full name of the Act",
"label": "Name",
"example": "Interpretation Act 1978",
"type": "string"
},
"number": {
"suggested": true,
"label": "Number",
"description": "The number of the SI",
"example": "1",
"type": "number"
},
"si": {
"description": "The full name of the SI",
"label": "SI name",
"example": "The Statutory Instrument Regulations 1947",
"type": "string"
},
"accessdate": {
"label": "Access Date",
"description": "The date that legislation.gov.uk was accessed",
"type": "date"
},
"Year": {
"description": "The year of the Act or SI",
"example": "1978",
"type": "date"
},
"date": {
"label": "Date",
"description": "The date the act was given Royal Assent or the SI was made",
"example": "20 July 1978",
"type": "date"
},
"schedule": {
"label": "Schedule",
"description": "The Schedule number, if you would like to cite a specific schedule; for acts with a single schedule, use '0'",
"type": "number"
}
},
"description": "Cite UK Acts of parliament, and UK statutory instruments",
"paramOrder": [
"type",
"Year",
"chapter",
"number",
"act",
"si",
"section",
"schedule",
"accessdate",
"date"
],
"format": "inline"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 12:05, 29 June 2023