ElEditors, Interface administrators, Administrators
70,980
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
} | } | ||
var lang = $('.character-banner-outer')[0].dataset.lang ?? '' | |||
if (isMobile) { | if (isMobile) { | ||
var classes = []; | var classes = []; | ||
var apix = api.parse( | var apix = api.parse( | ||
new mw.Title('MediaWiki:NavSidebar/Character'), { contentmodel: 'wikitext', wrapoutputclass: '', disablelimitreport: true, prop: 'text' }); | new mw.Title('MediaWiki:NavSidebar/Character' + (lang ? '/' + lang : '')), { contentmodel: 'wikitext', wrapoutputclass: '', disablelimitreport: true, prop: 'text' }); | ||
apix.then(function (text) { | apix.then(function (text) { | ||
$('html').prepend('<div id="sidebar-content" style="display:none;position:absolute;top:-999999px;">' + text + '</div>'); | $('html').prepend('<div id="sidebar-content" style="display:none;position:absolute;top:-999999px;">' + text + '</div>'); | ||
Line 90: | Line 92: | ||
$('.char-banner-image').html(face(base_name, coords[0], coords[1])); | $('.char-banner-image').html(face(base_name, coords[0], coords[1])); | ||
}); | }); | ||
function changeCharacterLink(el) { | function changeCharacterLink(el) { |