Module:Print ref/switcher

local p = {};

p.ref = function (frame) local title_input = frame.args.title:lower if string.find(title_input, 'jester') then title, titletype = 'The Mighty Nein Origins: Jester Lavorre', 'gn' elseif string.find(title_input, 'caleb') then title, titletype = 'The Mighty Nein Origins: Caleb Widogast', 'gn' elseif string.find(title_input, 'Yasha') then title, titletype = 'The Mighty Nein Origins: Yasha Nydoorin', 'gn' elseif string.find(title_input, 'Nott') or string.find(title_input, 'Veth') then title, titletype = 'The Mighty Nein Origins: Nott the Brave', 'gn' elseif string.find(title_input, 'Fjord') then title, titletype = 'The Mighty Nein Origins: Fjord Stone', 'gn' elseif string.find(title_input, 'Molly') then title, titletype = 'The Mighty Nein Origins: Mollymauk Tealeaf', 'gn' elseif string.find(title_input, 'Home') then title, titletype = 'The Mighty Nein Origins: Home', 'gn' elseif string.find(title_input, 'tbq') or string.find(title_input, 'bright queen') then title, titletype = 'The Tales of Exandria: The Bright Queen', 'comic' elseif string.find(title_input, 'cotn') or string.find(title_input, 'netherdeep') then title, titletype = '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, titletype = 'Explorer\'s Guide to Wildemount', 'book' elseif title_input == 'tcs' or title_input == 'tal\'dorei campaign setting' then title, titletype = 'Tal\'Dorei Campaign Setting', 'book' elseif string.find(title_input, 'reborn') or title_input == 'tcsr' then title, titletype = 'Tal\'Dorei Campaign Setting Reborn', 'book' elseif string.find(title_input, 'k&k') or string.find(title_input, 'kith') then title, titletype = 'Kith & Kin', 'book' elseif string.find(title_input, 'vmo') or string.find(title_input, 'vox machina origins') then if string.find(title_input, 'iii') or string.find(title_input, '3') then title, titletype = 'Vox Machina Origins Series III', 'comic' elseif string.find(title_input, 'ii') or string.find(title_input, '2') then title, titletype = 'Vox Machina Origins Series II', 'comic' elseif string.find(title_input, 'animals') then title, titletype = 'Vox Machina Origins: Animals', 'gn' else title, titletype = 'Vox Machina Origins Series I', 'comic' end elseif title_input == '' then title, titletype = 'Title Missing', '' else title, titletype = title_input, 'custom' end return title, titletype end

return p