Module:Entry/metatable: Difference between revisions

Change default icon size of GBA levels from 20px wide to 20px tall to maintain original Remix icon width
(Default icon size for more DS stages)
(Change default icon size of GBA levels from 20px wide to 20px tall to maintain original Remix icon width)
Line 61: Line 61:
function entryMT.defaultIconSize(entry)
function entryMT.defaultIconSize(entry)
if entry.console == "GBA" or entry.console == "Arcade" then
if entry.console == "GBA" or entry.console == "Arcade" then
return (entry.stage == "E" or entry.stage == "T") and "40px" or "20px"
return (entry.stage == "E" or entry.stage == "T") and "40px" or "x20px"
elseif entry.console == "DS" then
elseif entry.console == "DS" then
return (entry.stage == "B" or entry.stage == "C") and "34px"
return (entry.stage == "B" or entry.stage == "C") and "34px"
420

edits