User:Krinkle/Scripts/InLoad

From Meta, a Wikimedia project coordination wiki

Languages: EnglishNederlands

Description[edit]

Loads the wiki-code of another page into this one from the page title defind in the &load= parameter. A bit like &preload= but this one makes an exact copy of the source (including any <includeonly> tags etc.). It also triggers regardless of whether the page already exists.

Install[edit]

  • Paste this code in common.js on your local wiki, or in global.js on Meta to use it everywhere you go:
The [[File:Krinkle_InLoad.js]] line is used for statistics.
  • Done :-)

If you encounter any issues, please let me know!

Install as Gadget

(These instructions are for sysops who can edit in the MediaWiki:-namespace)

  • Copy the the Install snippet to your wiki's MediaWiki:Gadget-InLoad.js (just like when you would install it in your user script)
  • Create MediaWiki:Gadget-InLoad with something like the following:
Preloads wiki-code into editor from another page via the &load= parameter. Regardless whether page existed or not. (Vector/Monobook only) 
  • Then add a line in MediaWiki:Gadgets-definition somewhere with:
    * InLoad[ResourceLoader]|InLoad.js 

Feedback

If you experiences any issues, have suggestions for how something could be better, have a good idea for a feature request – or want to report a bug ? Please leave a message on my Tools-talkpage.

See also[edit]