Template talk:Button

Add topic
Active discussions


Shouldn't this template support an alt parameter to set the text to be rendered on mouse-over (and to be used by screen-readers for accessibility), or can/will a screen reader read the button text? —[AlanM1(talk)]— 03:02, 17 March 2013 (UTC)

It will read the button text. Edokter (talk) — 10:10, 17 March 2013 (UTC)

New style for button?Edit

Can we organise a new style for the button? Provided that we are changing the interface of buttons on Wikipedia to look more coloured, such as like:

Button Or Button

We are moving away from the old style that looked like:


Can we reflect these changes on the button template as well? (Remember that this will be a breaking change to the look of the button!)

Provide your say below! Thank you! DSCrowned(talk) 05:39, 9 July 2015 (UTC)

They've not all turned facebooky. The important ones, like the "Go" and "Search" buttons in the left margin, the "Search" button at Special:Contributions or "Go" at Special:Watchlist are all still proper colours, black on silver. --Redrose64 (talk) 11:08, 9 July 2015 (UTC)
Yes, I see this, but the design team for MediaWiki may change this to the new design in the future. It has been specified in MediaWiki ui and interfaces are now steadily shifting to the new look. For newcomers, they will swiftly come across new pages which have the new style, because those pages are meant for newcomers. DSCrowned(talk) 04:05, 10 July 2015 (UTC)

Clickable button not clickableEdit

"This template provides a "clickable button" formatting style for text. This button is not clickable"

Seems contradictory. — Preceding unsigned comment added by 2A01:E35:8A8D:FE80:DC2A:4CC2:F69C:9E36 (talk) 03:26, 13 January 2017 (UTC)

Text styleEdit

Changing the markup to be semantically correct in a recent edit [1] (<kbd>...</kbd> instead of <span>...</span>) also had the consequence of turning the regular text on the button into monospace font, which doesn't match with real buttons this template is supposed to represent. I've corrected this in the sandbox: [2]. - Evad37 [talk] 04:34, 13 January 2018 (UTC)

  Done in main template - Evad37 [talk] 16:20, 29 January 2018 (UTC)

Three years on, and still no changeEdit

In Dec 2017 the Save changes button was renamed Publish changes across all wikis. There was a lack of effective coordination to implement the necessary updates to most of our help pages on en.wiki. I have since tried my best to make up for this. But some changes elude me. Three years ago it was observed that we needed to change the button colour, but I can find no option to set this as a parameter today. Could someone more technical help me get Template:EditOptions to match what we now see in real life editing so that our Help pages like this one look right? If not, I'm just going to delete it and shove in a real screenshot instead. Pinging @DSCrowned: and @Redrose64: who discussed this 3 years ago. Regards, Nick Moyes (talk) 13:29, 26 February 2018 (UTC)

  Done, to emulate the new-style buttons you need to use {{clickable button}} instead of {{button}} - Evad37 [talk] 02:27, 28 February 2018 (UTC)
Thank you - that's really helpful. Nick Moyes (talk) 10:40, 2 March 2018 (UTC)

Foreground colorEdit

This template set background-color: without setting color: which is an accessibility issue for dark Wikipedia color schemes. Please add color: {{{fgcolor|#000}}}; after background-color: {{{bgcolor|#F2F2F2}}};Dispenser 03:10, 12 March 2018 (UTC)

  Donexaosflux Talk 11:30, 12 March 2018 (UTC)

Template-protected edit request on 17 June 2020Edit

Please add the following to the top of the page:

<noinclude>{{Hatnote|This template is a non-clickable button. For the most common clickable button, see [[Template:Clickable button 2]].}}</noinclude>

This might help people delving into buttons for the first time more easily figure out where to go. As always, make sure the </noinclude> ends on the same line as the first line of the template code. {{u|Sdkb}}talk 17:30, 17 June 2020 (UTC)

Sdkb, why not just add it to the top of documentation? —⁠andrybak (talk) 20:39, 17 June 2020 (UTC)
Andrybak, I've seen hatnotes both in the documentation and above the template itself, so I'm not sure if there's a set standard, but I think putting it at the top would be a little more prominent. {{u|Sdkb}}talk 20:42, 17 June 2020 (UTC)
There isn't really a standard, but where there is a doc subpage, it seems to me that the hatnotes are usually there (see, e.g., {{cn}}). I've done the same here. --Mdaniels5757 (talk) 21:44, 17 June 2020 (UTC)