Jump to content

User talk:Salix alba/TDSkell.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2c0f:fc89:e5:c8d9:4c5d:b9f4:3884:3ce7 (talk) at 20:05, 22 April 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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]