Difference between revisions of "Template:Cite legislation UK/sandbox"
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 {{{year|1948}}}/{{{number|1}}}]{{#if: {{{brief|}}} | | as made}} | ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{act|Interpretation Act 1978}}}{{#if: {{{show-chapter|}}} |  (c {{{chapter|30}}})}}{{#if: {{{section|}}} | {{#if: {{{brief|}}} |, s {{{section}}} |, section {{{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 {{{year|1948}}}/{{{number|1}}}]{{#if: {{{brief|}}} | | as made}} | ukpga/{{{year|1978}}}/{{{chapter|30}}}{{#if: {{{section|}}} | /section/{{{section}}}}} {{{act|Interpretation Act 1978}}}{{#if: {{{show-chapter|}}} |  (c {{{chapter|30}}})}}{{#if: {{{section|}}} | {{#if: {{{brief|}}} |, s {{{section}}} |, section {{{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 | This is the template sandbox page for Template:Cite legislation UK (diff). See also the companion subpage for test cases. |
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:
More to come.
| The above documentation is transcluded from Template:Cite legislation UK/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |