Changes

Jump to navigation Jump to search
don't substitute
{{Documentation subpage}}
{{Never substitute}}
== Usage ==
Example: {{tlx|If administrator|text for administrators|text for non-administrators}}

By default, {{tag|span}} tags are used to wrap the specified content. {{para|tag|div}} can be used if the content contains block-level elements.

==TemplateData==
<templatedata>
{
"params": {
"1": {
"label": "If administrator",
"description": "Wikitext to display if user is an administrator",
"type": "content",
"suggested": true
},
"2": {
"label": "If not administrator",
"description": "Wikitext to display if user is not an administrator",
"type": "content",
"suggested": true
},
"tag": {
"description": "Changes the HTML tag used",
"example": "div",
"default": "span"
}
},
"description": "Displays wikitext based on whether or not a user is an administrator."
}
</templatedata>

==See also==
*[[Wikipedia:User access levels]]

{{Namespace and pagename-detecting templates|state=collapsed}}

<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:If-then-else templates]]
}}</includeonly>
Anonymous user

Navigation menu