Discussioni MediaWiki:Gadget-LiveRC 1x.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
m tag source deprecati, replaced: <source lang= → <syntaxhighlight lang= (4), </source> → </syntaxhighlight> (4) |
||
(10 versioni intermedie di 4 utenti non mostrate) | |||
Riga 9:
|----------
|
<
// Estensioni
LiveRC_DeleteExtension("UserWarningsExtension");
Riga 21:
MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";
LiveRC_AddNewExtension(MyExtension);
</syntaxhighlight>
|--------
! After
|--------
| valign="top" |
<
// Estensioni
LiveRC_DeleteExtension("UserWarningsExtension");
Riga 38:
MyExtension["desc"] = "Inserisce un template di avviso in cima alla voce";
LiveRC_AddNewExtension(MyExtension);
</syntaxhighlight>
|}
Riga 50:
: {{ping|Dr Brains}} [https://it.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-LiveRC_1x.js&diff=67377961&oldid=67164008 Done]. I'll let Jalo take care of DiffExtension. --<span style="font-family:Comic Sans MS">[[Utente:Supernino|<span style="color:darkblue">'''Super'''</span>]][[Discussioni utente:Supernino|<span style="color:darkblue">'''nino'''</span>]]</span> 06:21, 3 ago 2014 (CEST)
::Deleted. Thanks '''''<span style="font-size:medium;font-family:Comic Sans MS">[[Utente:Jalo|<span style="color:#BB0011">J</span>]][[Discussioni utente:Jalo|<span style="font-size:small;color:#DD2233">alo</span>]]</span>''''' 09:12, 4 ago 2014 (CEST)
== Extensions appears according to userrights ==
{{ping|Jalo}}
Hello,
I just added a new item for lrcExtension ([https://fr.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-LiveRC.js&diff=107762792&oldid=107762143] [https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC-frWP.js&diff=107762586&oldid=107419352]).
Your local config must be updated (line 5) :
{| class="wikitable"
! BEFORE
|------
|
<syntaxhighlight lang=javascript line>
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);
</syntaxhighlight>
|------
! AFTER
|------
|
<syntaxhighlight lang=javascript line>
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);
</syntaxhighlight>
|}
This new <code>neededright</code> 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 <code>!</code> ).
[[Utente:Dr Brains|Dr Brains]] ([[Discussioni utente:Dr Brains|msg]]) 20:07, 26 set 2014 (CEST)
:{{Fatto}}. Thanks '''''<span style="font-size:medium;font-family:Comic Sans MS">[[Utente:Jalo|<span style="color:#BB0011">J</span>]][[Discussioni utente:Jalo|<span style="font-size:small;color:#DD2233">alo</span>]]</span>''''' 09:25, 29 set 2014 (CEST)
== RegExp ==
Hello,
{{ping|Jalo}}
'''1.)'''
Since [//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js&diff=107959155&oldid=107867966 this edit], LiveRC handle <code>commenttests[X].regex</code> and <code>categoriestests[X].regex</code> as Regexp, not Strings. Config panel code has been updated to manage this.
A dedicated code has been added in <code>LiveRC_getSpecialCustom()</code> to do the conversion, but it would be better you update these params.
'''2.)'''
Has you may have seen, there is a new extension, [[fr:Wikipédia:LiveRC/Documentation/Extensions/InstallAndConfigLiveRCExtension/en|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 [[:fr:Wikipédia:LiveRC/Miroir#Extensions|the main code]] to the [[:fr:MediaWiki:Gadget-LiveRC-frWP.js|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 <code>LiveRC_Config["CSSPage"]</code> <u>before you load LiveRC main code</u>).
[[Utente:Dr Brains|Dr Brains]] ([[Discussioni utente:Dr Brains|msg]]) 20:55, 9 ott 2014 (CEST)
:Done. Thank you again '''''<span style="font-size:medium;font-family:Comic Sans MS">[[Utente:Jalo|<span style="color:#BB0011">J</span>]][[Discussioni utente:Jalo|<span style="font-size:small;color:#DD2233">alo</span>]]</span>''''' 09:13, 10 ott 2014 (CEST)
== wgPageName ==
Deprecato, usare mw.config.get('wgPageName') al suo posto. Grazie in anticipo, --<span style="font-variant:small-caps">[[Utente:Ricordisamoa|<span style="color:#004B70">Ricordi</span>]][[Discussioni utente:Ricordisamoa|<span style="color:#00703E">samoa</span>]]</span> 18:29, 22 mar 2016 (CET)
: Fatto da [[Utente:Supernino|Supernino]], annullato da [[Utente:Amarvudol|Amarvudol]] --<span style="font-variant:small-caps">[[Utente:Ricordisamoa|<span style="color:#004B70">Ricordi</span>]][[Discussioni utente:Ricordisamoa|<span style="color:#00703E">samoa</span>]]</span> 17:30, 23 mar 2016 (CET)
:: [[File:Yes_check.svg|15px|✔]] Fatto --<span style="font-family:Comic Sans MS;">'''[[Utente:Supernino|<span style="color:darkblue;">Super</span>]][[Discussioni utente:Supernino|<span style="color:darkblue;">nino</span>]]'''</span> 18:59, 23 mar 2016 (CET)
|