Template:Clickable button

From MLM Library
Jump to: navigation, search

Button text

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

This template creates a clickable button. There are two editable parameters. The first one, an unnamed one, is used to create the text of the button. It can support wikilinks.

Examples:

{{Clickable button|This is a button}}

produces This is a button

{{Clickable button|[[Talk:Main page|Main page talk page]]}}

produces Main page talk page

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

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

Examples:

  • white (default):

Button text

Button text

  • red:

Button text

Notes

1 }}
     | references-column-width 
     | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 
   | {{#iferror: {{#ifexpr: 1 > 1 }}
     | Template:Column-width
     | Template:Column-count }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: note
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = note
   | #default = decimal}};">
  1. After the changes outlined in Phabricator task {{#ifeq:T|T |T110555 |TT110555 }} were implemented, {{Clickable button|color=green}} produces the same output as {{Clickable button|color=blue}}.