Ive set up a template called codehost . This can be used in links to code samples such as {{codehost}}/interaction/adder.xq?arg1=123&arg2=456 as in the revised https://en.wikibooks.org/wiki/XQuery/Adder This will allow rehosting the code samples.