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

--- Comment #4 from Michael Dale <[email protected]> 2010-06-08 23:49:41 UTC ---
In response to Nux, there is work underway to support what your getting at.
Although the specific of transclution in js space won't happen.  

The scriptloader would let you include use a line in your common.js like: 

if( wgPageName == 'somePageThatNeedsMyModule' ){
    mw.load( 'Some', 'Dependencies', 'WT:MediaWik:Mw.MyModule.js'){
        // Your module is now available
        var MyModule = new mw,MyModule( { /* MyWikiConfigForMyModule */ }
        MyModule.updateUI();
    });
}

This way a single top level script contains all the configuration and included
modules for a given wiki and any module set used in a given context is
requested as a single package of javascript and css. 

If multiple modules are used in a given context your loader call could include
both modules 

Some documentation was generated per gadget usage of this system in bug 23809

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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