|
|
Line 1: |
Line 1: |
| <onlyinclude>{{#switch: {{lc: {{{1|}}}}}
| | {{#switch: {{lc: {{{1|}}}}} |
| | jp = [[File:Flag-Japan.png|22px|Japan|link=]]{{#vardefine:language|{{Tt|Japanese|日本語}}}}{{#vardefine:region|Japan}} | | | jp = [[File:Flag-Japan.png|22px|Japan|link=]]{{#vardefine:language|{{Tt|Japanese|日本語}}}}{{#vardefine:region|Japan}} |
| | na = [[File:Flag-United-States.png|22px|North America|link=]]{{#vardefine:language|English}}{{#vardefine:region|North America}} | | | na = [[File:Flag-United-States.png|22px|North America|link=]]{{#vardefine:language|English}}{{#vardefine:region|North America}} |
| | eu = [[File:Flag-European.png|22px|Europe|link=]]{{#vardefine:language|English}}{{#vardefine:region|Europe}} | | | eu = [[File:Flag-European.png|22px|Europe|link=]]{{#vardefine:language|English}}{{#vardefine:region|Europe}} |
| | au = [[File:Flag-Australia.png|22px|Australia|link=]]{{#vardefine:language|English}}{{#vardefine:region|Australia}} | | | au = [[File:Flag-Australia.png|22px|Australia|link=]]{{#vardefine:language|English}}{{#vardefine:region|Australia}} |
| | | cn = [[File:Flag-China.png|22px|China|link=]]{{#vardefine:language|{{Tt|Chinese|漢語}}}}{{#vardefine:region|China}} |
| | kr = [[File:Flag-Korea.png|22px|South Korea|link=]]{{#vardefine:language|{{Tt|Korean|한국어}}}}{{#vardefine:region|South Korea}} | | | kr = [[File:Flag-Korea.png|22px|South Korea|link=]]{{#vardefine:language|{{Tt|Korean|한국어}}}}{{#vardefine:region|South Korea}} |
| | us = [[File:Flag-United-States.png|22px|United States|link=]]{{#vardefine:language|English}}{{#vardefine:region|United States}} | | | us = [[File:Flag-United-States.png|22px|United States|link=]]{{#vardefine:language|English}}{{#vardefine:region|United States}} |
Line 31: |
Line 32: |
| | {{Void}} = {{#var:region}} | | | {{Void}} = {{#var:region}} |
| | {{{2|}}} | | | {{{2|}}} |
| }}</onlyinclude> | | }}<noinclude> |
| | | {{Documentation}} |
| ==Purpose==
| | </noinclude> |
| 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:
| |
| | |
| {{Usage|region}}
| |
| {{Usage/Param|region|One of the region codes in the table below.}}
| |
| | |
| Example: <code><nowiki>{{Region|jp}}</nowiki></code> → {{Region|jp}}
| |
| | |
| ===Language===
| |
| To identify a region's language similarly to above, add "language" as an additional argument.
| |
| | |
| {{Usage|region|'''language'''}}
| |
| {{Usage/Param|region|One of the region codes in the table below.}}
| |
| {{Usage/Param|language|"language" tells the template to display the name of that region's language.}}
| |
| | |
| Example: <code><nowiki>{{Region|jp|language}}</nowiki></code> → {{Region|jp|language}}
| |
| | |
| ===Release Date===
| |
| For release dates, specify the year, month, and day like so:
| |
| | |
| {{Usage|region|y{{=}}|m{{=}}|d{{=}}}}
| |
| {{Usage/Param|region|One of the region codes in the table below.|optional}}
| |
| {{Usage/Param|y, m, d|Year, Month, and Day, respectively.|optional}}
| |
| | |
| Example: <code><nowiki>{{Region|jp|y=2013|m=1|d=29}}</nowiki></code> → {{Region|jp|y=2013|m=1|d=29}}
| |
| | |
| ===Other===
| |
| To display just the flag alongside other information, place that other information in the template.
| |
| | |
| {{Usage|region|information}}
| |
| {{Usage/Param|region|One of the region codes in the table below.}} | |
| {{Usage/Param|information|Information pertaining to that region.}}
| |
| | |
| Example: <code><nowiki>{{Region|jp|Japan-specific information}}</nowiki></code> → {{Region|jp|Japan-specific information}}
| |
| | |
| ==Region Codes==
| |
| {|class="wikitable"
| |
| ! 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
| |
| |}
| |
| | |
| | |
| {{Cat|Formatting Templates}}
| |