Template:AppealAmountSwitch: Difference between revisions

Content deleted Content added
Jsoby (talk | contribs)
mNo edit summary
wrap in span.consider-amounts if {{{amount}}} = all
Line 1:
{{#ifeq:{{{amount|}}}|all|<span class="consider-amounts">}}
{{#ifexist:Template:AppealAmountSwitch/{{{language}}}|{{AppealAmountSwitch/{{{language}}}|{{{country}}}|{{{1}}}|amount={{{amount}}}}}|{{{1}}}}}<noinclude>
{{#ifeq:{{{amount|}}}|all|</span>}}<noinclude>
== Documentation ==
This template checks if there is a subtemplate of this one for a given <tt>language</tt>. If there is, it uses parameters from that template to insert the right amounts into the appeal for the right <tt>country</tt>.