https://bugzilla.wikimedia.org/show_bug.cgi?id=32858

--- Comment #11 from DavidL <[email protected]> 2011-12-08 18:54:23 UTC ---
Problem occurs when 'subst:' appears in scripts adding some buttons to place
models for example. See
https://fr.wikibooks.org/w/index.php?title=MediaWiki:Gadget-Barre_de_luxe.js&diff=prev&oldid=343887

subst: seem only used on English wikipedia, there is other projects and
languages where this feature is not used.
Instead of using script as a template, parameters in user scripts should be
used, so subst: seems useless.

For the example you give, instead of... :
  Put in monobook (replace X with your area of interest) :
    {{subst:Deltab|X}}
  Javascript source :
    document.editform.wpTextbox1.value += '\{\{subst:deletion sorting|{{{1}}}|
-- \~\~\~\~\}\}\n';
...we should have :
  Put in monobook :
    DeltabInterest = 'X'; // replace X with your area of interest.
    importScript('Deltab');
  Javascript source :
    document.editform.wpTextbox1.value += '\{\{subst:deletion
sorting|'+DeltabInterest+'| -- \~\~\~\~\}\}\n';

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to