Template:Uksi: Difference between revisions
From FOIwiki
Jump to navigationJump to search
An extra argument, and better documentation |
Fix normal version |
||
Line 6: | Line 6: | ||
<code><nowiki>{{uksi|2004|3391|EIR 2004}}</nowiki></code> → {{uksi|2004|3391|EIR 2004}} | <code><nowiki>{{uksi|2004|3391|EIR 2004}}</nowiki></code> → {{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>{{#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>}} |
Revision as of 21:26, 8 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 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 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}}}}})