Module:Infobox television season name: Difference between revisions
NeonWabbit (talk | contribs) No edit summary |
NeonWabbit (talk | contribs) No edit summary |
||
| Line 220: | Line 220: | ||
modifiedTitle = string.gsub(modifiedTitle, "_DAB_", disambiguation) | modifiedTitle = string.gsub(modifiedTitle, "_DAB_", disambiguation) | ||
return modifiedTitle, pipedLink | return modifiedTitle, pipedLink | ||
-- Titles like "Survivor 50: In the Hands of the Fans" which can be tricky to automaticaly set. | |||
elseif title == modifiedTitle then | |||
return "", nil | |||
-- Titles such as "Big Brother Brasil 2". | -- Titles such as "Big Brother Brasil 2". | ||
| Line 384: | Line 388: | ||
seasonType = getSeasonType(titleWithoutDisambiguation) | seasonType = getSeasonType(titleWithoutDisambiguation) | ||
-- For pages like "Doctor Who specials (2008–2010)". | -- For pages like "Doctor Who specials (2008–2010)" or "Euphoria specials". | ||
if seasonType == "specials" then | if seasonType == "specials" then | ||
local disambiguation = getDisambiguation(title) or "" | local disambiguation = getDisambiguation(title) or "" | ||
if disambiguation == "" then seasonType = "Specials" end | |||
return disambiguation .. " " .. seasonType | return disambiguation .. " " .. seasonType | ||
end | end | ||