Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Engvar/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This module allows an article to show a '''national variant of English''' ([[WP:ENGVAR]]) in templates, depending on individual article preference. Basically, the article page infobox can have {{para|engvar|en-GB}} set to show en-GB spelling. For example, a single template can show "football" text in en-UK articles, and "soccer" in en-US articles. ==Usage== See {{tl|Engvar}}. <pre> {{#invoke:Engvar|variants | defaultWord = | engvar = {{{engvar|}}}<!-- Pass through article setting --> | defaultLang = | en-XX = <!-- Add country code for XX, and its word --> | en-YY = <!-- Add more variants as might be needed --> | engvarCat = {{{engvarCat|}}} | engvarCatSort = }} </pre> ;{{para|engvar}} This input (user input) is checked against a list of possible words ("en-US, American English, United States"). Internal identifier is the code like "en-US". ;{{para|engvarCatSort}} Sort text for maintenance category. Advise to set to project name like "rainbow" not "infobox rainbow" (all templates will fill this category!). Default is pagename. ;Maintenance category: *[[:Category:Articles using an unknown Template:Engvar option]] ==Parameter list== In the <pre> | defaultWord = | defaultLang = | engvar = {{{engvar|}}}<!-- Pass through the editor's choice --> | en-XX = <!-- add country code for XX, and the nation language word --> | en-YY = <!-- add more variants as might be needed --> | engvarCat = {{{engvarCat|}}} <!-- yes/no; '=no' will suppress message category in article page) --> </pre> In the parameter list, for the editor to see & use: <pre> | engvar = | engvarCat = </pre> ==List of variant languages== In the ''template code'' only use the listed ISO-code as parameter name: {{para|en-UK|vapour}}. The ''article editor'' has freedom to use the other options: {{para|engvar|British}}. {| class="wikitable sortable collapsible uncollapsed" style="min-width:50%;" ! Language ! ISO-code |- | [[American English]] | en-US |- | [[Australian English]] | en-AU |- | [[British English]] | en-GB |- | [[Canadian English]] | en-CA |- | [[Hiberno-English]] (Irish-English) | en-EI |- | [[Hong Kong English]] | en-HK |- | [[Indian English]] | en-IN |- | [[Jamaican English]] | en-JM |- | [[Malawian English]] | en-MW |- | [[New Zealand English]] | en-NZ |- | [[Nigerian English]] | en-NG |- | [[Pakistani English]] | en-PK |- | [[Philippine English]] | en-PH |- | [[Scottish English]] | en-SCO |- | [[Singapore English]] | en-SG |- | [[South African English]] | en-ZA |- | [[Trinidadian English]] | en-TT |- | {{hidden sort key|_Oxford}}British English [[Oxford spelling]]<br/>British (Oxford) English<br/>''[[Oxford English Dictionary]]'' (OED) | {{hidden sort key|_Oxford}}en-OED |- | {{hidden sort key|_IUPAC}}IUPAC spelling | {{hidden sort key|_IUPAC}}en-IUPAC |} *[[HELP:ENGVAR]] *[[:Category:Articles using an unknown Template:Engvar option]] *[[ISO 3166-1 alpha-2]] 2-letter country code <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:Varieties of English templates|*, {{PAGENAME}}]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Hidden sort key
(
edit
)
Template:Para
(
edit
)
Template:Tl
(
edit
)