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

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(doc)
 
imported>Sdkb
m (ce)
 
Line 17: Line 17:
 
"2": {
 
"2": {
 
"label": "If not autoconfirmed",
 
"label": "If not autoconfirmed",
"description": "Wikitext to display if user is not autonconfirmed (includes IPs)",
+
"description": "Wikitext to display if user is not autoconfirmed (includes IPs)",
 
"type": "content",
 
"type": "content",
 
"suggested": true
 
"suggested": true

Latest revision as of 08:00, 13 December 2020

Usage

Example: {{If autoconfirmed|text for autoconfirmed users|text for non-autoconfirmed users}}

By default, <span>...</span> tags are used to wrap the specified content. |tag=div can be used if the content contains block-level elements.

TemplateData

Displays wikitext based on whether or not a user is autoconfirmed.

Template parameters

ParameterDescriptionTypeStatus
If autoconfirmed1

Wikitext to display if user is autoconfirmed

Contentsuggested
If not autoconfirmed2

Wikitext to display if user is not autoconfirmed (includes IPs)

Contentsuggested
Tagtag

Changes the HTML tag used

Default
span
Example
div
Unknownoptional

See also