FANDOM


-- <nowiki>
--------------------------------------------------------------------------------
-- Ensures that a module can only be loaded on dev.wikia.com. Syntax:
--
-- require('Dev:Non-global')
--------------------------------------------------------------------------------
 
local tb = debug.traceback()
local sep = '\n' .. mw.ustring.rep('-', 80) .. '\n'
local _, newlines = tb:gsub('\n', '')
 
error(tb .. sep .. 'Newlines: ' .. newlines)
 
--[[
-- For testing:
--
-- = require('Dev:Non-global/sandbox')
-- = require('Dev:Sandbox/DarthKitty/Local module')
-- = require('Dev:Sandbox/DarthKitty').call_local_module()
--]]
 
if mw.uri.new(mw.site.server).host ~= 'dev.wikia.com' then
    local _, level = debug.traceback():gsub('\n', '')
 
    error('tried to load a non-global module', level)
end
 
-- </nowiki>
-- (Add categories here.)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.