Template:Mwa: Difference between revisions
From FOIwiki
Jump to navigationJump to search
Created page with "<noinclude> This template is used to make a reference to a Measure of the National Assembly for Wales. It takes two arguments: the first is the year of the Measure, and the seco..." |
nawm -> mwa |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
This template is used to make a reference to a Measure of the National Assembly for Wales. It takes two arguments: the first is the year of the Measure, and the second is its number within the year. 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>nawm/''year''/''cnumber''</tt>. | This template is used to make a reference to a Measure of the National Assembly for Wales. It takes two arguments: the first is the year of the Measure, and the second is its number within the year. 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>nawm/''year''/''cnumber''</tt>. | ||
<code><nowiki>{{ | <code><nowiki>{{mwa|2011|1}}</nowiki></code> → {{mwa|2011|1}} | ||
<code><nowiki>{{ | <code><nowiki>{{mwa|2011|1|WL(W)M 2011}}</nowiki></code> → {{mwa|2011|1|WL(W)M 2011}} | ||
<!-- | <!-- | ||
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>{{Legislation link| | </noinclude>{{Legislation link|mwa|{{{1}}}|{{{2}}}|{{{3|}}}}} |
Latest revision as of 18:52, 15 February 2011
This template is used to make a reference to a Measure of the National Assembly for Wales. It takes two arguments: the first is the year of the Measure, and the second is its number within the year. 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 nawm/year/cnumber.
{{mwa|2011|1}}
→ Welsh Language (Wales) Measure 2011
{{mwa|2011|1|WL(W)M 2011}}
→ WL(W)M 2011
{{{1}}} nawm {{{2}}}({{#formlink:form=Legislation|link text=add|query string=Legislation[Type]=mwa&Legislation[Year]={{{1}}}&Legislation[Number]={{{2}}}}})