User talk:Salix alba/TDSkell.js: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
m Reverted edits by 2C0F:FC89:E5:C8D9:4C5D:B9F4:3884:3CE7 (talk) to last version by Aidan9382
 
Line 1:
== Translations ==
Add
=== French ===
 
If you think of making the script working in several languages, here's a translation into French:
<syntaxhighlight lang="javascript">
"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'
</syntaxhighlight>
:{{done}} thanks for that.--[[User:Salix alba|Salix]] ([[User talk:Salix alba|talk]]): 19:48, 28 July 2013 (UTC)
 
=== Portuguese ===
Hi! Could you add the following translation for both "pt" and "pt-br"?
<syntaxhighlight lang="javascript">
{
"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'
}
</syntaxhighlight>
Thanks! [[User talk:Helder.wiki|Helder]] 12:25, 30 July 2013 (UTC)
:{{done}}--[[User:Salix alba|Salix]] ([[User talk:Salix alba|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:ResourceLoader/Default_modules#mediawiki.util|mw.loader.using]] call somewhere). [[User talk:Helder.wiki|Helder]] 12:22, 30 July 2013 (UTC)
:{{done}}--[[User:Salix alba|Salix]] ([[User talk:Salix alba|talk]]): 15:27, 30 July 2013 (UTC)
::Actually, it is necessary to pass a callback to mw.loader.using, as in [{{fullurl:User:Salix alba/TDSkell.js|oldid=566586397&diff=566600529}} this example]. [[User talk:Helder.wiki|Helder]] 17:19, 31 July 2013 (UTC)
 
== 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 <nowiki>}}}</nowiki>, the skeleton templatedata adds <code>"suggested": true</code> to that parameter but not <code>"required": true</code>? <span class="unicode" style="color:black;text-shadow:0.2em 0.2em 0.1em #777777">[[User:Lemondoge|Lemondoge]] [[User talk:Lemondoge|My talk page]] [[Special:Contributions/Lemondoge|<span style="color:orange">📡</span>]]</span> 01:08, 27 January 2016 (UTC)
::Do you have an example template? --[[User:Salix alba|Salix alba]] ([[User talk:Salix alba|talk]]): 03:48, 27 January 2016 (UTC)
:::No, but hopefully you can try it on {{tl|Color}}. Both of it's parameters have a {{!}} but no text after the {{!}} and ''both'' except ''and'' before the <nowiki>}}}</nowiki>. <span class="unicode" style="color:black;text-shadow:0.2em 0.2em 0.1em #777777">[[User:Lemondoge|Lemondoge]] [[User talk:Lemondoge|My talk page]] [[Special:Contributions/Lemondoge|<span style="color:orange">📡</span>]]</span> 21:49, 27 January 2016 (UTC)