Jump to content

Module:Episode

From Semantic Stargate Wiki
Revision as of 16:41, 21 July 2025 by LIMAFOX76 (talk | contribs)
Documentation icon Module documentation[create]
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 == "" or nil then
		return string.format("Episode link = %s, Episode title = %s", episodelink, episodetitle)
		else
			return string.format("Namespace = %s, Episode link = %s, Episode title = %s", nmespace, episodelink, episodetitle)
	end
end

return p