Difference between revisions of "Template:Clickable button/doc"

From blackwiki
Jump to navigation Jump to search
imported>Awesome Aasim
m (typo)
imported>TheDJ
(hmm. we should fix this. These colors are not set in stone and can be skin dependent. They don't have colors, but are progressive and/or destructive.)
Line 21: Line 21:
 
{{Clickable button|color=white}}
 
{{Clickable button|color=white}}
  
*blue:<ref group="note">After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button|color=green}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button|color=blue}}</nowiki></code>.</ref>
+
*blue aka. progressive:<ref group="note">After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button|color=green}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button|color=blue}}</nowiki></code>.</ref>
  
 
{{Clickable button|color=blue}}
 
{{Clickable button|color=blue}}
  
*red:
+
*red aka. destructive:
  
 
{{Clickable button|color=red}}
 
{{Clickable button|color=red}}

Revision as of 11:12, 30 August 2017

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 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}}.