Template:CountrySwitch: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 1: Line 1:
{{#ifexist: Template:{{{1}}}/{{{2}}}
{{#ifexist: Template:{{{1}}}/{{{2}}}
|{{{{{1}}}/{{{2}}}|{{{3}}}}}
|{{{{{1}}}/{{{2}}}|uselang={{{3}}}|country={{{2}}}}}
|{{{{{1}}}|{{{3}}}}}
|{{{{{1}}}|uselang={{{3}}}|country={{{2}}}}}
}}<noinclude>
}}<noinclude>
----
----

Revision as of 22:17, 3 November 2011

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


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