Arrowverse Wiki
Register
Advertisement
Arrowverse Wiki
Module documentation

This module has various functions described below and should only be utilized on templates. To call a module in a template, insert {{#invoke:Series|function name|various parameters}} onto the template.[ Data ]

For help on this module, please contact an administrator.
Visit Module:Series/doc to edit this text! (How does this work?)

--[[Category:Lua modules]]
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
Advertisement