Template:Region: Difference between revisions
(This will replace Template:Release) |
No edit summary |
||
Line 27: | Line 27: | ||
| 12 | dec | december = December | | 12 | dec | december = December | ||
| {{{m|}}} | | {{{m|}}} | ||
}} {{#if: {{{d|}}}|{{{d}}},|}} {{#if: {{{y|}}}|[[{{{y|}}}]]|}} {{#switch: {{lc:{{{2|}}}}} | }} {{#if: {{{d|}}}|{{{d}}},|}} {{#if: {{{y|}}}|[[{{{y|}}}]]|}} {{#switch: {{lc:{{{2|{{{y|}}}{{{m|}}}{{{d|}}}}}}}} | ||
| language = {{#var:language}} | | language = {{#var:language}} | ||
| {{Void}} = {{#var:region}} | | {{Void}} = {{#var:region}} |
Revision as of 17:23, March 2, 2013
Purpose
This is an all-purpose template for identifying various regions, countries, and languages. It is also used to represent release dates for these regions in a consistent format.
Usage
Region
To identify a region with the region's name and its flag:
{{Region| region }}
- region — One of the region codes in the table below.
Example: {{Region|jp}}
→ Japan
Language
To identify a region's language similarly to above, add "language" as an additional argument.
{{Region| region | language }}
- region — One of the region codes in the table below.
- language — "language" tells the template to display the name of that region's language.
Example: {{Region|jp|language}}
→ 日本語
Release Date
For release dates, specify the year, month, and day like so:
{{Region| region | y= | m= | d= }}
- region — One of the region codes in the table below. (Optional.)
- y, m, d — Year, Month, and Day, respectively. (Optional.)
Example: {{Region|jp|y=2013|m=1|d=29}}
→ January 29, 2013
Other
To display just the flag alongside other information, place that other information in the template.
{{Region| region | information }}
- region — One of the region codes in the table below.
- information — Information pertaining to that region.
Example: {{Region|jp|Japan-specific information}}
→ Japan-specific information
Region Codes
Region | Abbreviation |
---|---|
Japan | jp |
North America | na |
Europe | eu |
Australia | au |
Korea | kr |
United States | us |
United Kingdom | uk |
Spain | sp |
Latin America | la |
France | fr |
Canada | ca |
Germany | ge |
Italy | it |