Module:Sugar Drop levels

-- based on Module:Hexagon levels page

local p = {} local _lookupTable = 'Module:Sugar Drop levels/List' local sugarDropTag = 'Sugar Drop' local function _lookupSugarDropStatus( levelName ) if levelName and not (levelName == '') then local level = levelName:match('^Level (%d+)') if level then local data = mw.loadData( _lookupTable ) return data[tonumber(level)] end end return false end

function p.sugardrop local sdstatus = _lookupSugarDropStatus(mw.title.getCurrentTitle.text) local cat = '' if sdstatus then if sdstatus == sugarDropTag then cat = "" end end return cat end

function p.sugardropinfobox(frame) local name = frame.args[1] local icon = '' if _lookupSugarDropStatus(name) == sugarDropTag then icon = "" end return icon end