Jump to content

Template:Button: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly>{{category |category=Template}}
<includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly>
<templatedata>
{
"params": {
"image": {
"label": "Button icon",
"aliases": [
"icon"
],
"description": "Name of image that will be used as button icon",
"example": "Fediverse logo.png",
"type": "wiki-file-name",
"default": "CC-devnations.png",
"suggested": true
},
"target": {
"label": "Button URL",
"aliases": [
"url",
"address"
],
"description": "Target URL of a website that the button links to",
"example": "https://fediverse.town",
"type": "url",
"default": "https://fediverse.town",
"required": true
},
"label": {
"label": "Button text",
"type": "string",
"aliases": [
"text",
"content",
"title"
],
"description": "Text to be displayed on the button, a title",
"example": "Fediverse Town Community",
"default": "Fediverse Town Community",
"required": true
}
},
"format": "inline",
"description": "Button template allows to create distinct, graphic buttons linking to internal and external pages."
}
</templatedata>
{{category |category=Template}}