Template:AppealAmountSwitch/en: Difference between revisions

Content deleted Content added
Jsoby (talk | contribs)
localization for two amounts and four contries
Jsoby (talk | contribs)
documentation
Line 11:
}}
| #default = {{{2}}}
}}<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>.
 
Use:
:<tt><nowiki>{{AppealAmountSwitch|</nowiki>language=<langcode>|country=<nowiki>{{{country}}}</nowiki>|amount=<amount>|<fallback><nowiki>}}</nowiki></tt>
 
Parameters:
;<tt>language</tt>
:The language code of the appeal.
;<tt>country</tt>
:Should always be <nowiki>{{{country}}}</nowiki>.
;<tt>amount</tt>
:Either <tt>$5</tt> or <tt>all</tt>.
;<tt><nowiki>{{{1}}}</nowiki></tt>
:The fallback if the language subtemplate exists '''or''' it does, but there is no localization for the given country.
 
== List of subtemplates ==
{{Special:Prefixindex/Template:AppealAmountSwitch/}}
</noinclude>