Difference between revisions of "Template:Lang-sco/sandbox"
imported>WOSlinker m (use html for italics) |
imported>WOSlinker m (go back to wiki style for italics) |
||
| Line 1: | Line 1: | ||
| − | {{Language with name|sco|{{#if:{{{abbr|}}}|{{{abbr|}}}|Scots}}|{{#if:{{{i|}}}|{{{1}}}| | + | {{Language with name|sco|{{#if:{{{abbr|}}}|{{{abbr|}}}|Scots}}|{{#if:{{{i|}}}|{{{1}}}|''{{{1}}}''}}|links={{#if:{{{links|{{{link|{{{l|}}}}}}}}}|no|{{#if:{{{abbr|}}}|no|yes}}}}}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
<!--Categories and interwikis go on the /doc page.--> | <!--Categories and interwikis go on the /doc page.--> | ||
</noinclude> | </noinclude> | ||
Revision as of 12:52, 17 October 2017
Scots: [{{{1}}}] error: {{lang}}: text has italic markup (help)
| This is the template sandbox page for Template:Lang-sco (diff). See also the companion subpage for test cases. |
| This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
| This template uses Lua: |
Usage
| code | sco |
|---|---|
| rtl | no |
| style: italic | |
This template is used inline in article prose or in tables and lists to indicate that the text in the first parameter is in the Scots language (also known as Auld Scots Tongue, Broad Scots or Braid Scots, with various dialects). It automatically italicizes the content by default as something other than Modern English.
{{lang-sco|1=|Scots content here}}
The |1= part is optional, if the Scots content does not contain the character "=".
For subsequent occurrences in the same page, the link to the language name should be turned off with |link=n or |link=no:
{{lang-sco|1=more Scots content here|link=n}}
Other dialects, and phases, can be indicated simply by prepending their names, linked or not:
[[Ulster Scots|Ulster]]{{lang-sco|1=Ulster Scots content here}}[[Doric]]{{lang-sco|1=Doric Scots content here}}Early{{lang-sco|1=Early Scots content here}}
Such variants are not independently supported with their own lang-xxx templates.
For subsequent occurrences in the same passage (e.g., a series of Ulster Scots to Modern English translations) it may be helpful to also abbreviate the dialect name display with, e.g., |abbr=USc:
{{lang-sco|1=another Ulster Scots example here|abbr=USc}}
Doing so automatically also disables the language name link, as if |l=n had been specified.
Parameters
{{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}}
See also
- {{lang-en-em}} for Early Modern English
- {{lang-enm}} for Middle English
- {{lang-ang}} for Old English (Anglo-Saxon)
| The above documentation is transcluded from Template:Lang-sco/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |