Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(Some nisi support)
No edit summary
Line 21: Line 21:
}}
}}
* On legislation.gov.uk: {{#switch:{{{Type}}}
* On legislation.gov.uk: {{#switch:{{{Type}}}
   |ukpga|ukla|asp|nisi|nia = [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}}/contents contents]; [http://www.legislation.gov.uk/{{{Type}}}/{{{Year}}}/{{{Number}}} full text]
   |ukpga|ukla|asp|nisi|nia|apni = [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]}}
   |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}}}
Line 54: Line 54:
|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)]]
|#default=[[Category:Legislation]]}}</includeonly>
|#default=[[Category:Legislation]]}}</includeonly>

Revision as of 02:10, 29 September 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: