Jump to content

Module:Inventory slot: Difference between revisions

m
no edit summary
imported>Ttv pedro270707
m (Fixed number being at the wrong position.)
imported>Ttv pedro270707
mNo edit summary
Line 122: Line 122:
else
else
if link then
if link then
slotContainer:wikitext( "<span style='" .. display .. "' class='no-external-icon'>" .. "[https://bta.miraheze.org/wiki/" .. link .. " " .. tostring( slot ) .. "]" .. "</span>" )
slotContainer:wikitext( "<span style='" .. display .. "' class='no-external-icon'>" .. "[https://bta.miraheze.org/wiki/" .. link:gsub(" ", "_") .. " " .. tostring( slot ) .. "]" .. "</span>" )
else
else
slotContainer:wikitext( "<span style='" .. display .. "'>" .. tostring( slot ) .. "</span>" )
slotContainer:wikitext( "<span style='" .. display .. "'>" .. tostring( slot ) .. "</span>" )