Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
m Misplaced newline
nawm support
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|asp|nisi|nia|apni = {{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
   |ukpga|asp|nisi|nia|apni|nawm = {{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
   |ukla = {{#iferror:{{#ifexpr:{{{Year}}} >= 1991|{{legislation.gov.uk revised|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
   |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}}}}}
}}}}|uksi|wsi|ssi = {{#ifexpr:{{{Year}}} >= 1987|{{legislation.gov.uk original|{{{Type}}}/{{{Year}}}/{{{Number}}}}}
Line 31: 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]]
|nawm=[[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]]

Revision as of 17:45, 15 February 2011

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