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 ]
Functions | ||||
---|---|---|---|---|
Function name | Input value(s) | Output value | ||
properSeries | Shortcut text | Proper name of series | ||
linkSeries | Shortcut text | Proper name for Table link colors Navbox, Table Format, Synopsis, Episode list header, Season |
- 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