Module:GasIcon: Difference between revisions
From Stationeers Community Wiki
More actions
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local gas = GasData[args[1]] | local gas = GasData[args[1]] | ||
mw.logObject(args) | |||
local size = args.Size or "32px" | local size = args.Size or "32px" | ||
return "[["..gas.Image.."|"..size.."|link= | return "[["..gas.Image.."|"..size.."|link="..gas.HumanReadableName.."]]" | ||
end | end | ||
return p | return p | ||
Revision as of 21:24, 14 March 2026
Documentation for this module may be created at Module:GasIcon/doc
local GasData = mw.loadData("Module:Gas/data")
local p = {}
function p.GetIcon(frame)
local args = frame:getParent().args
local gas = GasData[args[1]]
mw.logObject(args)
local size = args.Size or "32px"
return "[["..gas.Image.."|"..size.."|link="..gas.HumanReadableName.."]]"
end
return p