Module:Infobox television season name/sandbox2: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 197:
local seasonType = getSeasonType(title)
local seasonNumber = getSeasonNumberNew(title)
local pipedLink = seasonType:gsub("^%l", string.upper) .. " "
 
local showName = getShowName(title)
Line 214 ⟶ 213:
 
seasonNumber = seasonNumber + seasonNumberDiff
pipedLink = pipedLinkseasonType:gsub("^%l", string.upper) .. " " .. seasonNumber
 
-- Titles such as "Big Brother 1 (American season)".
Line 227 ⟶ 226:
elseif string.find(disambiguation, "TV series") and not (string.find(disambiguation, ", season") or string.find(disambiguation, ", series")) then
return "", nil
 
-- Standard titles such as "Lost (season 1)".
else
local seasonr = showName .. " " .. seasonType .. " " .. seasonNumber , pipedLink
--mw.log(r)
return showName .. " (" .. disambiguation .. ")" .. season, pipedLink
return r
end
end
Line 265 ⟶ 266:
local title = getTitle(frame)
local articleTitle, pipedLink = getArticleTitleAndPipedLink(title, seasonNumberDiff)
mw.log(articleTitle)
mw.log(pipedLink)
return getArticleLink(articleTitle, pipedLink)
end