FANDOM


Go on

Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Button]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
Description
This creates a blue button by default.
It is a simplified version of the Clickable button 2 in Wikipedia.
Syntax
There are several variables for customization.
  • background= <plain background colour of button>
  • gradient= <gradient background colour of button, override background= >
  • link= <internal link redirected by the button>
  • elink= <external link redirected by the button, must start with http://>
  • text= <text shown in button>
Example
  • Normal example
{{button|link=Templates Wiki|text=Templates Wiki}}

gives Templates Wiki


{{button|elink=http://www.google.com|text=Google}}

gives Google




  • Plain blue color preset
{{button|blue|link=Templates Wiki|text=Templates Wiki}}

gives Templates Wiki


  • Plain red color preset
{{button|red|link=Templates Wiki|text=Templates Wiki}}

gives Templates Wiki




  • Customisable gradient color
{{button|gradient=#DA5751, #911AAB|link=Templates Wiki|text=Templates Wiki}}

gives Templates Wiki


  • Customisable plain color
{{button|background=#911AAB|gradient=none|link=Templates Wiki|text=Templates Wiki}}

gives Templates Wiki

Community content is available under CC-BY-SA unless otherwise noted.