Discussioni MediaWiki:Gadget-LiveRC 1x.js

InserisciTemplate extension : integration to LiveRC

Hello,

because I adapted InserisciTemplate extension to fr-wiki, I'd want to add it in the extension list (see here the future edit). To prevent it to appear in your own extension list, you may do the modification above (line 5), to be sure to delete the fr installation of this extension (other way your own version will no be installed).

Before
        // Estensioni
        LiveRC_DeleteExtension("UserWarningsExtension");
        LiveRC_DeleteExtension("LinkOnIconExtension");
        LiveRC_DeleteExtension("BandeauPortail");
 

        var MyExtension = new Object();
        MyExtension["name"] = "InserisciTemplate";
        MyExtension["url"] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js";
        MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";
        LiveRC_AddNewExtension(MyExtension);
After
        // Estensioni
        LiveRC_DeleteExtension("UserWarningsExtension");
        LiveRC_DeleteExtension("LinkOnIconExtension");
        LiveRC_DeleteExtension("BandeauPortail");
        LiveRC_DeleteExtension("InserisciTemplate");
 
        var MyExtension = new Object();
        MyExtension["name"] = "InserisciTemplate";
        MyExtension["url"] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js";
        MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";
        LiveRC_AddNewExtension(MyExtension);

Please warn me when it is done, and I'll proceed. Thank you.

Note : In the way LiveRC is installed here, with LiveRC code only active at Wikipedia:LiveRC, DiffExtension is useless. You may delete it too.

Ping : [@ Jalo, Supernino]

Dr Brains (msg) 22:36, 2 ago 2014 (CEST)Rispondi

[@ Dr Brains] Done. I'll let Jalo take care of DiffExtension. --Supernino 06:21, 3 ago 2014 (CEST)Rispondi
Deleted. Thanks Jalo 09:12, 4 ago 2014 (CEST)Rispondi

Extensions appears according to userrights

[@ Jalo]

Hello,

I just added a new item for lrcExtension ([1] [2]).

Your local config must be updated (line 5) :

BEFORE
        var MyExtension = new Object();
        MyExtension["name"] = "InserisciTemplate";
        MyExtension["url"] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js";
        MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";

        LiveRC_AddNewExtension(MyExtension);
AFTER
        var MyExtension = new Object();
        MyExtension["name"] = "InserisciTemplate";
        MyExtension["url"] = "//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC_1x.js/InserisciTemplate.js";
        MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";
        MyExtension["neededright"] = "";
        LiveRC_AddNewExtension(MyExtension);

This new neededright item is used to prevent the extension to be shown on the list if the user don't have the corresponding right (of if he does have it in the case where the neededright value if prefixed with ! ).

Dr Brains (msg) 20:07, 26 set 2014 (CEST)Rispondi

  Fatto. Thanks Jalo 09:25, 29 set 2014 (CEST)Rispondi
Ritorna alla pagina "Gadget-LiveRC 1x.js".