Discussioni MediaWiki:Gadget-LiveRC 1x.js

Ultimo commento: 8 anni fa, lasciato da Supernino in merito all'argomento wgPageName

InserisciTemplate extension : integration to LiveRC

modifica

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.wiki.x.io/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.wiki.x.io/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

modifica

[@ 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.wiki.x.io/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.wiki.x.io/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

RegExp

modifica

Hello,

[@ Jalo]

1.)

Since this edit, LiveRC handle commenttests[X].regex and categoriestests[X].regex as Regexp, not Strings. Config panel code has been updated to manage this.

A dedicated code has been added in LiveRC_getSpecialCustom() to do the conversion, but it would be better you update these params.

2.)

Has you may have seen, there is a new extension, InstallAndConfigLiveRCExtension. Its purpose is to help managing the LiveRC installation (means : auto edit of the installation page, here MediaWiki:Gadget-LiveRC 1x.js, with a config panel like the one in LiveRC but with some more configs). But as here LiveRC is only active in its launching page, you may want to delete it from the list.

3.)

Some fr-wikipedia specific extensions have been moved from the main code to the fr-wikipedia configuration page. You may have no need to delete them anymore.

4.)

You can now set some site-custom CSS using MediaWiki:Gadget-LiveRC-local.css (you can change the page name by setting LiveRC_Config["CSSPage"] before you load LiveRC main code).

Dr Brains (msg) 20:55, 9 ott 2014 (CEST)Rispondi

Done. Thank you again Jalo 09:13, 10 ott 2014 (CEST)Rispondi

wgPageName

modifica

Deprecato, usare mw.config.get('wgPageName') al suo posto. Grazie in anticipo, --Ricordisamoa 18:29, 22 mar 2016 (CET)Rispondi

Fatto da Supernino, annullato da Amarvudol --Ricordisamoa 17:30, 23 mar 2016 (CET)Rispondi
  Fatto --Supernino 18:59, 23 mar 2016 (CET)Rispondi
Ritorna alla pagina "Gadget-LiveRC 1x.js".