Difference between revisions of "Template:Lang-en-US"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(Merging in functionality of Template:Lang-en-US2 as a parameter.)
imported>Trappist the monk
m (→‎top: revise initial style for certain {{lang-xx}} templates; using AWB)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{paren|}}}
+
<includeonly>{{#invoke:lang|lang_xx_inherit
|{{Language with name2|en-US|{{{var|American}}} English|{{{1}}}|links={{#if:{{{links|}}}|no|yes}} }}
+
|code=en-US
|{{Language with name|en-US|{{{var|American}}} English|{{{1}}}|links={{#if:{{{links|}}}|no|yes}} }}
+
}}</includeonly><noinclude>
}}<noinclude>
 
  
 
{{Documentation|content=
 
{{Documentation|content=
 +
{{COinS safe|n}}
 +
{{lua|Module:lang}}
 +
 
==Usage==
 
==Usage==
 
{{Lang-en-XX usage|1=Everyone should come over and we'll eat hotdogs and watch football on TV.}}
 
{{Lang-en-XX usage|1=Everyone should come over and we'll eat hotdogs and watch football on TV.}}
 
To name a more specific regional variety, such as Southern American English, use the {{para|var}} parameter:
 
*{{tlx|Lang-en-US|1{{=}}Y'all come on over and we'll eat hotdogs and watch football on TV|'''var{{=}}Southern American'''}}<br />
 
*{{Lang-en-US|1=Y'all come on over and we'll eat hotdogs and watch football on TV|var=Southern American}}
 
The {{var|var}} value {{em|must}} exist as an article or redirect of the form "{{var|Var}} English language", e.g. [[Scottish English language]], resolving to an article on that variety, or a redirect to [[American English]] or a section thereof.  If such an article exists, but at a different name, e.g. [[New England English]], you have to ensure that a redirect to it exists at [[New England English language]]. Do not abuse the template to refer to dialects outside the United States.
 
 
To give the dialect name parenthetically {{em|after}} the content, use the {{para|paren}} parameter:
 
*{{tlx|Lang-en-US|1{{=}}second story|paren{{=}}y}} or {{tlx|Lang-en-GB|1{{=}}first storey|paren{{=}}y}}
 
*{{Lang-en-US|1=second story|paren=y}} or {{Lang-en-GB|1=first storey|paren=y}}
 
  
 
==See also==
 
==See also==

Latest revision as of 16:28, 31 December 2017


Template documentation

Usage

settings
code en-US
style: inherit

This template is used to identify (in HTML metadata) that the text enclosed within the template is written in a specific national English-language dialect, and to preface it with a link to the article on that variety. It is most commonly used:

  • In glossaries, when presenting two regional variations of a term sharing the same definition (e.g. tire vs. tyre, aluminium vs. aluminum)
  • When giving alternative names for an article's topic, in the lead section
  • When demonstrating differences between dialectal usages in language articles.

This template does not italicize the output, since English dialects are not foreign languages.

It is never used to mark entire articles or sections of articles as being written in a particular variety of English.

Do not use it to indicate a general English example among other-language examples.

Parameters

{{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}}

Parameters and examples

Basic usage:

  • {{Lang-en-US|1=Everyone should come over and we'll eat hotdogs and watch football on TV.}}
  • American English: Everyone should come over and we'll eat hotdogs and watch football on TV.

To not link the name again (i.e., because it's already been linked in the same article or same long-article section), use |links=no or |link=no:

  • {{Lang-en-US|1=Everyone should come over and we'll eat hotdogs and watch football on TV. |link=no}}
  • American English: Everyone should come over and we'll eat hotdogs and watch football on TV.

[[Category:Lang-x templates|]]

See also