I'm trying to create a script to do a clean up of links by mass-editing those namespaces. But apparently these aren't stored like regular wiki pages, and seem to be only editable using their API.
The Message script seems to take advantage of an exposed api, but it doesn't seem that it can be used for editing because the controller class needs a "msgid" that isn't easy to get without the internal functions.
For reference the code that generates a new message is:
$.post(mw.util.wikiScript('wikia'), { controller: 'WallExternal', method : 'preview', metatitle : $ttl, body : $bdy, format : 'json' }, function (data) { $('.ArticlePreview').html(data.body); $('.msg-title').css({ 'font-size' : '18px', 'font-weight' : 'bold', 'padding-bottom': '5px' }); });
Relevant code: https://github.com/Wikia/app/blob/dev/extensions/wikia/Wall/WallExternalController.class.php