Module:Pagan Gods

local start = "[[Human Paganism#" local deities = {	[1] = {		['link'] = "Hróthward / Rýthwardar / Hrúdwerdaz",		['alternative_names'] = { "Hróthward", "Rýthwardar", "Hrúdwerdaz" }		},	[2] = {		['link'] = "Thynfirth / Thömbarthar / Thunfirdaz",		['alternative_names'] = { "Thynfirth", "Thömbarthar", "Thunfirdaz", "Theombarthar" }		},	[3] = {		['link'] = "Clodéna / Klýdina / Kludína",		['alternative_names'] = { "Clodéna", "Klýdina", "Kludína" }		},	[4] = {		['link'] = "Mýrr / Mörrar / Murrjaz",		['alternative_names'] = { "Mýrr", "Mörrar", "Murrjaz", "Moerrar" }		},	[5] = {		['link'] = "Wýrtha / Wörtha / Wúrida",		['alternative_names'] = { "Wýrtha", "Wörtha", "Wúrida", "Woertha" }		},	[6] = {		['link'] = "Eozawak / Ydjawakr / Udzjawakaz",		['alternative_names'] = { "Eozawak", "Ydjawakr", "Udzjawakaz" }		},	[7] = {		['link'] = "Gæryca (Etrand-only)",		['alternative_names'] = { "Gæryca", "Yeryca", "Garjuka", "Gaeryca" }		},	[8] = {		['link'] = "Fýthbrók (Etrancoast-only)",		['alternative_names'] = { "Fýthbrók", "Fídbrúkaz" }		} }

local function check_name(name) local to_return = "" for key,value in ipairs(deities) do		for num,alt in ipairs(value['alternative_names']) do			if alt == name then to_return = start .. value['link'] .. "|" .. alt .. "]]"			end end end return to_return end

local p = {} function p.main(frame) return check_name(frame.args[1]) end return p