Jump to content

User talk:Salix alba/TDSkell.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Translations

[edit]

French

[edit]

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)[reply]

Portuguese

[edit]

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)[reply]

 Done--Salix (talk): 15:27, 30 July 2013 (UTC)[reply]

URL for other wikis

[edit]

Hi!

Could you use

		var URL = mw.util.wikiScript();

instead of the enwiki URL in the line

		var URL = "http://wiki.riteme.site/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)[reply]

 Done--Salix (talk): 15:27, 30 July 2013 (UTC)[reply]
Actually, it is necessary to pass a callback to mw.loader.using, as in this example. Helder 17:19, 31 July 2013 (UTC)[reply]

Ability to guess that a parameter is suggested

[edit]

Could you please make it so that if a parameter has a | in it but doesn't have any text after that | except the }}}, the skeleton templatedata adds "suggested": true to that parameter but not "required": true? Lemondoge My talk page 📡 01:08, 27 January 2016 (UTC)[reply]

Do you have an example template? --Salix alba (talk): 03:48, 27 January 2016 (UTC)[reply]
No, but hopefully you can try it on {{Color}}. Both of it's parameters have a | but no text after the | and both except and before the }}}. Lemondoge My talk page 📡 21:49, 27 January 2016 (UTC)[reply]