Mediawiki:Common.js

From igeek2
Jump to navigation Jump to search

Add the following to Mediawiki:Common.js to add References to every page.

$(document).ready(function(){
    $('.mw-references-wrap').before('<h2>📚 References</h2>');
});

When working with <ref></ref> tags in templates, it doesn't get parsed correctly. So you need to do the following: {{#tag:ref|{{{Links|}}} }} use #tag to tell it to wrap it in ref, before the parser parses. See Template:Show_Fact for working example.