Discussioni MediaWiki:Gadget-LiveRC 1x.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m tag source deprecati, replaced: <source lang= → <syntaxhighlight lang= (4), </source> → </syntaxhighlight> (4) |
|||
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 64:
|------
|
<
var MyExtension = new Object();
MyExtension["name"] = "InserisciTemplate";
Riga 71:
LiveRC_AddNewExtension(MyExtension);
</syntaxhighlight>
|------
! AFTER
|------
|
<
var MyExtension = new Object();
MyExtension["name"] = "InserisciTemplate";
Riga 83:
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> ).
|