Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
Support pre-2007 URI formats for all secondary legislation
m typo
Line 35: Line 35:
   |ssi = * [http://www.opsi.gov.uk/legislation/scotland/ssi{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|ssi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]
   |ssi = * [http://www.opsi.gov.uk/legislation/scotland/ssi{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|ssi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]
   |uksi = {{#ifexpr:{{{Year}}} >= 1987|* [http://www.opsi.gov.uk/si/si{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|Uksi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1.htm|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]}}
   |uksi = {{#ifexpr:{{{Year}}} >= 1987|* [http://www.opsi.gov.uk/si/si{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|Uksi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1.htm|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]}}
   |wsi = * [http://www.opsi.gov.uk/legislation/wales/wsi{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|wsi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}e.htm}} Original text on OPSI site]}}
   |wsi = * [http://www.opsi.gov.uk/legislation/wales/wsi{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|wsi_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}e.htm}} Original text on OPSI site]
   |nisr = {{#ifexpr:{{{Year}}} >= 1991|* [http://www.opsi.gov.uk/sr/sr{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|nisr_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]}}
   |nisr = {{#ifexpr:{{{Year}}} >= 1991|* [http://www.opsi.gov.uk/sr/sr{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|nisr_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]}}
}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}
}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}

Revision as of 02:02, 10 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}}}