sgvast.blogg.se

Wikia tabview
Wikia tabview





wikia tabview wikia tabview

'scripts' => array( 'js/mustache.js', 'js/TabView.js' ), First, we need to anycodings_mediawiki define a ResourceLoader module that anycodings_mediawiki loads the scripts we need (warning: anycodings_mediawiki untested code!): $wgResourceModules = array( It shouldn't be too hard to do the same anycodings_mediawiki thing with the standard MediaWiki anycodings_mediawiki ResourceLoader. Specifically, looking at the JSSnippets anycodings_mediawiki class documentation (see links above), anycodings_mediawiki what the addToStack() call does is tell anycodings_mediawiki the browser to asynchronously load the anycodings_mediawiki two linked JS files and then, once the anycodings_mediawiki files have loaded, call the JS function anycodings_mediawiki TabView.init() with the named arguments anycodings_mediawiki id and selected (passed as properties of anycodings_mediawiki a generic object, like in JSON). You could try anycodings_mediawiki adding all the dependencies to your anycodings_mediawiki wiki, but it might be easier to just anycodings_mediawiki replicate the functionality using anycodings_mediawiki standard MediaWiki features. In short, the JS side of that extension anycodings_mediawiki seems to make use of a whole bunch of anycodings_mediawiki Wikia-specific code. Through anycodings_mediawiki the framework, it instantiates a anycodings_mediawiki JSSnippets object from the Wikia anycodings_mediawiki JSSnippets extension. The TabView extension you linked to anycodings_mediawiki seems to depend on the Wikia Nirvana anycodings_mediawiki framework, and specifically on the anycodings_mediawiki WikiaSuperFactory class (which the class anycodings_mediawiki "F" is a dummy subclass of).







Wikia tabview