Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
m (Ahem)
(Support for Welsh SIs, which are a subset of UK SIs that have a different URL scheme on the OPSI site (and a different canonical legislation type in the UK Legislation API))
Line 24: Line 24:
   |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]
     |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}}
    |1=* [http://www.opsi.gov.uk/legislation/wales/wsi{{{Year}}}/wsi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Original text on OPSI site]
}}}}{{#if:{{{Legislation ID|}}}|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Legislation ID|}}}]]
}}}}{{#if:{{{Legislation ID|}}}|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Legislation ID|}}}]]
}}}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}
}}}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}
Line 31: Line 34:
|uksi=[[Category:UK Statutory Instruments]]
|uksi=[[Category:UK Statutory Instruments]]
|ssi=[[Category:Scottish Statutory Instruments]]
|ssi=[[Category:Scottish Statutory Instruments]]
|wsi=[[Category:Welsh Statutory Instruments]]
|#default=[[Category:Legislation]]}}</includeonly>
|#default=[[Category:Legislation]]}}</includeonly>

Revision as of 20:41, 8 May 2010

This is the "Legislation" template. It's intended to be put in a page describing a piece of legislation. It should be called in the following format:

{{Legislation
|Type=ukpga|uksi|...
|Year=
|Number=
|Short title=
|SLD number=
}}