User talk:Salix alba/TDSkell.js
Appearance
Translations
French
If you think of making the script working in several languages, here's a translation into French:
"fr": {
"toolbox-label": 'Ébauche de TD',
"toolbox-tooltip": 'Génère une ébauche pour le TemplateData d''un modèle',
"title": 'Ébauche de TemplateData pour ',
"section-description": 'TemplateData',
"close": 'Fermer'
Done thanks for that.--Salix (talk): 19:48, 28 July 2013 (UTC)
Portuguese
Hi! Could you add the following translation for both "pt" and "pt-br"?
{
"toolbox-label": 'Esqueleto de TD',
"toolbox-tooltip": 'Gera um esqueleto de TemplateData para uma predefinição dada',
"title": 'Esqueleto de TemplateData para ',
'section-description': 'TemplateData',
"close": 'Fechar'
}
Thanks! Helder 12:25, 30 July 2013 (UTC)
Done--Salix (talk): 15:27, 30 July 2013 (UTC)
URL for other wikis
Hi!
Could you use
var URL = mw.util.wikiScript();
instead of the enwiki URL in the line
var URL = "http://en.wikipedia.org/w/index.php";
This should make the script to work on other wikis as well...
If you do so, make sure you declare the module "mediawiki.util" as a dependency (with a mw.loader.using call somewhere). Helder 12:22, 30 July 2013 (UTC)
Done--Salix (talk): 15:27, 30 July 2013 (UTC)
- Actually, it is necessary to pass a callback to mw.loader.using, as in this example. Helder 17:19, 31 July 2013 (UTC)