Board Thread:General Coding Help/@comment-3298582-20150102142124/@comment-4143277-20150103165300

Cqm wrote: I use something like this: var conf = mw.config.get( [   'wgPageName',    'wgTitle',    'skin' ] );

console.log( conf.wgPageName ); console.log( conf.wgTitle ); console.log( conf.skin ); There's probably a minor improvement to performance as you're caching the values, but I also find it makes my code a bit shorter and easier to write in the long term too :)

Is it possible to like rename some of the indexes e.g. wgPageName to page while initiating the array at the same time?