Difference between revisions of "Template:Cite legislation UK/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Charlie Awesome
imported>Charlie Awesome
 
Line 1: Line 1:
<includeonly>{{#if: {{{brief|}}} | | [[Parliament of the United Kingdom|UK Parliament]].}}
+
<includeonly>{{#if: {{{brief|}}} | | [[Parliament of the United Kingdom|UK Parliament]].}} [https://www.legislation.gov.uk/{{#if: {{{si|}}} {{#ifeq: {{{type}}} | si | 1}} | uksi/{{{year|1948}}}/{{{number|1}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{si|The Statutory Instruments Regulations 1947}}}, SI&nbsp;{{{year|1948}}}/{{{number|1}}}]{{#if: {{{brief|}}} | |&#32;as made}} | ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{act|Interpretation Act 1978}}}{{#if: {{{show-chapter|}}} | &#32;(c&nbsp;{{{chapter|30}}})}}{{#if: {{{section|}}} | {{#if: {{{brief|}}} |, s&nbsp;{{{section}}}  |, section&nbsp;{{{section}}} }} }}] {{#if: {{{brief|}}} | | as amended (see also [https://www.legislation.gov.uk/ukpga/{{{year|1978}}}/{{{chapter|30}}}/enacted enacted form]).}} }} {{#if: {{{brief|}}} | | ''[[legislation.gov.uk]]''. [[The National Archives (United Kingdom)|The National Archives]]. {{#if: {{{access-date|}}} |Retrieved {{{access-date}}}.}}}}</includeonly><noinclude>{{documentation}} </noinclude>
[https://www.legislation.gov.uk/{{#if: {{{si|}}} {{#ifeq: {{{type}}} | si | 1}} | uksi/{{{year|1948}}}/{{{number|1}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{si|The Statutory Instruments Regulations 1947}}}, SI&nbsp;{{{year|1948}}}/{{{number|1}}}]{{#if: {{{brief|}}} | |&#32;as made}} | ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{act|Interpretation Act 1978}}}{{#if: {{{show-chapter|}}} | &#32;(c&nbsp;{{{chapter|30}}})}}{{#if: {{{section|}}} | {{#if: {{{brief|}}} |, s&nbsp;{{{section}}}  |, section&nbsp;{{{section}}} }} }}] {{#if: {{{brief|}}} | | as amended (see also [https://www.legislation.gov.uk/ukpga/{{{year|1978}}}/{{{chapter|30}}}/enacted enacted form]).}} }}
 
{{#if: {{{brief|}}} | | ''[[legislation.gov.uk]]''. [[The National Archives (United Kingdom)|The National Archives]]. {{#if: {{{access-date|}}} |Retrieved {{{access-date}}}.}}}}</includeonly><noinclude>{{documentation}} </noinclude>
 

Latest revision as of 11:40, 17 April 2019

50px Template documentation[view] [edit] [history] [purge]

A template to cite UK primary and secondary legislation, as provided by legislation.gov.uk.

Usage

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= |section= |date= |accessdate= }}

The template defaults to the Statutory Instruments Regulations 1947:

"The Statutory Instruments Regulations 1947", legislation.gov.uk, The National Archives, SI 1948/1

More to come.