Module:Engvar/doc

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 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 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".
 * engvar

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.
 * engvarCatSort


 * Maintenance category:
 * Category:Articles using an unknown Template:Engvar option

Parameter list
In the
 * defaultWord =
 * defaultLang =
 * engvar =
 * en-XX =
 * en-YY =
 * engvarCat =

In the parameter list, for the editor to see & use:
 * engvar =
 * engvarCat =

List of variant languages
In the template code only use the listed ISO-code as parameter name: vapour. The article editor has freedom to use the other options: British.


 * HELP:ENGVAR
 * Category:Articles using an unknown Template:Engvar option
 * ISO 3166-1 alpha-2 2-letter country code