Template:AppealAmountSwitch: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
documentation |
||
Line 1: | Line 1: | ||
{{#ifexist:Template:AppealAmountSwitch/{{{language}}}|{{AppealAmountSwitch/{{{language}}}|{{{country}}}|{{{1}}}|amount={{{amount}}}}}|{{{1}}}}} |
{{#ifexist:Template:AppealAmountSwitch/{{{language}}}|{{AppealAmountSwitch/{{{language}}}|{{{country}}}|{{{1}}}|amount={{{amount}}}}}|{{{1}}}}}<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> |
Revision as of 17:26, 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 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
- AppealAmountSwitch/ar
- AppealAmountSwitch/bg
- AppealAmountSwitch/cs
- AppealAmountSwitch/da
- AppealAmountSwitch/de
- AppealAmountSwitch/el
- AppealAmountSwitch/en
- AppealAmountSwitch/es
- AppealAmountSwitch/fi
- AppealAmountSwitch/fr
- AppealAmountSwitch/he
- AppealAmountSwitch/it
- AppealAmountSwitch/ja
- AppealAmountSwitch/nl
- AppealAmountSwitch/no
- AppealAmountSwitch/pl
- AppealAmountSwitch/pt
- AppealAmountSwitch/ru
- AppealAmountSwitch/sq
- AppealAmountSwitch/sv
- AppealAmountSwitch/zh