Line 53:
Line 53:
item = entity.id -- look-up q-code
item = entity.id -- look-up q-code
elseif tonumber(item) then -- if it is just the number than add "Q" in front
elseif tonumber(item) then -- if it is just the number than add "Q" in front
−
item = 'Q'..item
+
item = 'Item:Q'..item
end
end
item = string.gsub( string.upper(item), 'PROPERTY:P', 'P') -- make all the properties the same and capitalize
item = string.gsub( string.upper(item), 'PROPERTY:P', 'P') -- make all the properties the same and capitalize