Actions

MediaWiki

Common.js: Difference between revisions

An Avatar.Global Resource

No edit summary
Blanked the page
Tag: Blanking
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
mw.hook('wikipage.content').add(function($content) {
 
    var $headline = $content.find("h1, h2").first();
    if ($headline.length) {
        $("<div class='custom-message'>{{HeaderMessage}}</div>").insertBefore($headline);
    }
});

Latest revision as of 20:40, 10 January 2026