Template talk:Clickable button

Category targets don't work?

Hello (Rillke again? :-). I just tried to add this template using a category as the target, and it doesn't work. It added the category to the bottom of my page. No matter the variations I tried, including "nowiki" tags, I was not successful, so I used the external=yes parameter to provide the template with a full URL to the category in question. This is of course not "ideal" for internal links. Thanks, Boo-Boo Baroo (talk) 04:06, 2 January 2013 (UTC)

Try that: {{Clickable button|:Category:Buttons|Link to cat}} Link to cat
-- Rillke(q?) 07:44, 4 July 2014 (UTC)

Should adopt simpler mw-ui- "Agora" buttons styling

I think Upload looks nicer and has better hover and click behavior. It's the mw:Agora theming that MediaWiki is slowly adopting, and it's simpler CSS. Compare this template with en:Template:Clickable button. Cheers. -- S Page (WMF) (talk) 23:41, 3 July 2014 (UTC)

Hey S Page (WMF), thanks for keeping us up-to-date. The only challenge is with the icons. AFAIK, MediaWiki does not adopt them? -- Rillke(q?) 07:47, 4 July 2014 (UTC)
Rillke: (Sorry for my delay in replying, if only single-user login had arrived before Echo we might have cross-wiki Echo notifications!). mediawiki.UI supports icons, though the only one currently implemented is 'ok'. The MediaWiki theme for the mw:OOjs UI component library will support lots of Wikicons, but I'm not sure how wiki templates will be able to use those components without JavaScript; it'll probably be a while -- SPage (WMF) (talk) 01:51, 5 February 2015 (UTC)
 Comment I don't like the flat buttons. IMHO flat rectangles are not buttons.User: Perhelion (Commons: = crap?)  12:22, 5 February 2015 (UTC)
Indeed, the white flat button (the default agora one) is quite hard to recognize as a button (for me). A button is something I want to press/ push down. Recently I missed the button to open the door on a tram because it was as slick as the default agora button and there was some artwork around it. I thought: "What a horrific UX" after the tram left the station without me.
At least as long as we have the bloated vector skin on by default, I personally don't like the idea very much. With Winter, okay; we also would have to adopt some templates to be less attention-grabbing. It's not just the button. -- Rillke(q?) 13:39, 5 February 2015 (UTC)

Color missing

Dear all,

Despite adding the following code in my wiki:

class=ui-button-red ui-button-large

My button is still not large, and not red. Just small and gray. Any ideas why?

Thanx for your comments.

Hector  Preceding unsigned comment added by Hjas1982 (talk  contribs) 16:07, 13 February 2015 (UTC)

@Hjas1982: Which skin is enabled by default? If it's not the Vector, it won't work. Did you check with a CSS inspector what could be wrong? Did you add a snippet similar to the below one to MediaWiki:Common.js? -- Rillke(q?) 16:38, 13 February 2015 (UTC)
/**
 * jQuery UI loader
 * Loads jQuery UI modules on demand and allows users making use of
 * (some) of the awesome jQuery UI widgets.
 * 
 * @maintainer [[User:Rillke]]
 */
mw.hook( 'wikipage.content' ).add( function ( $content ) {
	var $accordion = $content.find( '.accordion' ),
		$button = $content.find( '.ui-button' );

	if ($accordion.length) {
		mw.loader.using( 'jquery.ui.accordion', function () {
			$accordion.accordion( { autoHeight: false } );
		} );
	}
	if ($button.length) {
		mw.loader.load( 'jquery.ui.button' );
	}
} );

Edit request 11apr15

{{Edit request |technical= yes}}

Please add noinclude tags to the documentation template on the template's page. Funandtrvl (talk) 16:59, 11 April 2015 (UTC)

Because?User: Perhelion (Commons: = crap?)  23:22, 11 April 2015 (UTC)
This template is transcluded at Template:Infobox aircraft image, which, for some reason is being categorized into Category:Template documentation. See: Commons:Village pump#Template:Infobox aircraft image. I'm trying to figure out which sub-template is causing the transclusion. Funandtrvl (talk) 16:44, 13 April 2015 (UTC)
issue fixed. Funandtrvl (talk) 21:01, 14 April 2015 (UTC)

mobile view

Is there an easy way to get these buttons to display in the mobile view? Right now all users see is the text. /Lokal_Profil 19:00, 12 May 2020 (UTC)