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

--- Comment #1 from Trevor Parscal <[email protected]> 2010-04-09 10:37:31 
UTC ---
It would be better if we stopped using wg* variables. Ideally we would
integrate more and more of this sort stuff into the mw object seen in the js2
stuff. mw.page.getCategories(); or mw.page.getTemplates(); for instance...

In the mean time, you could use a bit of jQuery like this (on the edit page
only of course)

var wgTemplatesUsed = jQuery.map(
    $j( 'div.templatesUsed li a:first-child' ),
    function( n ) { return $j( n ).text(); }
);

- Trevor

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