Template:Legislation: Difference between revisions
From FOIwiki
Jump to navigationJump to search
Provide a suggested link |
No need to support {{{Legislation ID}}}; can safely assume {{{Type}}}. |
||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{Legislation | {{Legislation | ||
|Type=ukpga|uksi|... | |Type=ukpga|uksi|wsi|... | ||
|Year= | |Year= | ||
|Number= | |Number= | ||
Line 15: | Line 15: | ||
</noinclude>* To link to this legislation, try <code><nowiki>{{</nowiki>{{{Type}}}<nowiki>|</nowiki>{{{Year}}}<nowiki>|</nowiki>{{{Number}}}<nowiki>}}</nowiki></code>. | </noinclude>* To link to this legislation, try <code><nowiki>{{</nowiki>{{{Type}}}<nowiki>|</nowiki>{{{Year}}}<nowiki>|</nowiki>{{{Number}}}<nowiki>}}</nowiki></code>. | ||
* [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]] | * [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]] | ||
* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]] | |||
{{#switch:{{{Type}}} | |||
|ukpga = | |||
{{#switch:{{#expr:{{{Year}}} >= 1988}} | |||
|1=* [http://www.opsi.gov.uk/acts/acts{{{Year}}}/{{{Type}}}_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Original text on OPSI site] | |1=* [http://www.opsi.gov.uk/acts/acts{{{Year}}}/{{{Type}}}_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Original text on OPSI site] | ||
}} | }} | ||
Line 24: | Line 24: | ||
|1=* [http://www.opsi.gov.uk/RevisedStatutes/Acts/ukpga/{{{Year}}}/cukpga_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Revised text on OPSI site] | |1=* [http://www.opsi.gov.uk/RevisedStatutes/Acts/ukpga/{{{Year}}}/cukpga_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Revised text on OPSI site] | ||
}} | }} | ||
|uksi = {{#switch:{{#expr:{{{Year}}} >= 1987}} | |uksi = | ||
{{#switch:{{#expr:{{{Year}}} >= 1987}} | |||
|1=* [http://www.opsi.gov.uk/si/si{{{Year}}}/Uksi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1.htm Original text on OPSI site] | |||
}} | }} | ||
|wsi = {{#switch:{{#expr:{{{Year}}} >= 1987}} | |wsi = | ||
{{#switch:{{#expr:{{{Year}}} >= 1987}} | |||
}} | |1=* [http://www.opsi.gov.uk/legislation/wales/wsi{{{Year}}}/wsi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Original text on OPSI site] | ||
}} | |||
}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}} | |||
}}<includeonly>{{#switch:{{{Type}}} | }}<includeonly>{{#switch:{{{Type}}} | ||
|ukpga=[[Category:Public General Acts of the UK Parliament]] | |ukpga=[[Category:Public General Acts of the UK Parliament]] |
Revision as of 22:50, 8 May 2010
This is the "Legislation" template. It's intended to be put in a page describing a piece of legislation. It puts the page in one of the categories under Category:Legislation. It should be called in the following format:
{{Legislation |Type=ukpga|uksi|wsi|... |Year= |Number= |Short title= |SLD number= }}
- To link to this legislation, try
{{{{{Type}}}|{{{Year}}}|{{{Number}}}}}
. - Short title:
- Legislation ID: {{{Type}}}/{{{Year}}}/{{{Number}}}