From Brotato Wiki

(Darkly77 moved page Template:LinkButton to Template:ExternalLinkButton: rename to "ExternalLinkButton" instead of "LinkButton", this new name is more declarative and opens up "LinkButton" for use with internal wiki links)
Tag: New redirect
 
(improve docs)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:ExternalLinkButton]]
<onlyinclude><includeonly><!--
--><span class="btn btn--link">[[{{{name|{{{1|}}}}}}|{{{text|{{{2|{{{name|{{{1|}}}}}}}}}}}}]]</span><!--
--></includeonly></onlyinclude><noinclude>
Insert a link styled like a button.
 
''See also: [[Template:ExternalLinkButton|ExternalLinkButton]] (for external links).''
 
== Example ==
 
<pre style="display: inline-block;">
{{LinkButton|PAGE_NAME|TEXT}}
 
{{LinkButton|Items|View Items}}
</pre>
 
{{LinkButton|Items|View Items}}
 
 
<templatedata>
{
"params": {
"name": {
"aliases": [
"1"
],
"label": "Page Name",
"example": "Items",
"type": "string",
"required": true,
"suggested": true
},
"text": {
"aliases": [
"2"
],
"label": "Text",
"example": "My Link",
"type": "string",
"required": false,
"suggested": true
}
},
"format": "inline"
}
</templatedata></noinclude>

Latest revision as of 14:39, 20 December 2022

Insert a link styled like a button.

See also: ExternalLinkButton (for external links).

Example

{{LinkButton|PAGE_NAME|TEXT}}

{{LinkButton|Items|View Items}}

View Items


No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page Namename 1

no description

Example
Items
Stringrequired
Texttext 2

no description

Example
My Link
Stringsuggested