Template:ImportGadget

mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');
Template documentation

Usage

edit
{{ImportGadget|UTCLiveClock|www.mediawiki}}

Gives:

mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');