Anonymous
×
Create a new article
Write your page title here:
We currently have 15 articles on TwistedFates Database. Type your article name above or click on one of the titles below and start writing!



TwistedFates Database
15Articles

Module:No globals and Template:Format hatnote link: Difference between pages

(Difference between pages)
m (1 revision imported)
 
wikip>Codename Lisa
(Codename Lisa moved page Template:Format hatnote link to Template:Format link: This template does not have any hardcoded relation to hatnotes. It just formats link, plain and simple)
 
Line 1: Line 1:
local mt = getmetatable(_G) or {}
#REDIRECT [[Template:Format link]]
function mt.__index (t, k)
{{R from move}}
if k ~= 'arg' then
error('Tried to read nil global ' .. tostring(k), 2)
end
return nil
end
function mt.__newindex(t, k, v)
if k ~= 'arg' then
error('Tried to write global ' .. tostring(k), 2)
end
rawset(t, k, v)
end
setmetatable(_G, mt)

Revision as of 06:34, 22 May 2014