Template:Button: Difference between revisions

From Join the Fediverse
m (Prepared the page for translation)
Tag: Reverted
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<noinclude>{{Internal page with issues |text=This template is only used on the old main page. Maybe it should be deleted.}}</noinclude>
<translate>
<includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly>
<includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly>
<noinclude>
<noinclude>
</translate>
<templatedata>
{{Documentation}}
{
<translate>
"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>
</noinclude>
</noinclude>
</translate>

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Button iconimage icon

Name of image that will be used as button icon

Default
CC-devnations.png
Example
Fediverse logo.png
Filesuggested
Button URLtarget url address

Target URL of a website that the button links to

Default
https://fediverse.town
Example
https://fediverse.town
URLrequired
Button textlabel text content title

Text to be displayed on the button, a title

Default
Fediverse Town Community
Example
Fediverse Town Community
Stringrequired