Module:Inventory slot: Difference between revisions
Move alias expansion to a function |
No edit summary |
||
Line 244: | Line 244: | ||
if args.shapeless or '' ~= '' then | if args.shapeless or '' ~= '' then | ||
shapeless = '<span title="This recipe is shapeless; the inputs may be placed in any arrangement in the crafting grid.">[[File:Grid layout Shapeless.png|link=]]</span>' | shapeless = '<span title="This recipe is shapeless; the inputs may be placed in any arrangement in the crafting grid.">[[File:Grid layout Shapeless.png|link=]]</span>' | ||
elseif args.fixed or '' ~= '' then | |||
local notFixed = '' | |||
if args.notfixed or '' ~= '' then | |||
notFixed = '; except for ' .. args.notfixed .. ', which can go anywhere' | |||
end | |||
shapeless = '<span title="This recipe is fixed, the input arrangement may not be moved or mirrored' .. notFixed .. '.">[[File:Grid layoutFixed.png|link=]]</span>' | |||
end | end | ||