Template:Lang-x/doc/parameters

From Zoophilia Wiki
Revision as of 16:54, 25 December 2017 by meta>Trappist the monk (+ lang |italic= parameter operation table;)
Jump to navigationJump to search

<section begin=lang_xx_parameters />

lang-xx supported parameters
parameter definition yields to alias
text non-English text {{{1}}}
translit Latin script transliteration of text {{{2}}}
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, {{{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 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 />

lang supported parameters
parameter definition yields to alias
code IETF language tag for text {{{1}}
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 see table lang |italic= parameter operation; accepted values are: yes, no, unset, default
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
lang |italic= parameter operation
|italic= value description example code result
  • parameter not present;
  • parameter present, not set;
  • invalid value
  • applies default (upright) style;
  • yields to script subtag latn;
  • invalid values treated as default
{{lang|ru|тундра}} тундра
{{lang|ru-latn|tûndra}} tûndra
default {{lang|ru|тундра|italic=default}} тундра
{{lang|ru-latn|tûndra|italic=default}} tûndra
no
  • applies upright style;
  • overrides script subtag latn
{{lang|ru|тундра|italic=no}} тундра
{{lang|ru-latn|tûndra|italic=no}} tûndra
yes
  • applies italic style;
  • ignores script subtag latn
{{lang|ru|тундра|italic=yes}} тундра
{{lang|ru-latn|tûndra|italic=yes}} tûndra
unset
  • applies no style;
  • overrides script subtag latn;
  • inherits style from external markup
{{lang|ru|тундра|italic=unset}} тундра
''{{lang|ru|тундра|italic=unset}}'' тундра
{{lang|ru-latn|tûndra|italic=unset}} tûndra
''{{lang|ru-latn|tûndra|italic=unset}}'' tûndra

<section end=lang_parameters />