Permanently protected template

Template:Clickable button

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Button text

Template documentation[view] [edit] [history] [purge]

This template creates an area with the visual appearance of a button. This area can be placed inside a wikilink to give the link the appearance of a button, and expand its clickable size and tap target.

There are two editable parameters. The first one, an unnamed one, sets the text inside the area.

Examples:

  • {{Clickable button|This looks like a button}} produces This looks like a button
  • [[Talk:Main page|{{Clickable button|Main page talk page}}]] produces Main page talk page

The other one, named "color", allows you to change the color of the area. You can select between three colors: white (default), blue and red.

To change the color of the area, you have to add the color parameter followed by the color name, like this: {{clickable button|Text|color=blue}}.

Examples:

  • white (default):
    Button text
  • blue aka. progressive:[note 1]
    Button text
  • red aka. destructive:
    Button text

Notes

  1. ^ After the changes outlined in Phabricator task T110555 were implemented, {{Clickable button|color=green}} produces the same output as {{Clickable button|color=blue}}.