Template talk:Clickable button 3

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Drop jQuery UI support[edit]

{{Editprotected}}

This template is an alternative to {{Clickable button}} & {{Clickable button 2}}, which use jQuery UI. Yet, there are some pieces in this template as well that refer to jQuery UI. Please sync this sandbox change these sandbox changes to remove them and make it clear that this template is for mediawiki.ui and only for mediawiki.ui. Thanks in advance, —Tacsipacsi (talk) 13:35, 10 July 2021 (UTC)[reply]

@Tacsipacsi Do you know if any of the removed classes are in use anywhere? AntiCompositeNumber (talk) 04:10, 18 February 2022 (UTC)[reply]
@AntiCompositeNumber: They aren’t, as far as I know. Using a Pywikibot script derived from harvest_template.py, I created the following statistics:
$ ./pwb.py param_usage -output:params_clickablebutton3.tsv -family:commons -lang:commons -transcludes:Clickable_button_3 class
$ head params_clickablebutton3.tsv
Main Page	mw-ui-progressive
メインページ	mw-ui-progressive
עמוד ראשי	mw-ui-progressive
Etusivu	mw-ui-progressive
Hlavní strana	mw-ui-progressive
Commons:Pàgina principal	mw-ui-progressive
Glavna stranica	mw-ui-progressive
Hoofdpagina	mw-ui-progressive
मुखपृष्ठ (hi)	mw-ui-progressive
Hovedside	mw-ui-progressive
$ cut -f2 params_clickablebutton3.tsv | sort | uniq | awk '{ system("echo -n " $1 " \"\t\"; grep " $1 "$ params_clickablebutton3.tsv | wc -l") }'
mw-ui-constructive 	3
mw-ui-destructive 	9
mw-ui-neutral 	3
mw-ui-progressive 	144
mw-ui-progressive makes up the vast majority of uses, but the remaining 15 are also all mw-ui-*, no jQuery UI. —Tacsipacsi (talk) 21:34, 18 February 2022 (UTC)[reply]
@Tacsipacsi: Good enough for me, ✓ Done. --AntiCompositeNumber (talk) 22:52, 18 February 2022 (UTC)[reply]