Template:Lang-x/doc/parameters: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Trappist the monk create; |
meta>Trappist the monk +lang; |
||
| Line 28: | Line 28: | ||
|- | |- | ||
|italic || <code>yes</code> (default) renders '''text''' in italic font; overrides '''script'''; accepted values are: <code>no</code>, <code>yes</code> || – || | |italic || <code>yes</code> (default) renders '''text''' in italic font; overrides '''script'''; accepted values are: <code>no</code>, <code>yes</code> || – || | ||
|- | |||
|size || specifies size of '''text''' rendering; use value suitable for use with the CSS <code>font-size</code> property || – || | |||
|- | |- | ||
|nocat || <code>yes</code> inhibits automatic categorization; accepted values are: <code>no</code> (default), <code>yes</code> || – || | |nocat || <code>yes</code> inhibits automatic categorization; accepted values are: <code>no</code> (default), <code>yes</code> || – || | ||
| Line 33: | Line 35: | ||
|} | |} | ||
<section end=lang_xx_parameters /> | <section end=lang_xx_parameters /> | ||
<section begin=lang_parameters /><!-- {{#lst:Template:Lang-x/doc/parameters|lang_parameters}} --> | |||
{| class="wikitable" | |||
|+lang-xx supported parameters | |||
!parameter !! definition !! yields to !! alias | |||
|- | |||
|code || [[IETF language tag]] for '''text''' || – || <code><nowiki>{{{2}}}</nowiki></code> | |||
|- | |||
|text || non-English '''text''' || – || <code><nowiki>{{{2}}}</nowiki></code> | |||
|- | |||
|rtl || <code>yes</code> indicates that the writing system used for '''text''' is right-to-left; accepted values are: <code>no</code> (default), <code>yes</code> || IETF script subtag in '''code''' (if provided) || | |||
|- | |||
|italic || <code>yes</code> (default) renders '''text''' in italic font; overrides IETF script subtag in '''code''' (if provided); accepted values are: <code>no</code>, <code>yes</code> || – || | |||
|- | |||
|size || specifies size of '''text''' rendering; use value suitable for use with the CSS <code>font-size</code> property || – || | |||
|- | |||
|nocat || <code>yes</code> inhibits automatic categorization; accepted values are: <code>no</code> (default), <code>yes</code> || – || | |||
|- | |||
|} | |||
<section end=lang_parameters /> | |||
Revision as of 13:44, 1 December 2017
<section begin=lang_xx_parameters />
| parameter | definition | yields to | alias |
|---|---|---|---|
| text | non-English text | – | {{{1}}}
|
| translit | Latin script transliteration of text | – | |
| translit-std | standard used for the transliteration of translit; accepted values are: ISO, DIN, IAST, ALA, ALA-LC |
– | |
| translit-script | transliteration standard's script identifier | – | |
| translation | literal English translation of text | – | lit |
| 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 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 text uses more than one writing system; always four alpha characters; Latn 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 text is right-to-left; accepted values are: no (default), yes |
script | |
| italic | yes (default) renders text in italic font; overrides script; accepted values are: no, yes |
– | |
| size | specifies size of text rendering; use value suitable for use with the CSS font-size property |
– | |
| nocat | yes inhibits automatic categorization; accepted values are: no (default), yes |
– |
<section end=lang_xx_parameters />
<section begin=lang_parameters />
| parameter | definition | yields to | alias |
|---|---|---|---|
| code | IETF language tag for text | – | {{{2}}}
|
| text | non-English text | – | {{{2}}}
|
| rtl | yes indicates that the writing system used for text is right-to-left; accepted values are: no (default), yes |
IETF script subtag in code (if provided) | |
| italic | yes (default) renders text in italic font; overrides IETF script subtag in code (if provided); accepted values are: no, yes |
– | |
| size | specifies size of text rendering; use value suitable for use with the CSS font-size property |
– | |
| nocat | yes inhibits automatic categorization; accepted values are: no (default), yes |
– |
<section end=lang_parameters />