MediaWiki:Common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.using('mediawiki.util', function () {
function link(title, label) {
if (!label) label = title.replace(/_/g, " ");
return '<a href="' + mw.util.getUrl(title) + '">' + label + '</a>';
}
var facts = [
"... that a German build of " + link("Microsoft_Agent_1.5", "Microsoft Agent 1.5") +
" proved the existence of " + link("Microsoft_Agent_1.4", "Microsoft Agent 1.4") + "?",
"... that " + link("Microsoft_Agent_1.7", "Microsoft Agent 1.7") +
" has references inside of it mentioning " + link("Microsoft_Agent_1.6", "Microsoft Agent 1.6") + "?",
"... that " + link("La_Cantoche", "La Cantoche") +
" developed the Victor character that is used for the HP Tour Guide?",
"... that renaming a character \"Bonzi.acs\" and opening " +
link("BonziBUDDY", "BonziBuddy") +
" allows for " + link("Bonzi", "Bonzi") + " to be replaced with the other character?",
"... that the " + link("Music_Scripting_Helper") +
" works alongside the " + link("Microsoft_Agent_Scripting_Helper") +
" to allow characters to sing?",
"... that the earliest " + link("Microsoft_Agent_2.0", "Microsoft Agent 2.0") + " build is build 1114?",
"... that Windows 7 was the first version of Windows to stop supporting " +
link("Microsoft_Agent", "Microsoft Agent") + "?",
"... that the " + link("Microsoft_Agent_Scripting_Helper") +
" has a \"Refresh character list\" button?",
"... that the current iteration of " + link("Agentpedia") + " was launched 1 year ago?",
"... that " + link("Microsoft_Agent") + " is over 20 years old?",
"... that " + link("BonziBUDDY") + " has a secret beta version available of its Checkers game?",
"... that " + link("BillG") +
" was once a very controversial " + link("Microsoft_Agent") +
" and drew the attention of Microsoft?",
"... that " + link("Rover") + " is larger in size in Windows XP build 2410?",
"... that " + link("Genie") + " was the first ever Microsoft Agent character?",
"... that " + link("Microsoft_Agent_1.5", "Microsoft Agent 1.5") +
" was included with Windows 95 OSR 2.5?",
"... that " + link("Peedy") + " was introduced with the release of " +
link("Microsoft_Agent_2.0", "Microsoft Agent 2.0") + "?",
"... that Rayflex Animation never made any " +
link("Microsoft_Agent_2.0", "Microsoft Agent 2.0") + " characters?",
"... that " + link("Blob") + " was originally hosted on " +
link("Pepedog_(website)", "PepeDog.com") + "?",
"... that all Microsoft Agent builds in Windows Longhorn are build 3422?",
"... that " + link("Agent_Character_Storage_(file_format)", "Microsoft Agent 1.5 .ACS") +
" files are structurally closer to the older .DOC and .PPT files than " +
link("Microsoft_Agent_2.0", "Microsoft Agent 2.0") + " ACS files?",
"... that Office 2000 build 1819 had removed all contents from " +
link("Clippit") + "'s ACS file and replaced it with: \"This page intentionally left blank ;-)\"?"
];
var shuffled = facts.sort(function () { return 0.5 - Math.random(); });
var limitedFacts = shuffled.slice(0, 9);
var didYouKnowBox = document.getElementById("mp-dyk");
if (didYouKnowBox) {
var html = "<ul>";
for (var i = 0; i < limitedFacts.length; i++) {
html += "<li>" + limitedFacts[i] + "</li>";
}
html += "</ul>";
didYouKnowBox.innerHTML = html;
}
});