An inexpensive alternative to {{#ifexist}} which looks for a given module, and returns one of two values depending on whether it was found.




Installing modules

To get a brief introduction to lua read the basics page first. On Wikia, one can use modules by either accessing a module remotely or copying all its contents to a Wiki. Modules accessed remotely from dev.wikia are subject to change while 'correctly' copied modules are controlled by a particular wiki.

Using a module "remotely" using Module:Devmodule

Create Module:Devmodule and copy the following code to remotely access modules in dev's repository. See more details in Global Lua Modules/Devmodule.
--[[This imports modules from dev.wikia]]
return require("Dev:Devmodule")

Loading modules remotely from dev.wikia

Create Module:Existsmod in your wiki and add the following code:
--This loads modules directly from
return require("Dev:Existsmod")

Using Module:Existsmod in another wiki

To use modules without depending on dev see this page. Create Template:Existsmod in your wiki and add the following code:

Using template in a page

You can use this module in a page using syntax such as: