We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

Template:Button

From Don't Starve Wiki
Jump to: navigation, search

Go on


Template-info.svg Documentation The documentation below is transcluded from Template:Button/doc. (edit | history)
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=Wiki Templates|text=Templates Wiki}}

gives Templates Wiki

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

gives Google




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

gives Templates Wiki

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

gives Templates Wiki




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

gives Templates Wiki

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

gives Templates Wiki