Template:Load_user_script
Template:Load user script
{{#tag:syntaxhighlight|mw.loader.load( '{{subst:localurl:{{{1}}}|action=raw&ctype=text/javascript}}' ); // Backlink: [[{{{1}}}]]|lang=js}}
This template should always be substituted (i.e., use {{subst:Load user script}}). |
This template is used to install user scripts that reside on the English Wikipedia. It is to be used primarily on Special:MyPage/common.js or Special:MyPage/skin.js. It adds the necessary mw.loader.load
line along with a backlink.