Anonymous user
Module:Inventory slot: Difference between revisions
m
Added count to non-sets too
imported>Ttv pedro270707 m (p.parseString() should now correctly handle nameless items.) |
imported>Ttv pedro270707 m (Added count to non-sets too) |
||
Line 114: | Line 114: | ||
if item ~= pageName and item then | if item ~= pageName and item then | ||
link = item | link = item | ||
end | |||
if count then | |||
local itemCount = mw.html.create( "span" ) | |||
itemCount:cssText( "position: absolute; right: -2px; bottom: -5px; pointer-events: none;" ) | |||
:addClass( "c-f" ) | |||
:addClass( "shadow" ) | |||
:wikitext( count ) | |||
slot:node( itemCount ) | |||
end | end | ||