מדיה ויקי:סקריפטים/109.js – הבדלי גרסאות
תוכן שנמחק תוכן שנוסף
אין תקציר עריכה |
בהתאם לדברי קיפודנחש בדף שיחתי |
||
שורה 11:
'use strict';
var
function checkForTemplate() {
mw.loader.using('mediawiki.api').then(function () {
var api = new mw.Api();
api.get({
action: 'query',
שורה 24:
}).done(data => {
if (Array.isArray(data.query.pages[pageID].templates)) {
showWarning(api);
}
});
שורה 30:
}
function showWarning(api) {
// First, let's get the latest revision's editor and date.
|