Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(Don't try to link to OPSI at all for regnal years (yet))
(Only show current OPSI links for ukpga)
Line 15: Line 15:
{{#if:{{{Type|}}}
{{#if:{{{Type|}}}
|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]]
|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]]
{{#switch:{{#expr:{{{Year}}} >= 1988}}
{{#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 21: Line 22:
|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]
}}}}{{#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|}}}}}
}}<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 19:09, 7 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=
}}