Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(Links to opsi.gov.uk are generally useless now (they redirect to legislation.gov.uk), so remove them)
(anaw support)
 
(9 intermediate revisions by the same user not shown)
Line 20: Line 20:
   |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}}}
}}{{#switch:{{{Type}}}
   |ukpga|ukla|asp|nisi|nia|apni = * Revised text on legislation.gov.uk: [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}} full text]
   |ukpga|asp|nisi|nia|apni|mwa|anaw = {{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
  |uksi|wsi|ssi|nisr = * Original text on legislation.gov.uk: [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents/made contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/made full text]
  |ukla = {{#iferror:{{#ifexpr:{{{Year}}} >= 1991|{{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
}}}}|uksi|wsi|ssi = {{#ifexpr:{{{Year}}} >= 1987|{{legislation.gov.uk original|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
}}  |nisr = {{#ifexpr:{{{Year}}} >= 1996|{{legislation.gov.uk original|{{{Type}}}/{{{Year}}}/{{{Number}}}}}}}
}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}
}}{{#if:{{{SLD number|}}}|* {{SLD number|{{{SLD number|}}}}}
}}<includeonly>{{#switch:{{{Type}}}
}}<includeonly>{{#switch:{{{Type}}}
Line 29: Line 31:
|nisi=[[Category:Northern Ireland Orders in Council]]
|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]]
Line 34: Line 37:
|nisr=[[Category:Northern Ireland Statutory Rules]]
|nisr=[[Category:Northern Ireland Statutory Rules]]
|apni=[[Category:Acts of the Northern Ireland Parliament (1921-1972)]]
|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 21: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}}}