K. Peachey wrote:

> On Sun, Apr 3, 2011 at 5:57 PM, Michael Dale <[email protected]>  
> wrote:
>> On 04/02/2011 04:08 PM, Ryan Kaldari wrote:
>>> 2. Creating "The Complete Idiot's Guide to Writing MediaWiki  
>>> Extensions"
>>> and "The Complete Idiot's Guide to Writing MediaWiki Gadgets (in  
>>> jQuery)"
>> +1 ... Beyond the guide we could win a lot by centralising some of  
>> the
>> scripts and libraries on mediawiki.org and establishing best  
>> practices
>> for things like gadget localisation.
>>
>> --michael
> I believe Krinkle started doing that with gadgets when he was updating
> them to jQuery & Resourcelorder compatibility... Although I don't know
> how many sites load them remotely (like how many sites do with HotCat
> from commons[1]) or just copy and paste them onto their local sites.
>
>
> [1]. http://www.mediawiki.org/wiki/MediaWiki:Gadget-HotCat.js

Yep, the most popular ones I've made central by either loading them
from Commons, Meta-Wiki or MediaWiki.org (Usually Meta-Wiki for
wmf specific, MediaWiki.org for universal ones, although some are on
Commons or en.wikipedia for historical reasons[1] )

Gadgets that are very simple in nature (that aren't worth an http- 
request)
I have put into the Snippets directory [2]. This includes popular things
that are often in scripts like Common.js such as Main page -tab text
fixer[3], redirecting User:Name/skin.js/css to the appropiate place [4],
Unwatch from watchlist [5] and much more.

--
Krinkle


[1] Although they could be moved to Meta, right now I'm not because  
their
developer would no longer be able to update them as they're usually  
sysop
on commons or en.wiki.
[2] http://www.mediawiki.org/wiki/Category:All_snippets
  http://www.mediawiki.org/wiki/Snippets
[3] http://www.mediawiki.org/wiki/Snippets/Main_Page_tab
  MediaWiki 1.18 will make this script redundant. But any wiki
running an older version (either wmf or not) will find this useful.
[4] http://www.mediawiki.org/wiki/Snippets/Redirect_skin.js
  Although common.js exists now, skin.js/css is still used a lot.
[5] http://www.mediawiki.org/wiki/Snippets/Unwatch_from_watchlist

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to