Module:Print ref/switcher

local p = {};

p.ref = function (frame) local title_input = frame.args.title:lower local type if string.find(title_input, 'jester') then title, type = 'The Mighty Nein Origins: Jester Lavorre', 'gn' elseif string.find(title_input, 'caleb') then title, type = 'The Mighty Nein Origins: Caleb Widogast', 'gn' elseif string.find(title_input, 'Yasha') then title, type = 'The Mighty Nein Origins: Yasha Nydoorin', 'gn' elseif string.find(title_input, 'Nott') or string.find(title_input, 'Veth') then title, type = 'The Mighty Nein Origins: Nott the Brave', 'gn' elseif string.find(title_input, 'Fjord') then title, type = 'The Mighty Nein Origins: Fjord Stone', 'gn' elseif string.find(title_input, 'Molly') then title, type = 'The Mighty Nein Origins: Mollymauk Tealeaf', 'gn' elseif string.find(title_input, 'Home') then title, type = 'The Mighty Nein Origins: Home', 'gn' elseif string.find(title_input, 'tbq') or string.find(title_input, 'bright queen') then title, type = 'The Tales of Exandria: The Bright Queen', 'comic' elseif string.find(title_input, 'cotn') or string.find(title_input, 'netherdeep') then title, type = 'Call of the Netherdeep', 'book' elseif string.find(title_input, 'egtw') or string.find(title_input, 'explorer\'s') or string.find(title_input, 'wildemount') then title, type = 'Explorer\'s Guide to Wildemount', 'book' elseif title_input == 'tcs' or title_input == 'tal\'dorei campaign setting' then title, type = 'Tal\'Dorei Campaign Setting', 'book' elseif string.find(title_input, 'reborn') or title_input == 'tcsr' then title, type = 'Tal\'Dorei Campaign Setting Reborn', 'book' elseif string.find(title_input, 'k&k') or string.find(title_input, 'kith') then title, type = 'Kith & Kin', 'book' elseif string.find(title_input, 'vox machina origins') or string.find(title_input, 'vmo') and string.find(title_input, '[1I]?') then title, type = 'Vox Machina Origins Series I', 'comic' elseif string.find(title_input, 'vox machina origins') or string.find(title_input, 'vmo') and string.find(title_input, '[2(II)]') then title, type = 'Vox Machina Origins Series II', 'comic' elseif string.find(title_input, 'vox machina origins') or string.find(title_input, 'vmo') and string.find(title_input, '[3(III)]') then title, type = 'Vox Machina Origins Series III', 'comic' end return title, type end

return p