Module:Episode

De Buck Wiki
Aller à la navigation Aller à la recherche
Documentation module[créer]
-- Used to extract the exact title of an episode

local p = {}


-- Retrieving full episode title

function p.title(frame)
	local articleData = mw.loadData( 'Module:Episode/data')
	local articlePage = frame.args[1]
	local articleResource = articleData[articlePage]
	local tab = mw.text.split (articleResource, " ")
	
	return (tab[1])
	
end

return p