Module:Series

-- local p = {} local seriesData = mw.loadData('Module:Series/data')

function p.properSeries(frame) local name= frame.args[1] name = mw.ustring.upper(name) if seriesData[name] then properName=seriesData[name][1] else properName=frame.args[1] .."[[Category:"   		.."Broken S link|"    		..frame.args[1]    		.."]]" end return properName end

function p.linkSeries(frame) local name= frame.args[1] name= mw.ustring.upper(name) local linkname="" if seriesData[name] then linkname="links-" ..seriesData[name][2] end return linkname end return p