Module:Sprite: Difference between revisions

How about custom aliases?
(Default tooltip name for js-less viewing)
(How about custom aliases?)
Line 4: Line 4:


local aliasData = {
local aliasData = {
moduleAliases = [[Module:InventorySlot/Aliases]]
vanillaAliases = [[Module:InventorySlot/Aliases]],
gm4Aliases = [[Module:Gm4Sprite/Aliases]]
}
}
Sprite.aliasData = aliasData
 
local aliases = mw.loadData( aliasData.moduleAliases )
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),
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits