Template:CountrySwitch: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Pgehres (WMF) (talk | contribs)
Created page with "{{#ifexist: Template:{{{1}}}/{{{2}}} |{{ {{{1}}}/{{{2}}} }} |{{ {{{1}}} }} }}<noinclude> ---- Automatically selects the best localized subpage for various fundraiser templates..."
 
Cbarr (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist: Template:{{{1}}}/{{{2}}}
{{#ifexist: Template:{{{1}}}/{{{2}}}
|{{ {{{1}}}/{{{2}}} }}
|{{{{{1}}}/{{{2}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
|{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
|{{ {{{1}}} }}
}}<noinclude>
}}<noinclude>
----
----

Latest revision as of 21:50, 7 November 2011

{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}


Automatically selects the best localized subpage for various fundraiser templates, based on the country passed to the template. e.g. {{CountryLocalize|appeal-title}} when passed country=CA

  • Will display Template:appeal-title/CA if it exists, else
  • Falls back to Template:appeal-title