Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(Try linking to legislation.gov.uk)
(Better support for secondary legislation on legislation.gov.uk)
Line 16: Line 16:
* [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]]
* [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]]
* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]] [[Legislation type::{{{Type}}}| ]] [[Legislation year::{{{Year}}}| ]] [[Legislation number::{{{Number}}}| ]]
* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]] [[Legislation type::{{{Type}}}| ]] [[Legislation year::{{{Year}}}| ]] [[Legislation number::{{{Number}}}| ]]
* On legislation.gov.uk: [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}} full text]
* On legislation.gov.uk: {{#switch:{{{Type}}}
  |ukpga|ukla|asp|nia = [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}} full text]
  |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]}}
{{#switch:{{{Type}}}
{{#switch:{{{Type}}}
   <!-- Welsh and Northern Ireland SIs are UK SIs too. -->
   <!-- Welsh and Northern Ireland SIs are UK SIs too. -->

Revision as of 18:35, 30 July 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}}}
  • On legislation.gov.uk: