MediaWiki talk:Gadgets-definition

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

XTools ArticleInfo gadget[edit]

Hello! The XTools team is happy to announce the revival of the popular XTools gadget. Before this was offered as a user script, but now we'd like to propose it as a proper gadget here on Meta. The gadget works for all skins and will be shown in your language (assuming translations exist). Here's a screenshot:

The XTools ArticleInfo gadget, as seen when viewing the English Wikipedia article on Jimmy Wales.

Documentation can be found at mw:XTools#ArticleInfo gadget. The gadget along with all of XTools is meant to work on non-WMF wikis, too, hence why the documentation lives there and not on Meta.

If you'd like to try it out now, add the following to your common.js (or global.js):

mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');

If we'd like to move forward with enabling it as a gadget here on Meta, please create it at MediaWiki:Gadget-XTools-ArticleInfo.js with the same code above. This loads it from mw:XTools/ArticleInfo.js so that updates are automatically applied. The source page is fully protected to prevent disruption.

The gadget definition (probably placed under "interface") should be along the lines of:

* XTools-ArticleInfo[ResourceLoader]|XTools-ArticleInfo.js

and the description at MediaWiki:Gadget-XTools-ArticleInfo could be (feel free to copy edit):

[[mw:XTools|XTools]]: Dynamically show statistics about a page's history under the page heading.

I am going to post a note at Meta:Babel about this as well. Thank you for your consideration! — MusikAnimal talk 17:52, 23 August 2017 (UTC)

+1 for gadget. Visible metadata ftw. :) Quiddity (talk) 08:59, 24 August 2017 (UTC)
+1 for me as well as optional gadget for those willing to use it. —MarcoAurelio (talk) 10:08, 25 August 2017 (UTC)
Yes check.svg Done. —MarcoAurelio (talk) 16:38, 27 August 2017 (UTC)
Thanks! @MarcoAurelio: Could you also update User:Hedonil/XTools/XTools.js to the same code as MediaWiki:Gadget-XTools-ArticleInfo.js? There are still a lot of people sourcing Hedonil's user script, which will die once the old XTools is retired. Best — MusikAnimal talk 16:40, 29 August 2017 (UTC)