Jump to content

MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
// Adds warning to archived pages
mw.hook('wikipage.content').add(function () {
mw.hook('wikipage.content').add(function () {
     var cats = mw.config.get('wgCategories');
     var cats = mw.config.get('wgCategories');
Line 17: Line 18:
                 var html = data.parse.text['*'];
                 var html = data.parse.text['*'];
                 $('.mw-parser-output').prepend(html);
                 $('.mw-parser-output').prepend(html);
                $('.mw-parser-output').prepend('\n');
             }
             }
         }
         }
     });
     });
});
});