Template:Lang View history

(remove unnecessary #switch per protected edit request)
m (17 revisions imported from mediawikiwiki:Template:Lang)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<span lang="{{{1}}}" {{#if:{{{rtl|}}}|dir="rtl"}}>{{{2}}}</span>{{category handler
<span lang="{{{1}}}" {{#if:{{{rtl|}}}|dir="rtl"}}>{{{text|{{{2}}}}}}</span><noinclude>
|main = [[Category:Articles containing {{#switch:{{{1|}}}
{{ {{TNTN|Documentation}} }}<templatedata>
  |en|eng  = explicitly cited English
{
  |#default = {{#ifexist:Category:Articles containing {{ISO 639 name|{{{1|}}}}}-language text
"params": {
    |{{ISO 639 name|{{{1|}}}}}
"1": {
    |non-English
"label": "Language code",
    }}
"example": "en",
  }}-language text]]
"type": "string",
|nocat = {{{nocat|}}}
"required": true
}}<noinclude>
},
{{documentation}}
"rtl": {
<!-- Categories go on the /doc sub-page and interwikis go on Wikidata. -->
"type": "boolean",
"label": "Enable right-to-left direction",
"example": "on"
},
"text": {
"aliases": [
"2"
],
"label": "Text",
"type": "content",
"suggested": true
}
},
"paramOrder": [
"1",
"text",
"rtl"
]
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 10:02, 12 May 2020

{{{2}}}

{{ Template:TNTN }}

No description.

Template parameters

ParameterDescriptionTypeStatus
Language code1

no description

Example
en
Stringrequired
Texttext 2

no description

Contentsuggested
Enable right-to-left directionrtl

no description

Example
on
Booleanoptional