Module:ItemList

local p = {}

local prefix_data = { ["Benthic"] = "Connected:", ["Bohemian"] = "Connected:", ["Criminals"] = "Connected:", ["Glass"] = "Connected:", ["Hell"] = "Connected:", ["Revolutionaries"] = "Connected:", ["Rubbery Men"] = "Connected:", ["Shroud"] = "Connected:", ["Society"] = "Connected:", ["Summerset"] = "Connected:", ["The Church"] = "Connected:", ["The Constables"] = "Connected:", ["The Docks"] = "Connected:", ["The Duchess"] = "Connected:", ["The Great Game"] = "Connected:", ["The Masters of the Bazaar"] = "Connected:", ["The Tomb-Colonies"] = "Connected:", ["The Widow"] = "Connected:", ["Urchins"] = "Connected:", ["A Game of Chess"] = "Dreaming Strange Dreams:", ["Death by Water"] = "Having Recurring Dreams:", ["Is Someone There"] = "Having Recurring Dreams:", ["Is Someone There?"] = "Having Recurring Dreams:", ["The Fire Sermon"] = "Having Recurring Dreams:", ["The Burial of the Dead"] = "Having Recurring Dreams:", ["What the Thunder Said"] = "Having Recurring Dreams:", } function p.main(frame) local quality_item_name = frame.args[1] or frame:getParent.args[1] -- quality_item_name = quality_item_name:gsub("^%l", string.upper) if prefix_data[quality_item_name] ~= nil then quality_item_name = prefix_data[quality_item_name] else quality_item_name = "" end return quality_item_name end return p