Wikipedia:WikiProject User scripts/Scripts/Inclusion
Use these commands to include things from other places:
Javascript
editimportScript(); is now built into the site
/* Include a script from another location */ function winc(s) { s = s.replace(/^\[\[/, '').replace(/\]\]$/, ''); document.write('<scr' + 'ipt type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=' + s + '&action=raw&ctype=text/javascript"></scr' + 'ipt>'); /* (Broken up so that page preview doesn't get confused) */
then include a script like so:
winc('[[User:SOMEONE/monobook.js]]'); /* Comment about what the script does */
Synchronize across wikis
editA more concise version for including your user js to synchronize across wikis:
document.write('<scr' + 'ipt type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=' + 'User:YOURUSERNAME/monobook.js' /* <-- Replace this with your monobook.js location */ + '&action=raw&ctype=text/javascript"></scr' + 'ipt>'); /* (Broken up so that page preview doesn't get confused) */
CSS
edit/* Include css from en */ @import url(http://en.wikipedia.org/w/index.php?title=User:YOURUSERNAME/monobook.css&action=raw&ctype=text/css);
See meta:User:Omegatron/monobook.css
For Internet explorer' users:
/* Include css from es */ @import "http://es.wikipedia.org/w/index.php?title=Usuario:Axxgreazz/monobook.css&action=raw&ctype=text/css";