Template:AppealAmountSwitch 2019: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "{{#ifeq:{{{amount|}}}|all|<span class="consider-amounts">}}{{#ifexist:Template:AppealAmountSwitch/{{{language}}}|{{AppealAmountSwitch/{{{language}}}|{{{country}}}|{{{1}}}|amou..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{amount|}}}|all|<span class="consider-amounts">}}{{#ifexist:Template: |
{{#ifeq:{{{amount|}}}|all|<span class="consider-amounts">}}{{#ifexist:Template:AppealAmountSwitch_2019/{{{language}}}|{{AppealAmountSwitch_2019/{{{language}}}|{{{country}}}|{{{1}}}|amount={{{amount}}}}}|{{{1}}}}}{{#ifeq:{{{amount|}}}|all|</span>}}<noinclude> |
||
== Documentation == |
== 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>. |
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: |
Use: |
||
:<tt><nowiki>{{ |
:<tt><nowiki>{{AppealAmountSwitch_2019|</nowiki>language=<langcode>|country=<nowiki>{{{country}}}</nowiki>|amount=<amount>|<fallback><nowiki>}}</nowiki></tt> |
||
Parameters: |
Parameters: |
||
Line 17: | Line 17: | ||
== List of subtemplates == |
== List of subtemplates == |
||
{{Special:Prefixindex/Template: |
{{Special:Prefixindex/Template:AppealAmountSwitch_2019/}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 15:05, 25 November 2019
{{{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_2019|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 doesn't exist or it does, but there is no localization for the given country.