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

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(doc for tag param)
imported>Sdkb
m (suggested params)
Line 11: Line 11:
 
"label": "If IP",
 
"label": "If IP",
 
"description": "Wikitext to display if user is not logged in",
 
"description": "Wikitext to display if user is not logged in",
"type": "content"
+
"type": "content",
 +
"suggested": true
 
},
 
},
 
"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"
+
"type": "content",
 +
"suggested": true
 
},
 
},
 
"tag": {
 
"tag": {

Revision as of 07:54, 13 December 2020

Usage

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

TemplateData

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

Contentsuggested
If user2

Wikitext to display if user is logged in

Contentsuggested
Tagtag

Changes the HTML tag used

Default
span
Example
div
Unknownoptional

See also