Template:Clickable Button

From Moegirlpedia
Revision as of 06:14, 29 February 2024 by 6116G (talk | contribs) (Created page with "{{#vardefine:text|<span class="mw-ui-button {{#switch: {{{tone|}}} | red = mw-ui-destructive | blue = mw-ui-progressive |}} {{{class|}}}" style="background:{{{bgcolor|}}};colo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Button text

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]
Cat ico20.png
This template was originally from page Template:Clickable Button in Chinese Moegirlpedia, and the license might be different from English Moegirlpedia. The contents might differ after being modified by different users on both sides. For more information, see Moegirlpedia:Copyrights.

A template for a clickable button in Mediawiki style to other pages.

Syntax

  • {{Clickable Button|bgcolor=#A5E4A5|Mainpage}} Button to an internal link "Mainpage" with color scheme of Moegirlpedia
  • {{Clickable Button|link=external|font=red|https://en.wikipedia.org|To Wikipedia}} Button to an external link Wikipedia read "To Wikipedia" in red.

Parameters

  • link= Type of link:
    • external for an external link
    • none for no links
    • default for an internal link
  • 1= Full name of an internal link or full URL (started with http(s)) of an external link.
  • 2= Text on the button. Value of Parameter 1 is used when empty.
  • font= Text color. Color code supported.
  • bgcolor= Background color. Color code supported.
  • tone= Background color using the style of Mediawiki.
    • red to imply a destructive operation
    • blue to imply a progressive operation
    • default to imply an operation with a neutral tone

Do not specify parameters bgcolor and tone at the same time.

  • class= Class of the button.