Template:Legislation: Difference between revisions

From FOIwiki
Jump to navigationJump to search
Turn short title into a property
Allow for specifying type, year, and number separately
Line 4: Line 4:
<pre>
<pre>
{{Legislation
{{Legislation
|Type=ukpga|uksi|...
|Year=
|Number=
|Short title=
|Short title=
|Legislation ID=
|SLD number=
|SLD number=
}}
}}
Line 11: Line 13:


</noinclude>* [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]]
</noinclude>* [[Property:Short title|Short title]]: [[Short title::{{{Short title|}}}]]
* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Legislation ID|}}}]]
{{#if:{{{Type}}}
* {{SLD number|{{{SLD number|}}}}}
|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Type}}}/{{{Year}}}/{{{Number}}}]]
<includeonly>[[Category:Legislation]]</includeonly>
}}{{#if:{{{Legislation ID}}}|* [[Property:Legislation ID|Legislation ID]]: [[Legislation ID::{{{Legislation ID|}}}]]
}}{{#if:{{{SLD number}}}|* {{SLD number|{{{SLD number|}}}}}
}}<includeonly>[[Category:Legislation]]</includeonly>

Revision as of 15:59, 7 May 2010

This is the "Legislation" template. It's intended to be put in a page describing a piece of legislation. It should be called in the following format:

{{Legislation
|Type=ukpga|uksi|...
|Year=
|Number=
|Short title=
|SLD number=
}}