Difference between revisions of "Template:Region/doc"
Dinoguy1000 (talk | contribs) ({{lang}}/{{ln}}) |
Dinoguy1000 (talk | contribs) (add summary table of "after"/"short"/"english"/"oceanic" parameters) |
||
Line 4: | Line 4: | ||
=== Usage === | === Usage === | ||
{{tl|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, {{tlx|region|ae}}, {{tlx|region|AE}}, {{tlx|region|Asian-english}}, and {{tlx|region|asian English}} all give {{region|Asian-English}}. | {{tl|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, {{tlx|region|ae}}, {{tlx|region|AE}}, {{tlx|region|Asian-english}}, and {{tlx|region|asian English}} all give {{region|Asian-English}}. | ||
+ | |||
+ | In addition to the basic usage, six parameters are available to customize output for the English regions in particular: <code>after</code>, <code>after2</code>, <code>short</code>, <code>short2</code>, <code>english</code>, and <code>oceanic</code>. The following table shows each parameter's effect on each English region:<!-- one day maybe these will be cleaned up --> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! scope="col" | Basic usage | ||
+ | ! scope="col" | <code>after</code> | ||
+ | ! scope="col" | <code>after2</code> | ||
+ | ! scope="col" | <code>short</code> | ||
+ | ! scope="col" | <code>short2</code> | ||
+ | ! scope="col" | <code>english</code> | ||
+ | ! scope="col" | <code>oceanic</code> | ||
+ | |- | ||
+ | | {{region|en}} | ||
+ | | {{region|en|after=1}} | ||
+ | | {{region|en|after2=1}} | ||
+ | | {{region|en|short=1}} | ||
+ | | {{region|en|short2=1}} | ||
+ | | {{region|en|english=1}} | ||
+ | | {{region|en|oceanic=1}} | ||
+ | |- | ||
+ | | {{region|na}} | ||
+ | | {{region|na|after=1}} | ||
+ | | {{region|na|after2=1}} | ||
+ | | {{region|na|short=1}} | ||
+ | | {{region|na|short2=1}} | ||
+ | | {{region|na|english=1}} | ||
+ | | {{region|na|oceanic=1}} | ||
+ | |- | ||
+ | | {{region|eu}} | ||
+ | | {{region|eu|after=1}} | ||
+ | | {{region|eu|after2=1}} | ||
+ | | {{region|eu|short=1}} | ||
+ | | {{region|eu|short2=1}} | ||
+ | | {{region|eu|english=1}} | ||
+ | | {{region|eu|oceanic=1}} | ||
+ | |- | ||
+ | | {{region|au}} | ||
+ | | {{region|au|after=1}} | ||
+ | | {{region|au|after2=1}} | ||
+ | | {{region|au|short=1}} | ||
+ | | {{region|au|short2=1}} | ||
+ | | {{region|au|english=1}} | ||
+ | | {{region|au|oceanic=1}} | ||
+ | |- | ||
+ | |} | ||
=== See also === | === See also === |
Latest revision as of 09:39, 9 February 2024
This is a documentation subpage for Template:Region. It may contain usage information, categories and other content that is not part of the original template page. |
Usage[edit]
{{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 |
See also[edit]
- {{rg}}, which returns the abbreviation
- {{rgo}}, which returns whether the region is in the OCG or TCG
- {{lang}}, which returns the language
- {{ln}}, which returns the ISO 639 code of the language