Difference between revisions of "Template:If IP/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(Creating documentation)
 
imported>Sdkb
(→‎Usage: adding example)
Line 2: Line 2:
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
 
+
Example: {{tlx|If IP|text for IP users|text for logged in users}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
Line 18: Line 18:
 
"2": {
 
"2": {
 
"label": "If user",
 
"label": "If user",
"description": "Wikitext to display if user is logged in"
+
"description": "Wikitext to display if user is logged in",
 +
"type": "content"
 
}
 
}
 
},
 
},

Revision as of 07:52, 16 June 2020

Usage

Example: {{If IP|text for IP users|text for logged in users}}


Displays wikitext based on whether or not a user is logged in.

Template parameters

ParameterDescriptionTypeStatus
If IP1

Wikitext to display if user is not logged in

Contentoptional
If user2

Wikitext to display if user is logged in

Contentoptional