Template:Uksi: Difference between revisions

From FOIwiki
Jump to navigationJump to search
(An extra argument, and better documentation)
(Better terminology)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template is used to make a reference to a UK Statutory Instrument.  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 <code>uksi/''year''/''chapter''</code>.
This template is used to make a reference to a UK Statutory Instrument.  It takes two arguments: the first is the year of the SI, and the second is its 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 <code>uksi/''year''/''chapter''</code>.


<code><nowiki>{{uksi|2004|3391}}</nowiki></code> &rarr; {{uksi|2004|3391}}
<code><nowiki>{{uksi|2004|3391}}</nowiki></code> &rarr; {{uksi|2004|3391}}
Line 6: Line 6:
<code><nowiki>{{uksi|2004|3391|EIR 2004}}</nowiki></code> &rarr; {{uksi|2004|3391|EIR 2004}}
<code><nowiki>{{uksi|2004|3391|EIR 2004}}</nowiki></code> &rarr; {{uksi|2004|3391|EIR 2004}}


</noinclude>{{#if:{{#ask:[[Legislation ID::uksi/{{{1}}}/{{{2}}}]]}}|[[{{#ask:[[Legislation ID::uksi/{{{1}}}/{{{2}}}]]|link=none}}|{{#if:{{{3}}}|{{{3}}}|SI {{{1}}}/{{{2}}}}}]]|{{uksi fallback|{{{1}}}|{{{2}}}}}<sup>({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=uksi&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})</sup>}}
</noinclude>{{Legislation link|uksi|{{{1}}}|{{{2}}}|{{{3|}}}}}

Latest revision as of 18:45, 9 May 2010

This template is used to make a reference to a UK Statutory Instrument. It takes two arguments: the first is the year of the SI, and the second is its 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 uksi/year/chapter.

{{uksi|2004|3391}}SI 2004/3391

{{uksi|2004|3391|EIR 2004}}EIR 2004

SI {{{1}}}/{{{2}}}({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=uksi&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})