• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Use/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Use


This is the template sandbox page for Template:Use (diff).
Template documentation[view] [edit] [history] [purge]
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|def|date=MM YYYY}}

  • abc represents either mdy or dmy. The first parameter controls only the datevar template, but may be left blank.
  • def represents a country code from the table below for engvar. 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|mdy|in|date=January 2001}} returns {{Use mdy dates|date=January 2001}}{{Use Indian English|date=January 2001}}.

Accepted abbreviations
Code Outputs Country
mdy {{Use mdy dates}} —
dmy {{Use dmy dates}} —
au {{Use Australian English}} Australia
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
ug {{Use Ugandan English}} Uganda
us {{Use American English}} United States
The above documentation is transcluded from Template:Use/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Use/sandbox&oldid=1180497121"
Last edited on 17 October 2023, at 00:32

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 17 October 2023, at 00:32 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop