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

Content deleted Content added
No edit summary
No edit summary
 
Line 312:
end
 
--- Returns an {{Italic title}} instance if title qualifies or a blank string.
--TODO: doc
 
--- @param frame table
--- @return string
function p.getItalicTitle(frame)
local getArgs = require("Module:Arguments").getArgs
local args = getArgs(frame)
-- If italic_title is set then "no" is the only valid value.
-- Don't set an italic title.
if args.italic_title then
return ""
Line 324 ⟶ 329:
title = getShowName(getTitleWithoutDisambiguation(title))
 
-- If the infobox is used on List of articles don't set an italic title.
-- TODO: this can be fixed in the future but current usages use a manual display title.
if string.find(title, "List of") then
return ""
Line 331 ⟶ 338:
end
 
--- Returns the text used for the |above= field of the infobox.
--TODO: doc
---
--- @param frame table
--- @return string
function p.getAboveTitle(frame)
local getArgs = require("Module:Arguments").getArgs
Line 340 ⟶ 350:
end
 
--- Returns the relevant text used for the sub-header|subheader= field of the infobox.
---
--- The text is returned in the format of "Season #" or "Series #",