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}}}|uselang={{{3}}}|country={{{2}}}|appeal{{{4}}}}}
|{{{{{1}}}/{{{2}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
|{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal{{{4}}}}}
|{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
}}<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