4,951
edits
Falterfire (talk | contribs) (Created this for use in other modules.) |
Falterfire (talk | contribs) (Fixed a minor formatting thing, set up override for Melee) |
||
Line 16: | Line 16: | ||
local img = link | local img = link | ||
--MANUAL OVERRIDES | |||
if text == 'Melee' then | |||
img = 'Combat' | |||
end | |||
local result = '[[File:'..img | local result = '[[File:'..img | ||
if type ~= nil and type ~= '' then result = result..'_('..type..')' end | if type ~= nil and type ~= '' then result = result..'_('..type..')' end | ||
Line 22: | Line 26: | ||
if qty ~= nil and qty ~= '' then result = result..' '..qty end | if qty ~= nil and qty ~= '' then result = result..' '..qty end | ||
if not notext then | if not notext then | ||
result = result..'[['..link | result = result..' [['..link | ||
if text ~= nil and text ~= '' then | if text ~= nil and text ~= '' then | ||
result = result..'|'..text | result = result..'|'..text |