Module:Episode
Appearance
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |
local data = mw.loadData("Module:Episode/data")
local p={}
function p.getInfo(frame)
local episode = frame.args[1]
local episode = string.lower(episode)--for ex. "chilren of the gods"
local nmspace, episodelink, episodetitle = unpack(data[episode])
if nmspace == "" then
return string.format("Episode link = %s, Episode title = %s", episodelink, episodetitle)
else
return string.format("Namespace = " + namespace + ", Episode link = " + episodelink + ", Episode title = "+ episodetitle)
end
end
return p