Template:Lang-x/doc/parameters: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Trappist the monk No edit summary |
meta>SMcCandlish (semantic markup and clarity overhaul) |
||
Line 6: | Line 6: | ||
!parameter !! definition !! yields to !! alias | !parameter !! definition !! yields to !! alias | ||
|- | |- | ||
|text || non-English | |<code>text</code> || non-English text || – || <code><nowiki>{{{1}}}</nowiki></code> | ||
|- | |- | ||
|translit || Latin script transliteration of | |<code>translit</code> || Latin script transliteration of the content in <code>text</code> || – || <code><nowiki>{{{2}}}</nowiki></code> | ||
|- | |- | ||
|translit-std || standard used for the transliteration of | |<code>translit-std</code> || standard used for the transliteration of the value of <code>translit</code>; accepted values are: <kbd>ISO</kbd>, <kbd>DIN</kbd>, <kbd>IAST</kbd>, <kbd>ALA</kbd>, <kbd>ALA-LC</kbd> || – || | ||
|- | |- | ||
|translit-script || transliteration standard's script identifier || – || | |{{nowrap|<code>translit-script</code>}} || transliteration standard's script identifier || – || | ||
|- | |- | ||
|translation || literal English translation of | |<code>translation</code> || literal English translation or gloss of the content in <code>text</code> || – || <code>lit</code>, <code><nowiki>{{{3}}}</nowiki></code> | ||
|- | |- | ||
|link || < | |<code>link</code> || <kbd>yes</kbd> (default) links language name and static text associated with <code>translit</code> and <code>translation</code>; accepted values are: <kbd>no</kbd>, <kbd>yes</kbd> || – || <code>links</code> | ||
|- | |- | ||
|- | |- | ||
|code || [[IETF language tag]] for | |<code>code</code> || [[IETF language tag]] for the content in <code>text</code>; set by the template, overriding the template setting is discouraged || – || | ||
|- | |- | ||
|script || IETF language script subtag; sometimes set by the template when the language of | |<code>script</code> || IETF language script subtag; sometimes set by the template when the language of the content in <code>text</code> uses more than one writing system; always four alpha characters; a value of <kbd>Latn</kbd> <small>({{em|not}} "Latin"!)</small> forces italic rendering unless overridden by <code>italic</code>; overrides <code>rtl</code> || <code>italic</code> || | ||
|- | |- | ||
|region || IETF language region subtag || – || | |<code>region</code> || IETF language region subtag || – || | ||
|- | |- | ||
|variant || IETF language variant subtag || – || | |<code>variant</code> || IETF language variant subtag || – || | ||
|- | |- | ||
|rtl || < | |<code>rtl</code> || <kbd>yes</kbd> indicates that the writing system used for the content in <code>text</code> is right-to-left; accepted values are: <kbd>no</kbd> (default), <kbd>yes</kbd> || <code>script</code> || | ||
|- | |- | ||
|italic || see table | |<code>italic</code> || {{crossref|see table "lang-xx {{pipe}}italic{{=}} parameter operation"}}; accepted values are: <kbd>yes</kbd>, <kbd>no</kbd>, <kbd>unset</kbd>, <kbd>default</kbd> || – || | ||
|- | |- | ||
|size || specifies size of | |<code>size</code> || specifies font size of the content in <code>text</code>; use a value suitable for use with the CSS <code>font-size</code> property; this should almost always be a relative value supplied in <kbd>{{mxt|%}}</kbd> or <kbd>{{mxt|em}}</kbd> units, not a fixed <kbd>{{!mxt|px}}</kbd> value. || – || | ||
|- | |- | ||
|nocat || < | |<code>nocat</code> || <kbd>yes</kbd> inhibits automatic categorization; accepted values are: <kbd>no</kbd> (default), <kbd>yes</kbd> || – || | ||
|- | |- | ||
|} | |} | ||
Line 57: | Line 57: | ||
| <code><nowiki>{{lang-ru|script=latn|tûndra}}</nowiki></code> || {{lang-ru|script=latn|tûndra}} || {{code|{{lang-ru|script=latn|tûndra}}}} | | <code><nowiki>{{lang-ru|script=latn|tûndra}}</nowiki></code> || {{lang-ru|script=latn|tûndra}} || {{code|{{lang-ru|script=latn|tûndra}}}} | ||
|- | |- | ||
|rowspan="3"| < | |rowspan="3"| <kbd>default</kbd> || <code><nowiki>{{lang-ru|тундра|italic=default}}</nowiki></code> || {{lang-ru|тундра|italic=default}} || {{code|{{lang-ru|тундра|italic=default}}}} | ||
|- | |- | ||
| <code><nowiki>{{lang-ru|tûndra|italic=default}}</nowiki></code> || {{lang-ru|tûndra|italic=default}} || {{code|{{lang-ru|tûndra|italic=default}}}} | | <code><nowiki>{{lang-ru|tûndra|italic=default}}</nowiki></code> || {{lang-ru|tûndra|italic=default}} || {{code|{{lang-ru|tûndra|italic=default}}}} | ||
Line 63: | Line 63: | ||
| <code><nowiki>{{lang-ru|script=latn|tûndra|italic=default}}</nowiki></code> || {{lang-ru|script=latn|tûndra|italic=default}} || {{code|{{lang-ru|script=latn|tûndra|italic=default}}}} | | <code><nowiki>{{lang-ru|script=latn|tûndra|italic=default}}</nowiki></code> || {{lang-ru|script=latn|tûndra|italic=default}} || {{code|{{lang-ru|script=latn|tûndra|italic=default}}}} | ||
|- | |- | ||
|rowspan="4"| < | |rowspan="4"| <kbd>no</kbd> ||rowspan="4"| {{plainlist| | ||
*module applies upright style; | *module applies upright style; | ||
*overrides {{para|script|latn}}; | *overrides {{para|script|latn}}; | ||
Line 75: | Line 75: | ||
| <code><nowiki>''{{lang-ru|script=latn|tûndra|italic=no}}''</nowiki></code> || ''{{lang-ru|script=latn|tûndra|italic=no}}'' || {{code|''{{lang-ru|script=latn|tûndra|italic=no}}''}} | | <code><nowiki>''{{lang-ru|script=latn|tûndra|italic=no}}''</nowiki></code> || ''{{lang-ru|script=latn|tûndra|italic=no}}'' || {{code|''{{lang-ru|script=latn|tûndra|italic=no}}''}} | ||
|- | |- | ||
|rowspan="2" | < | |rowspan="2" | <kbd>yes</kbd> ||rowspan="2" | {{plainlist| | ||
*module applies italic style; | *module applies italic style; | ||
*ignores {{para|script|latn}}}} | *ignores {{para|script|latn}}}} | ||
Line 82: | Line 82: | ||
| <code><nowiki>{{lang-ru|script=latn|tûndra|italic=yes}}</nowiki></code> || {{lang-ru|script=latn|tûndra|italic=yes}} || {{code|{{lang-ru|script=latn|tûndra|italic=yes}}}} | | <code><nowiki>{{lang-ru|script=latn|tûndra|italic=yes}}</nowiki></code> || {{lang-ru|script=latn|tûndra|italic=yes}} || {{code|{{lang-ru|script=latn|tûndra|italic=yes}}}} | ||
|- | |- | ||
|rowspan="4"| < | |rowspan="4"| <kbd>unset</kbd> ||rowspan="4"| {{plainlist| | ||
*module applies no style; | *module applies no style; | ||
*inherits style from external markup; | *inherits style from external markup; | ||
Line 104: | Line 104: | ||
!parameter !! definition !! yields to !! alias | !parameter !! definition !! yields to !! alias | ||
|- | |- | ||
|code || [[IETF language tag]] for | |<code>code</code> || [[IETF language tag]] for the content in <code>text</code> || – || <code><nowiki>{{{1}}</nowiki></code> | ||
|- | |- | ||
|text || non-English | |<code>text</code> || non-English text || – || <code><nowiki>{{{2}}}</nowiki></code> | ||
|- | |- | ||
|rtl || < | |<code>rtl</code> || <kbd>yes</kbd> indicates that the writing system used for the content in <code>text</code> is right-to-left; accepted values are: <kbd>no</kbd> (default), <kbd>yes</kbd> || IETF script subtag in <code>code</code> (if provided) || | ||
|- | |- | ||
|italic || see table | |<code>italic</code> || {{crossref|see table "lang {{pipe}}italic{{=}} parameter operation"}}; accepted values are: <kbd>yes</kbd>, <kbd>no</kbd>, <kbd>unset</kbd>, <kbd>default</kbd> || – || | ||
|- | |- | ||
|size || specifies size of | |<code>size</code> || specifies font size of the content in <code>text</code>; use a value suitable for use with the CSS <code>font-size</code> property; this should almost always be a relative value supplied in <kbd>{{mxt|%}}</kbd> or <kbd>{{mxt|em}}</kbd> units, not a fixed <kbd>{{!mxt|px}}</kbd> value. || – || | ||
|- | |- | ||
|nocat || < | |<code>nocat</code> || <kbd>yes</kbd> inhibits automatic categorization; accepted values are: <kbd>no</kbd> (default), <kbd>yes</kbd> || – || | ||
|- | |- | ||
|} | |} | ||
Line 138: | Line 138: | ||
| <code><nowiki>{{lang|ru-latn|tûndra}}</nowiki></code> || {{lang|ru-latn|tûndra}} || {{code|{{lang|ru-latn|tûndra}}}} | | <code><nowiki>{{lang|ru-latn|tûndra}}</nowiki></code> || {{lang|ru-latn|tûndra}} || {{code|{{lang|ru-latn|tûndra}}}} | ||
|- | |- | ||
|rowspan="3"| < | |rowspan="3"| <kbd>default</kbd> || <code><nowiki>{{lang|ru|тундра|italic=default}}</nowiki></code> || {{lang|ru|тундра|italic=default}} || {{code|{{lang|ru|тундра|italic=default}}}} | ||
|- | |- | ||
| <code><nowiki>{{lang|ru|tûndra|italic=default}}</nowiki></code> || {{lang|ru|tûndra|italic=default}} || {{code|{{lang|ru|tûndra|italic=default}}}} | | <code><nowiki>{{lang|ru|tûndra|italic=default}}</nowiki></code> || {{lang|ru|tûndra|italic=default}} || {{code|{{lang|ru|tûndra|italic=default}}}} | ||
Line 144: | Line 144: | ||
| <code><nowiki>{{lang|ru-latn|tûndra|italic=default}}</nowiki></code> || {{lang|ru-latn|tûndra|italic=default}} || {{code|{{lang|ru-latn|tûndra|italic=default}}}} | | <code><nowiki>{{lang|ru-latn|tûndra|italic=default}}</nowiki></code> || {{lang|ru-latn|tûndra|italic=default}} || {{code|{{lang|ru-latn|tûndra|italic=default}}}} | ||
|- | |- | ||
|rowspan="4"| < | |rowspan="4"| <kbd>no</kbd> ||rowspan="4"| {{plainlist| | ||
*module applies upright style; | *module applies upright style; | ||
*overrides auto-italics | *overrides auto-italics | ||
Line 157: | Line 157: | ||
| <code><nowiki>''{{lang|ru|tûndra|italic=no}}''</nowiki></code> || ''{{lang|ru|tûndra|italic=no}}'' || {{code|''{{lang|ru|tûndra|italic=no}}''}} | | <code><nowiki>''{{lang|ru|tûndra|italic=no}}''</nowiki></code> || ''{{lang|ru|tûndra|italic=no}}'' || {{code|''{{lang|ru|tûndra|italic=no}}''}} | ||
|- | |- | ||
|rowspan="2" | < | |rowspan="2" | <kbd>yes</kbd> ||rowspan="2" | {{plainlist| | ||
*module applies italic style; | *module applies italic style; | ||
*ignores auto-italics; | *ignores auto-italics; | ||
Line 165: | Line 165: | ||
| <code><nowiki>{{lang|ru-latn|tûndra|italic=yes}}</nowiki></code> || {{lang|ru-latn|tûndra|italic=yes}} || {{code|{{lang|ru-latn|tûndra|italic=yes}}}} | | <code><nowiki>{{lang|ru-latn|tûndra|italic=yes}}</nowiki></code> || {{lang|ru-latn|tûndra|italic=yes}} || {{code|{{lang|ru-latn|tûndra|italic=yes}}}} | ||
|- | |- | ||
|rowspan="4"| < | |rowspan="4"| <kbd>unset</kbd> ||rowspan="4"| {{plainlist| | ||
*module applies no style; | *module applies no style; | ||
*inherits style from external markup; | *inherits style from external markup; |
Revision as of 12:20, 4 January 2018
lang-xx
<section begin=lang_xx_parameters />
parameter | definition | yields to | alias |
---|---|---|---|
text |
non-English text | – | {{{1}}}
|
translit |
Latin script transliteration of the content in text |
– | {{{2}}}
|
translit-std |
standard used for the transliteration of the value of translit ; accepted values are: ISO, DIN, IAST, ALA, ALA-LC |
– | |
translit-script |
transliteration standard's script identifier | – | |
translation |
literal English translation or gloss of the content in text |
– | lit , {{{3}}}
|
link |
yes (default) links language name and static text associated with translit and translation ; accepted values are: no, yes |
– | links
|
code |
IETF language tag for the content in text ; set by the template, overriding the template setting is discouraged |
– | |
script |
IETF language script subtag; sometimes set by the template when the language of the content in text uses more than one writing system; always four alpha characters; a value of Latn (not "Latin"!) forces italic rendering unless overridden by italic ; overrides rtl |
italic |
|
region |
IETF language region subtag | – | |
variant |
IETF language variant subtag | – | |
rtl |
yes indicates that the writing system used for the content in text is right-to-left; accepted values are: no (default), yes |
script |
|
italic |
– | ||
size |
specifies font size of the content in text ; use a value suitable for use with the CSS font-size property; this should almost always be a relative value supplied in % or em units, not a fixed px value. |
– | |
nocat |
yes inhibits automatic categorization; accepted values are: no (default), yes | – |
|italic= value | description | example code | result | html markup |
---|---|---|---|---|
|
|
{{lang-ru|тундра}} |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> |
{{lang-ru|tûndra}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
{{lang-ru|script=latn|tûndra}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
default | {{lang-ru|тундра|italic=default}} |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> | |
{{lang-ru|tûndra|italic=default}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
{{lang-ru|script=latn|tûndra|italic=default}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
no |
|
{{lang-ru|тундра|italic=no}} |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> |
{{lang-ru|tûndra|italic=no}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
{{lang-ru|script=latn|tûndra|italic=no}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
''{{lang-ru|script=latn|tûndra|italic=no}}'' |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
yes |
|
{{lang-ru|тундра|italic=yes}} |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> |
{{lang-ru|script=latn|tûndra|italic=yes}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
unset |
|
{{lang-ru|тундра|italic=unset}} |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> |
''{{lang-ru|тундра|italic=unset}}'' |
Russian: тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: тундра</syntaxhighlight> | ||
{{lang-ru|script=latn|tûndra|italic=unset}} |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> | ||
''{{lang-ru|script=latn|tûndra|italic=unset}}'' |
Russian: tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">Russian: tûndra</syntaxhighlight> |
<section end=lang_xx_parameters />
lang
<section begin=lang_parameters />
parameter | definition | yields to | alias |
---|---|---|---|
code |
IETF language tag for the content in text |
– | {{{1}}
|
text |
non-English text | – | {{{2}}}
|
rtl |
yes indicates that the writing system used for the content in text is right-to-left; accepted values are: no (default), yes |
IETF script subtag in code (if provided) |
|
italic |
– | ||
size |
specifies font size of the content in text ; use a value suitable for use with the CSS font-size property; this should almost always be a relative value supplied in % or em units, not a fixed px value. |
– | |
nocat |
yes inhibits automatic categorization; accepted values are: no (default), yes | – |
|italic= value | description | example code | result | html markup |
---|---|---|---|---|
|
|
{{lang|ru|тундра}} |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> |
{{lang|ru|tûndra}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
{{lang|ru-latn|tûndra}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
default | {{lang|ru|тундра|italic=default}} |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> | |
{{lang|ru|tûndra|italic=default}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
{{lang|ru-latn|tûndra|italic=default}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
no |
|
{{lang|ru|тундра|italic=no}} |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> |
{{lang|ru|tûndra|italic=no}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
{{lang|ru-latn|tûndra|italic=no}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
''{{lang|ru|tûndra|italic=no}}'' |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
yes |
|
{{lang|ru|тундра|italic=yes}} |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> |
{{lang|ru-latn|tûndra|italic=yes}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
unset |
|
{{lang|ru|тундра|italic=unset}} |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> |
''{{lang|ru|тундра|italic=unset}}'' |
тундра | <syntaxhighlight lang="text" class="" id="" style="" inline="1">тундра</syntaxhighlight> | ||
{{lang|ru-latn|tûndra|italic=unset}} |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> | ||
''{{lang|ru-latn|tûndra|italic=unset}}'' |
tûndra | <syntaxhighlight lang="text" class="" id="" style="" inline="1">tûndra</syntaxhighlight> |
<section end=lang_parameters />