Template:Use/doc
Appearance
![]() | This is a documentation subpage for Template:Use. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template should not be substituted. |
This is a wild-card template created based on this Redirects for discussion thread, intended to intuitively adapt to various "use x" templates. It uses the {{#switch:}} parser function.
Usage
[edit]{{Use|abc|date=MM YYYY}}
- abc represents an accepted abbreviation from the table below. The country codes are based on the two-letter ISO country codes.
- MM YYYY represents the full month and year, such as "January 2001".
For example, {{Use|tt|date=January 2001}}
returns {{Use Trinidad and Tobago English|date=January 2001}}
.
Note: This template accepts only one code at a time. Codes for date formats and English varieties must be supplied in separate calls of the template.
Code | Outputs | Country |
---|---|---|
mdy | {{Use mdy dates}} | — |
dmy | {{Use dmy dates}} | — |
au | {{Use Australian English}} | Australia |
bd | {{Use Bangladeshi English}} | Bangladesh |
ca | {{Use Canadian English}} | Canada |
gb | {{Use British English}} | United Kingdom |
gh | {{Use Ghanaian English}} | Ghana |
hi, ir | {{Use Hiberno-English}} | Ireland |
hk | {{Use Hong Kong English}} | Hong Kong |
in | {{Use Indian English}} | India |
jm | {{Use Jamaican English}} | Jamaica |
ke | {{Use Kenyan English}} | Kenya |
lr | {{Use Liberian English}} | Liberia |
ng | {{Use Nigerian English}} | Nigeria |
nz | {{Use New Zealand English}} | New Zealand |
pk | {{Use Pakistani English}} | Pakistan |
ph | {{Use Philippine English}} | Philippines |
sg | {{Use Singapore English}} | Singapore |
sa, za | {{Use South African English}} | South Africa |
lk | {{Use Sri Lankan English}} | Sri Lanka |
tt | {{Use Trinidad and Tobago English}} | Trinidad and Tobago |
tz | {{Use Tanzanian English}} | Tanzania |
ug | {{Use Ugandan English}} | Uganda |
us | {{Use American English}} | United States |