User:Esen/common.js

$(function {   if (!$('.mw-special-Movepage').length) return;    var title = mw.config.get('wgTitle').replace('MovePage/', '');    return new mw.Api.get({ action : 'query', prop:'info', titles:'Data:' + title }).then(function(data) { if (data.query.pages["-1"] !== undefined) return; var el = document.createElement('div'); var url = mw.config.get('wgServer') + '/Data:' + title; $(el).html('Warning! A Data page exists for this page!'); $(el).addClass('important-notice'); $(el).insertAfter(document.getElementById('wpReason')); }); });

$(function {   if (!$('.mw-special-Movepage').length) return;    var title = mw.config.get('wgTitle').replace('MovePage/', '');    return new mw.Api.get({ action : 'query', prop:'info', titles:'Tooltip:' + title }).then(function(data) { if (data.query.pages["-1"] !== undefined) return; var el = document.createElement('div'); var url = mw.config.get('wgServer') + '/Tooltip:' + title; $(el).html('Warning! A Tooltip page exists for this page!'); $(el).addClass('important-notice'); $(el).insertAfter(document.getElementById('wpReason')); }); });