Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
m (typo)
(OPSI link for local Acts)
Line 27: Line 27:
     {{#switch:{{#expr:{{{Year}}} >= 1963}}
     {{#switch:{{#expr:{{{Year}}} >= 1963}}
       |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]
    }}
  |ukla =
    {{#switch:{{#expr:{{{Year}}} >= 1991}}
      |1=* [http://www.opsi.gov.uk/acts/localact{{{Year}}}/ukla_{{{Year}}}{{padleft:{{{Year}}}|4}}_en_1 Original text on OPSI site]
     }}
     }}
   |asp =
   |asp =

Revision as of 20:16, 9 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}}}