Difference between revisions of "Template:Region"
Dinoguy1000 (talk | contribs) (allow English regions to be output without the "English" modifier, allow for "Oceanic" instead of "Australian") |
Dinoguy1000 (talk | contribs) (this one shouldn't be here, actually) |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{1}}} }} | {{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc: {{{1}}} }} | ||
− | | en | ew | english | worldwide english | worldwide = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—Worldwide | {{ {{{|safesubst:}}}#if: {{{short|}}}{{{short2|}}} || Worldwide }} | + | | en | ew | english | worldwide english | worldwide = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—Worldwide | {{ {{{|safesubst:}}}#if: {{{short|}}}{{{short2|}}} || Worldwide }} English }} |
| na | north american english | north american = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—North America{{ {{{|safesubst:}}}#if: {{{after2|}}} | n }} | {{ {{{|safesubst:}}}#if: {{{short2|}}} || North American }} {{ #if: {{{english|}}} || English }} }} | | na | north american english | north american = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—North America{{ {{{|safesubst:}}}#if: {{{after2|}}} | n }} | {{ {{{|safesubst:}}}#if: {{{short2|}}} || North American }} {{ #if: {{{english|}}} || English }} }} | ||
| e | eu | european english | european = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—Europe{{ {{{|safesubst:}}}#if: {{{after2|}}} | an }} | {{ {{{|safesubst:}}}#if: {{{short2|}}} || European }} {{ #if: {{{english|}}} || English }} }} | | e | eu | european english | european = {{ {{{|safesubst:}}}#if: {{{after|}}}{{{after2|}}} | English—Europe{{ {{{|safesubst:}}}#if: {{{after2|}}} | an }} | {{ {{{|safesubst:}}}#if: {{{short2|}}} || European }} {{ #if: {{{english|}}} || English }} }} |
Revision as of 04:53, 31 July 2012
Usage
{{region}} is a template which returns the standardized full name for a given region of the card game. The input can be one of several variants of the abbreviation or full name; case is ignored. For instance, {{region|ae}}
, {{region|AE}}
, {{region|Asian-english}}
, and {{region|asian English}}
all give Asian-English.
In addition to the basic usage, six parameters are available to customize output for the English regions in particular: after
, after2
, short
, short2
, english
, and oceanic
. The following table shows each parameter's effect on each English region:
Basic usage | after
|
after2
|
short
|
short2
|
english
|
oceanic
|
---|---|---|---|---|---|---|
Worldwide English | English—Worldwide | English—Worldwide | English | English | Worldwide English | Worldwide English |
North American English | English—North America | English—North American | North American English | English | North American | North American English |
European English | English—Europe | English—European | European English | English | European | European English |
Australian English | English—Australia | English—Australian | Australian English | English | Australian | Oceanic English |