Module:GasIcon: Difference between revisions
From Stationeers Community Wiki
More actions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
local gas = GasData[args[1]] | local gas = GasData[args[1]] | ||
local size = args.Size or "32px" | local size = args.Size or "32px" | ||
return "[["..gas.Image.."|"..size.."|link=.."..gas.HumanReadableName"]]" | return "[["..gas.Image.."|"..size.."|link=.."..gas.HumanReadableName.."]]" | ||
end | end | ||
return p | return p | ||
Revision as of 21:20, 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]]
local size = args.Size or "32px"
return "[["..gas.Image.."|"..size.."|link=.."..gas.HumanReadableName.."]]"
end
return p