Template:Asp: Difference between revisions
From FOIwiki
Jump to navigationJump to search
(Created page with '<noinclude> This template is used to make a reference to an Act of the Scottish Parliament. It takes two arguments: the first is the year of the Act, and the second is its chapt...') |
|||
Line 9: | Line 9: | ||
There's a nasty hack here. To pass {{{3}}} to the layout template, we have to arrange for it to be returned by the query. That's done by asking whether the page is in an empty category and returning {{{3}}} if it is not. | There's a nasty hack here. To pass {{{3}}} to the layout template, we have to arrange for it to be returned by the query. That's done by asking whether the page is in an empty category and returning {{{3}}} if it is not. | ||
--> | --> | ||
</noinclude>{{ | </noinclude>{{Legislation link|asp|{{{1}}}|{{{2}}}|{{{3|}}}}} | ||
Latest revision as of 16:24, 9 May 2010
This template is used to make a reference to an Act of the Scottish 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 asp/year/chapter.
{{asp|2002|13}}
→ Freedom of Information (Scotland) Act 2002
{{asp|2002|13|FOISA 2002}}
→ FOISA 2002
{{{1}}} asp {{{2}}}({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=asp&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})