Template:AppealAmountSwitch: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Jsoby (talk | contribs)
documentation
Jsoby (talk | contribs)
mNo edit summary
Line 12: Line 12:
:Should always be <nowiki>{{{country}}}</nowiki>.
:Should always be <nowiki>{{{country}}}</nowiki>.
;<tt>amount</tt>
;<tt>amount</tt>
:Either <tt>$5</tt> or <tt>all</tt>.
:Either <tt>$5</tt>, <tt>$10</tt> or <tt>all</tt>.
;<tt><nowiki>{{{1}}}</nowiki></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.
:The fallback if the language subtemplate exists '''or''' it does, but there is no localization for the given country.

Revision as of 17:37, 14 November 2011

{{{1}}}

Documentation

This template checks if there is a subtemplate of this one for a given language. If there is, it uses parameters from that template to insert the right amounts into the appeal for the right country.

Use:

{{AppealAmountSwitch|language=<langcode>|country={{{country}}}|amount=<amount>|<fallback>}}

Parameters:

language
The language code of the appeal.
country
Should always be {{{country}}}.
amount
Either $5, $10 or all.
{{{1}}}
The fallback if the language subtemplate exists or it does, but there is no localization for the given country.

List of subtemplates