Jump to content

Module:Television episode disambiguation description

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 11:35, 20 September 2018 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

function p.getFormmatedArticleLink(articleName)
	 title, disambiguation = string.gmatch(articleName, "\(")
	 
	 title = "\" + title + \""
	 
	 tvSeries, extendedDisambiguation = string.gmatch(disambiguation, "episode")
	 
	 tvSeries = tvSeries --add italics somehow
	 
	 newTitle = title + "(" + tvSeries + extendedDisambiguation + ")"
	 
	 return newTitle
end

return p