Template:Btn: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly><span class="plainlinks">{{#if:{{{1|}}}|{{#if:{{{3|}}}|[{{{1}}} <div class="sc-btn">{{{2}}}</div>]|[[{{{1}}}|<div class="sc-btn">{{{2|{{{1}}}}}}</div>]]}}|NO LINK}}</span></includeonly><noinclude>
<includeonly><span class="plainlinks">{{#if:{{{1|}}}|{{#ifeq:{{{3|}}}|e|[{{{1}}} <div class="sc-btn">{{{2|{{{1}}}}}}</div>]|[[{{{1}}}|<div class="sc-btn">{{{2|{{{1}}}}}}</div>]]}}|NO LINK}}</span></includeonly><noinclude>
{{Doc}}
{{Doc}}
[[Category:Universal]]
[[Category:Universal]]
</noinclude>
</noinclude>

Latest revision as of 20:38, 29 May 2023

Template DocumentationEdit This Documentation

Syntax

{{btn|LINK|LABEL|e}}

Arguments:

  1. LINK: The page name or external URL to link to.
  2. LABEL: The text to show in the button, will use the link text if not supplied-
  3. e: Set "e" at the end of the template if linking to an external URL, it will look broken otherwise.

Examples

Internal Link

{{btn|Help:Editing|Help Page}}

External Link

{{btn|https://supercombo.gg|supercombo.gg|e}}
supercombo.gg

This documentation is automatically transcluded from Template:Btn/Documentation and is not included when this page is transcluded.