MediaWiki talk:Gadget-purgetab.js
Document ready
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone wrap the current code with something like the following (which is suggested on mw:Snippets#How to use)?
$(function(){
/* current code */
});
Helder 15:23, 4 July 2011 (UTC)
- Done. Incidentally, that fixed the ?debug=true bug. — Edokter (talk) — 15:31, 4 July 2011 (UTC)
- Well, it adds enough delay so that the dependencies can load. :) Issue is at bugzilla:29608, BTW. And thanks for fixing my Gadgets-definition mistake! Amalthea 16:04, 4 July 2011 (UTC)
Support non-Vector skins
editHi, can someone please modify this so that it works better in non-Vector skins? Right now you see "*" where Vector would normally say "Purge". Heddy10 (talk) 01:37, 3 February 2019 (UTC)
Edit request July 18, 2022
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the line mw.config.get( 'skin' ) === 'vector' ? 'Purge' : '*',
with 'Purge',
. I don't see a single skin where having a *
in place of the word Purge
makes sense. – BrandonXLF (talk) 19:37, 18 July 2022 (UTC)
- Not done this has been in place for over 10 years and 20,000+ users have enabled this - don't really want to mess with their interface. However, extending to vector-2022 to match vector seems congruous; @Heddy10: is vector-2022 specifically where you've come across this? — xaosflux Talk 20:31, 18 July 2022 (UTC)
- Note also, purgtab has been copied to/from many other language projects, so it is fairly consistent already and doesn't require any interface language integration. — xaosflux Talk 20:33, 18 July 2022 (UTC)
- Support. Not sure why vector says "Purge" and vector-2022 says "*", which gives zero clue about what clicking this mystery button does. The only reason I was able to figure out it was this gadget is because I did some digging into what was generating the CSS ID "ca-purge". At first I thought it was MediaWiki core or Twinkle. –Novem Linguae (talk) 20:45, 18 August 2022 (UTC)
- Now that I think about it, I suppose the * is for users of skins that use tabs instead of a dropdown menu (e.g. Monobook), to save screen real estate. So let's limit our fix to vector-2022 users. –Novem Linguae (talk) 20:53, 18 August 2022 (UTC)
Edit request 2022-08-18
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change line 14 mw.config.get( 'skin' ) === 'vector' ? 'Purge' : '*',
to mw.config.get( 'skin' ) === 'vector' || mw.config.get( 'skin' ) === 'vector-2022' ? 'Purge' : '*',
. This will fix the bug above where vector-2022's more menu has a mystery asterisk, instead replacing it with the word "Purge", to match the behavior in old vector. Please also delete * @revision 2016-05-22
, as this has been out of date for years and it is a maintenance burden to remember to change this every time we edit the page. Tested and works on testwiki. Thanks. –Novem Linguae (talk) 21:07, 18 August 2022 (UTC)
- Done @Novem Linguae: - please let me know if any issues. — xaosflux Talk 13:37, 19 August 2022 (UTC)
Edit request 2023-02-23
edit@Xaosflux and Novem Linguae: about Vector 2022 again. With the deployment of the Tools menu on the right something changes. When I'm logged out I see "Purge", "Hard Purge" and "Null Edit" in the More Menu, but when I'm logged in I see *, ** and *** instead in the Tools Menu (More Menu disappears).--151.67.216.241 (talk) 13:47, 23 February 2023 (UTC)
- You shouldn't be seeing these gadgets when you are logged out, try purging your cache? — xaosflux Talk 14:00, 23 February 2023 (UTC)
- Also, if your problem is with MoreMenu gadget, it is not maintained here - see meta:Talk:MoreMenu. — xaosflux Talk 14:04, 23 February 2023 (UTC)
- @Xaosflux Thanks for the link. I would like to see "Purge", "Hard Purge" and "Null Edit" instead of "*", "**" and "***" when logged in. 151.67.227.79 (talk) 07:56, 24 February 2023 (UTC)
- OK, for help with MoreMenu, you have to ask on that other page. While we allow people to enable it here, all we do is directly load it from that other project. — xaosflux Talk 10:39, 24 February 2023 (UTC)
- @Xaosflux Thanks for the link. I would like to see "Purge", "Hard Purge" and "Null Edit" instead of "*", "**" and "***" when logged in. 151.67.227.79 (talk) 07:56, 24 February 2023 (UTC)
- Also, if your problem is with MoreMenu gadget, it is not maintained here - see meta:Talk:MoreMenu. — xaosflux Talk 14:04, 23 February 2023 (UTC)