Difference between revisions of "Template:Clickable button/doc"
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
| 40x40px | This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
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
{{Clickable button|[[Talk:Main page|Main page talk page]]}}
produces
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):
- blue aka. progressive:[note 1]
- red aka. destructive:
Notes