MediaWiki:Common.js
Project Rebearth wiki
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.
(function () {
if (mw.config.get('wgPageName') === 'Project_Rebearth:Changelog_editor') {
mw.loader.load('/index.php?title=MediaWiki:ChangelogEditor.css&action=raw&ctype=text/css', 'text/css');
mw.loader.load('/index.php?title=MediaWiki:ChangelogEditor.js&action=raw&ctype=text/javascript');
}
})();
// Tagline: italic "Project Rebearth" on non-Lore pages; icon + italic on Lore namespace
$(function () {
var $tag = $('#tagline');
if (!$tag.length) return;
if (mw.config.get('wgCanonicalNamespace') === 'Lore') {
$tag.html(
'<a href="/index.php/Lore" title="Lore">' +
'<img src="/index.php/Special:FilePath/LoreIcon.png" ' +
'class="iconimg" alt="Lore icon" ' +
'style="height:15px;vertical-align:-3px;">' +
'</a> <i>Project Rebearth</i> lore'
);
} else {
$tag.html('<i>Project Rebearth</i> wiki');
}
});