Template:2012FR/Switch/Country: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Cbarr (talk | contribs)
Created page with "{{#ifexist: Template:{{{1}}}/{{{2}}} |{{{{{1}}}/{{{2}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}} |{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}} }}<noinclu..."
 
Cbarr (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist: Template:{{{1}}}/{{{2}}}
{{#ifexist: Template:{{{template}}}/{{{country}}}
|{{{{{1}}}/{{{2}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
|{{{{{template}}}/{{{country}}}|language={{{language}}}|country={{{country}}}|appeal={{{appeal}}}}}
|{{{{{1}}}|uselang={{{3}}}|country={{{2}}}|appeal={{{4}}}}}
|{{{{{template}}}|language={{{language}}}|country={{{country}}}|appeal={{{appeal}}}}}
}}<noinclude>
}}<noinclude>
----
----

Latest revision as of 20:57, 26 January 2012

{{{{{template}}}|language={{{language}}}|country={{{country}}}|appeal={{{appeal}}}}}


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