Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
Re-order
anaw support
 
(14 intermediate revisions by 2 users not shown)
Line 19: Line 19:
   <!-- Welsh and Northern Ireland SIs are UK SIs too. -->
   <!-- Welsh and Northern Ireland SIs are UK SIs too. -->
   |wsi|nisi = * [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::uksi/{{{Year}}}/{{{Number}}}]] [[Legislation type::uksi| ]]
   |wsi|nisi = * [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::uksi/{{{Year}}}/{{{Number}}}]] [[Legislation type::uksi| ]]
}}
}}{{#switch:{{{Type}}}
* On legislation.gov.uk: {{#switch:{{{Type}}}
   |ukpga|asp|nisi|nia|apni|mwa|anaw = {{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
   |ukpga|ukla|asp|nia = [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}} full text]
   |ukla = {{#iferror:{{#ifexpr:{{{Year}}} >= 1991|{{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
  |uksi|wsi|ssi|nisr = [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents/made contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/made full text]}}
}}}}|uksi|wsi|ssi = {{#ifexpr:{{{Year}}} >= 1987|{{legislation.gov.uk original|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
{{#switch:{{{Type}}}
}} |nisr = {{#ifexpr:{{{Year}}} >= 1996|{{legislation.gov.uk original|{{{Type}}}/{{{Year}}}/{{{Number}}}}}}}  
   |ukpga =
    {{#ifexpr:{{{Year}}} >= 1988
      |* [http://www.opsi.gov.uk/acts/acts{{{Year}}}/{{{Type}}}_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Original text on OPSI site]
    }}
    <!-- Pre-1963 Acts use regnal years, so mapping them to URLs has to be done by hand. -->
    {{#ifexpr:{{{Year}}} >= 1963
      |* [http://www.opsi.gov.uk/RevisedStatutes/Acts/ukpga/{{{Year}}}/cukpga_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Revised text on OPSI site]
    }}
  |ukla = {{#ifexpr:{{{Year}}} >= 1991|* [http://www.opsi.gov.uk/acts/localact{{{Year}}}/ukla_{{{Year}}}{{padleft:{{{Year}}}|4}}_en_1 Original text on OPSI site]}}
  |asp =
* [http://www.opsi.gov.uk/legislation/scotland/acts{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|asp_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]
* [http://www.opsi.gov.uk/RevisedStatutes/Acts/asp/{{{Year}}}/casp_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Revised text on OPSI site]
  |nia =
* [http://www.opsi.gov.uk/legislation/northernireland/acts/acts{{{Year}}}/{{#ifexpr:{{{Year}}} >= 2007|nia_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1|{{{Year}}}{{padleft:{{{Number}}}|4}}.htm}} Original text on OPSI site]
* [http://www.opsi.gov.uk/RevisedStatutes/Acts/ania/{{{Year}}}/cania_{{{Year}}}{{padleft:{{{Number}}}|4}}_en_1 Revised 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 or {{{Year}}} < 1997|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]
  |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|}}}}}
}}<includeonly>{{#switch:{{{Type}}}
}}<includeonly>{{#switch:{{{Type}}}
Line 48: Line 29:
|ukla=[[Category:Local Acts of the UK Parliament]]
|ukla=[[Category:Local Acts of the UK Parliament]]
|asp=[[Category:Acts of the Scottish Parliament]]
|asp=[[Category:Acts of the Scottish Parliament]]
|nisi=[[Category:Northern Ireland Orders in Council]]
|nia=[[Category:Acts of the Northern Ireland Assembly]]
|nia=[[Category:Acts of the Northern Ireland Assembly]]
|mwa=[[Category:Measures of the National Assembly for Wales]]
|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]]
|wsi=[[Category:Welsh Statutory Instruments]]
|nisr=[[Category:Northern Ireland Statutory Rules]]
|nisr=[[Category:Northern Ireland Statutory Rules]]
|apni=[[Category:Acts of the Northern Ireland Parliament (1921-1972)]]
|anaw=[[Category:Acts of the National Assembly for Wales]]
|#default=[[Category:Legislation]]}}</includeonly>
|#default=[[Category:Legislation]]}}</includeonly>

Latest revision as of 20:02, 4 May 2013

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}}}