User blog comment:Kirkburn/Technical Update: June 24, 2015/@comment-24473195-20150624200815/@comment-24473195-20150625095858

The syntax is require('Dev:Utility'), note the casing of the prefix.

The changes seem to have come live a few hours ago. Anyway, it seems that this is case sensitive. I tried using:

It didn't seem to work, and is ignoring the general rule that the first letter (e.g. "U") is always capitalized. Maybe that should be patched.

"One thing I'm wondering though is how the loaded modules withing dev wiki modules work. Will the require('Module:Foo') reference a module on dev wiki or will it reference a potentially missing module on the wiki using the dev wiki module?"

Global modules (GM) and local modules (LM) work somewhat differently:

If you're asking about LM loaded from say, from "buga.wikia.com" it will reference a non-existing module.

If you're asking about the modules in dev.wikia, they'll reference modules already there (if they exist).

For instance, the GM I created (autochangecat), can be loaded like this from community.wikia:

Autochangecat works, and it depends on module:utility but didn't require any code changes.

Speaking of which, now that there are global modules, I think some sort of style guide should be implemented in dev.wikia. I can imagine a lot of chaos with every coder naming the modules and its functions in their own way.

@Kirkburn: I think you should mention in the blog that mw.loadData also works with global modules.