Template:Ukpga: Difference between revisions
From FOIwiki
Jump to navigationJump to search
Use new fields |
Documentation, and some support for a third argument |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template is used to make a reference to a public general Act of the UK Parliament. It takes two arguments: the first is the year of the Act, and the second is its chapter number. It requires there to be a page somewhere in FOIwiki which has a [[Property:Legislation ID|Legislation ID]] property of <tt>ukpga/''year''/''chapter''</tt>. | This template is used to make a reference to a public general Act of the UK Parliament. It takes two arguments: the first is the year of the Act, and the second is its chapter number. An optional third argument gives the link text. It requires there to be a page somewhere in FOIwiki which has a [[Property:Legislation ID|Legislation ID]] property of <tt>ukpga/''year''/''chapter''</tt>. | ||
<code><nowiki>{{ukpga|2000|36}}</nowiki></code> → {{ukpga|2000|36}} | |||
<code><nowiki>{{ukpga|2000|36|FOIA 2000}}</nowiki></code> → {{ukpga|2000|36|FOIA 2000}} | |||
</noinclude>{{#ask:[[Legislation ID::ukpga/{{{1}}}/{{{2}}}]] | </noinclude>{{#ask:[[Legislation ID::ukpga/{{{1}}}/{{{2}}}]] | ||
|default={{{1}}} c. {{{2}}}<sup>({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=ukpga&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})</sup> | |default={{#if:{{{3|}}}|{{{3}}}|{{{1}}} c. {{{2}}}}}<sup>({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=ukpga&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})</sup> | ||
|link=none|format=template|template=ukpga format}} | |link=none|format=template|template=ukpga format}} |
Revision as of 21:31, 8 May 2010
This template is used to make a reference to a public general Act of the UK Parliament. It takes two arguments: the first is the year of the Act, and the second is its chapter number. An optional third argument gives the link text. It requires there to be a page somewhere in FOIwiki which has a Legislation ID property of ukpga/year/chapter.
{{ukpga|2000|36}}
→ Freedom of Information Act 2000
{{ukpga|2000|36|FOIA 2000}}
→ Freedom of Information Act 2000
{{{1}}} c. {{{2}}}({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=ukpga&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})