Template:Button: Difference between revisions
m (Update usage docs) |
mNo edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <noinclude>{{Internal page with issues |text=This template is only used on the old main page. Maybe it should be deleted.}}</noinclude> | ||
<span class="button"> | <includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly> | ||
[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]] | |||
</span> | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"image": { | "image": { | ||
"label": " | "label": "Button icon", | ||
"description": "Name of image | "aliases": [ | ||
"example": " | "icon" | ||
], | |||
"description": "Name of image that will be used as button icon", | |||
"example": "Fediverse logo.png", | |||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"default": "CC-devnations.png", | "default": "CC-devnations.png", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"target": {}, | "target": { | ||
"label": {} | "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 | |||
} | |||
}, | }, | ||
"description": "Button template allows to create distinct, graphic buttons linking to internal and external pages. | "format": "inline", | ||
"description": "Button template allows to create distinct, graphic buttons linking to internal and external pages." | |||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
</noinclude> |
Latest revision as of 19:26, 11 February 2024
This page has issues! This template is only used on the old main page. Maybe it should be deleted. |
Button template allows to create distinct, graphic buttons linking to internal and external pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button icon | image icon | Name of image that will be used as button icon
| File | suggested |
Button URL | target url address | Target URL of a website that the button links to
| URL | required |
Button text | label text content title | Text to be displayed on the button, a title
| String | required |