Template:Button: Difference between revisions

From Join the Fediverse
m (Text replacement - "{{category |category=Template}}" to "{{category |category=Templates}}")
Tags: Mobile edit Mobile web edit
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>
<includeonly><span class="button">[[File:{{{image|CC-devnations.png}}}|35px|link={{{target|https://joinfediverse.wiki}}}|{{{label|Button title}}}]]</span></includeonly>
<noinclude>
<templatedata>
<templatedata>
{
{
Line 45: Line 46:
</templatedata>
</templatedata>
{{category |category=Templates}}
{{category |category=Templates}}
</noinclude>

Revision as of 18:06, 11 February 2024


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