Difference between revisions of "Template:Lang"

From RobotX
Jump to navigation Jump to search
(Undid revision 884933270 by Swarm (talk) Unnecessary, auto-generated by Template:Documentation)
 
m (1 revision imported)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:lang|lang}}</includeonly><noinclude>
+
<span lang="{{{1}}}" {{#if:{{{rtl|}}}|dir="rtl"}}>{{{text|{{{2}}}}}}</span>{{category handler
{{Documentation}}
+
|main = [[Category:Articles containing {{#switch:{{{1|}}}
 +
  |en|eng  = explicitly cited English
 +
  |#default = {{#ifexist:Category:Articles containing {{#language:{{{1|undefined}}}|en}}-language text
 +
    |{{#language:{{{1|undefined}}}|en}}
 +
    |non-English
 +
    }}
 +
  }}-language text]]
 +
|nocat = {{{nocat|}}}
 +
}}<noinclude>
 +
{{ {{TNTN|Documentation}} }}<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Language code",
 +
"example": "en",
 +
"type": "string",
 +
"required": true
 +
},
 +
"rtl": {
 +
"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 03:18, 18 January 2020

{{{2}}}

Template documentation[create]

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