Jump to content

Template:Badge: Difference between revisions

badge
badge
From OkayXairen Wiki
imported>Jasedxyz
No edit summary
imported>Jasedxyz
try using https://www.mediawiki.org/wiki/Help:Page_status_indicators
Line 1: Line 1:


[[File:{{{icon|Radioactivity.svg}}}|32px|{{{hover|badge}}}|frameless|right|link={{{link|Template:Badge/doc}}}]]
<indicator name="{{{name}}}">[[File:{{{icon|Radioactivity.svg}}}|32px|{{{hover|badge}}}|frameless|right|link={{{link|Template:Badge/doc}}}]]</indicator>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 25: Line 25:
"type": "url",
"type": "url",
"default": "Template:Badge/doc"
"default": "Template:Badge/doc"
},
"name": {
"label": "Name",
"description": "Name of the badge",
"example": "Radioactive",
"type": "string",
"required": true
}
}
},
},
"description": "Adds a badge to the right (probably)",
"description": "Adds a badge to the right (probably)",
"format": "inline"
"format": "inline",
"paramOrder": [
"name",
"icon",
"hover",
"link"
]
}
}
</templatedata>
</templatedata>

Revision as of 20:54, 11 January 2026


Adds a badge to the right (probably)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the badge

Example
Radioactive
Stringrequired
Iconicon

Badge's icon

Default
Radioactivity.svg
Example
Radioactivity.svg
Filerequired
Hover texthover

Text that shows when you hover over the icon

Example
This page is RADIOACTIVE!
Stringsuggested
Linklink

Link that the badge will link you to

Default
Template:Badge/doc
URLoptional