Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
(Default tooltip name for js-less viewing) |
(How about custom aliases?) |
||
Line 4: | Line 4: | ||
local aliasData = { | local aliasData = { | ||
vanillaAliases = [[Module:InventorySlot/Aliases]], | |||
gm4Aliases = [[Module:Gm4Sprite/Aliases]] | |||
} | } | ||
Sprite.aliasData = aliasData | |||
Sprite.aliasData = aliasData | |||
local types = { | local types = { | ||
Line 63: | Line 64: | ||
error("Unknown type: " .. tostring(type)) | error("Unknown type: " .. tostring(type)) | ||
end | end | ||
if type == "inventory" then | |||
aliases = mw.loadData( aliasData.vanillaAliases ) | |||
elseif type == "gm4" then | |||
aliases = mw.loadData( aliasData.gm4Aliases ) | |||
end | |||
o = { | o = { | ||
__source = require(source), | __source = require(source), |
edits