Changes

Jump to navigation Jump to search
{{Documentation subpage}}
{{Never substitute}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
Example: {{tlx|If IP|text for IP users|text for logged in users}}

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 IP",
"description": "Wikitext to display if user is not logged in",
"type": "content",
"suggested": true,
"aliases": [
"yes"
]
},
"2": {
"label": "If user",
"description": "Wikitext to display if user is logged in",
"type": "content",
"suggested": true,
"aliases": [
"no"
]
},
"tag": {
"description": "Changes the HTML tag used",
"example": "div",
"default": "span"
}
},
"description": "Displays wikitext based on whether or not a user is logged in."
}
</templatedata>

==See also==
*[[Template:IsIPAddress]]
*[[Template:Must log in]] – wrapper that instructs logged out users that they must log in to proceed

{{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