MediaWiki:Common.js: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


if (mw.config.get("wgNamespaceNumber") == 0
// Update this to the latest revision ID on August 3rd:
    && mw.config.get("wgRevisionId") < 11000
var launchDayRevId = 16000;
    // When experimenting:
    && mw.config.get("wgTitle") == "Web"
    ) {


if (mw.config.get("wgNamespaceNumber") == 0 && mw.config.get("wgRevisionId") < launchDayRevId) {
var notice = document.getElementById("siteNotice");
var notice = document.getElementById("siteNotice");
notice.style.border = "2px solid var(--bdr-hl)";
notice.style.border = "2px solid var(--bdr-hl)";
Line 12: Line 10:
notice.style.fontSize = "1.2em";
notice.style.fontSize = "1.2em";
notice.innerHTML = "<b>Warning: This page has not been updated since Early Access, the contents may be outdated.</b>";
notice.innerHTML = "<b>Warning: This page has not been updated since Early Access, the contents may be outdated.</b>";
}
}

Revision as of 03:50, 10 July 2023

/* Any JavaScript here will be loaded for all users on every page load. */

// Update this to the latest revision ID on August 3rd:
var launchDayRevId = 16000;

if (mw.config.get("wgNamespaceNumber") == 0 && mw.config.get("wgRevisionId") < launchDayRevId) {
	var notice = document.getElementById("siteNotice");
	notice.style.border = "2px solid var(--bdr-hl)";
	notice.style.padding = "5px";
	notice.style.fontSize = "1.2em";
	notice.innerHTML = "<b>Warning: This page has not been updated since Early Access, the contents may be outdated.</b>";
}