Template:Badge: Difference between revisions
Appearance
imported>Jasedxyz No edit summary |
imported>Jasedxyz it's not working because the parameter is not working for some reason |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:{{{icon|Radioactivity.svg}}}| | <indicator name='{{{name|Badgewithnoname}}}'>[[File:{{{icon|Radioactivity.svg}}}|20px|{{{hover|badge}}}|link={{{link|Template:Badge/doc}}}]]</indicator> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
| Line 19: | Line 19: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | |||
"link": { | |||
"label": "Link", | |||
"description": "Link that the badge will link you to", | |||
"type": "url", | |||
"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> | ||
{{documentation}} | {{documentation}} | ||
[[Category:BadgeTemplates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 21:40, 11 January 2026
Adds a badge to the right (probably)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the badge
| String | required |
| Icon | icon | Badge's icon
| File | required |
| Hover text | hover | Text that shows when you hover over the icon
| String | suggested |
| Link | link | Link that the badge will link you to
| URL | optional |
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]