<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_television</id>
	<title>Module:Infobox television - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_television"/>
	<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Infobox_television&amp;action=history"/>
	<updated>2026-05-16T17:19:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Infobox_television&amp;diff=63105&amp;oldid=prev</id>
		<title>PaddingtonBear: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Infobox_television&amp;diff=63105&amp;oldid=prev"/>
		<updated>2024-01-06T09:03:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:03, 6 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>PaddingtonBear</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Infobox_television&amp;diff=63104&amp;oldid=prev</id>
		<title>[[wikipedia:]]&gt;Gonnym: added check to see if italics or bold are used in the date field. This might be removed later on if valid false positives are found, but for now it will allow finding incorrect usages and fix them</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Infobox_television&amp;diff=63104&amp;oldid=prev"/>
		<updated>2023-11-02T12:58:05Z</updated>

		<summary type="html">&lt;p&gt;added check to see if italics or bold are used in the date field. This might be removed later on if valid false positives are found, but for now it will allow finding incorrect usages and fix them&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--- @module&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local maintenance_categories = {&lt;br /&gt;
	incorrectly_formatted = &amp;quot;[[Category:Pages using infobox television with incorrectly formatted values|%s]]&amp;quot;,&lt;br /&gt;
	image_values_without_an_image = &amp;quot;[[Category:Pages using infobox television with image-related values without an image]]&amp;quot;,&lt;br /&gt;
	unnecessary_title_parameter = &amp;quot;[[Category:Pages using infobox television with unnecessary name parameter]]&amp;quot;,&lt;br /&gt;
	non_matching_title = &amp;quot;[[Category:Pages using infobox television with non-matching title]]&amp;quot;,&lt;br /&gt;
	flag_icon = &amp;quot;[[Category:Pages using infobox television with flag icon]]&amp;quot;,&lt;br /&gt;
	dates_incorrectly_formatted = &amp;quot;[[Category:Pages using infobox television with nonstandard dates]]&amp;quot;,&lt;br /&gt;
	manual_display_title = &amp;quot;[[Category:Pages using infobox television with unnecessary manual displaytitle]]&amp;quot;,&lt;br /&gt;
	manual_display_title_temp_tracking = &amp;quot;[[Category:Pages using infobox television with manual displaytitle]]&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--- Returns a table consisting of the title&amp;#039;s title parts.&lt;br /&gt;
---&lt;br /&gt;
--- The return table&amp;#039;s properties:&lt;br /&gt;
--- - title - The title.&lt;br /&gt;
--- - disambiguation - the disambiguation text without parentheses.&lt;br /&gt;
---&lt;br /&gt;
--- Note: could potentially be moved to an outside module for other template and module uses.&lt;br /&gt;
---&lt;br /&gt;
--- @param text string&lt;br /&gt;
--- @return table&amp;lt;string, string | nil&amp;gt;&lt;br /&gt;
local function get_title_parts(text)&lt;br /&gt;
	local title, disambiguation = string.match(text, &amp;quot;^(.+) (%b())$&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	if not title or type(title) ~= &amp;quot;string&amp;quot; then&lt;br /&gt;
		title = text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	---@type table&amp;lt;string, string | nil&amp;gt;&lt;br /&gt;
	local title_parts = {title = --[[---@not number | nil]] title, disambiguation = nil}&lt;br /&gt;
&lt;br /&gt;
	if not disambiguation or type(disambiguation) ~= &amp;quot;string&amp;quot; then&lt;br /&gt;
		return title_parts&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Remove outside parentheses from names which use parentheses as part of the name such as &amp;quot;episode (Randall and Hopkirk (Deceased))&amp;quot;.&lt;br /&gt;
	disambiguation = string.sub(--[[---@not number | nil]] disambiguation, 2, -2)&lt;br /&gt;
	title_parts.disambiguation = --[[---@not number]] disambiguation&lt;br /&gt;
	return title_parts&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the italic_title value is not &amp;quot;no&amp;quot;.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |italic_title=&lt;br /&gt;
---&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function is_italic_title_valid_value(args)&lt;br /&gt;
	if args.italic_title and args.italic_title ~= &amp;quot;no&amp;quot; then&lt;br /&gt;
		return string.format(maintenance_categories.incorrectly_formatted, &amp;quot;Italic title&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the dates are not formatted correctly with&lt;br /&gt;
--- {{Start date}} and {{End date}} templates.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |first_aired=&lt;br /&gt;
--- - |released=&lt;br /&gt;
--- - |last_aired=&lt;br /&gt;
---&lt;br /&gt;
--- @param start_date string The start date value.&lt;br /&gt;
--- @param end_date string The end date value.&lt;br /&gt;
--- @return string&lt;br /&gt;
local function are_dates_formatted_correctly(start_date, end_date)&lt;br /&gt;
	if start_date and not string.find(start_date, &amp;quot;dtstart&amp;quot;) then&lt;br /&gt;
		return maintenance_categories.dates_incorrectly_formatted&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if end_date and (not string.find(end_date, &amp;quot;dtend&amp;quot;) and end_date ~= &amp;quot;present&amp;quot;) then&lt;br /&gt;
		return maintenance_categories.dates_incorrectly_formatted&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the dates are not formatted correctly&lt;br /&gt;
--- and using &amp;quot;Original&amp;quot; or &amp;quot;Revival&amp;quot; to denote a split in the date range.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |first_aired=&lt;br /&gt;
--- - |released=&lt;br /&gt;
--- - |last_aired=&lt;br /&gt;
---&lt;br /&gt;
--- @param start_date string The start date value.&lt;br /&gt;
--- @param end_date string The end date value.&lt;br /&gt;
--- @return string&lt;br /&gt;
local function are_dates_formatted_correctly_date_range(args)&lt;br /&gt;
	for _, v in pairs(args) do&lt;br /&gt;
		if string.find(string.lower(v), &amp;quot;original&amp;quot;)	or &lt;br /&gt;
		string.find(string.lower(v), &amp;quot;revival&amp;quot;) or &lt;br /&gt;
		string.find(v, &amp;quot;&amp;#039;&amp;#039;&amp;quot;) then&lt;br /&gt;
			return maintenance_categories.dates_incorrectly_formatted&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if a {{Italic title}} or {{DISPLAYTITLE}} template is used.&lt;br /&gt;
---&lt;br /&gt;
--- Testing parameters:&lt;br /&gt;
--- - |page_test= - a real Wikipedia page to read the content of the page.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |italic_title=&lt;br /&gt;
---&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function has_display_title(args)&lt;br /&gt;
	--TODO: when testing below is done uncomment code&lt;br /&gt;
	--if args.italic_title then&lt;br /&gt;
	--	return &amp;quot;&amp;quot;&lt;br /&gt;
	--end&lt;br /&gt;
&lt;br /&gt;
	local article&lt;br /&gt;
	if args.page_test then&lt;br /&gt;
		article = mw.title.new(args.page_test)&lt;br /&gt;
	else&lt;br /&gt;
		article = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local page_text = article:getContent()&lt;br /&gt;
	if not page_text then&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if string.find(page_text, &amp;quot;{{[Ii]talic title&amp;quot;) and not string.match(page_text, &amp;quot;{{[Ii]talic title|all=yes}}&amp;quot;)then&lt;br /&gt;
		return maintenance_categories.manual_display_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local display_title = string.match(page_text, &amp;quot;{{DISPLAYTITLE:(.*)}}&amp;quot;)&lt;br /&gt;
	local article_title = article.text&lt;br /&gt;
	if display_title then&lt;br /&gt;
		if article_title == display_title or article_title == string.sub(display_title, 3, string.len(display_title) - 2) then&lt;br /&gt;
			return maintenance_categories.manual_display_title&lt;br /&gt;
		elseif string.find(display_title, &amp;quot;&amp;lt;sub&amp;gt;&amp;quot;) or string.find(display_title, &amp;quot;&amp;lt;sup&amp;gt;&amp;quot;) then&lt;br /&gt;
			-- TODO: This is valid. Will remove when done with cleanup.&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			-- TODO: remove when done checking results.&lt;br /&gt;
			return maintenance_categories.manual_display_title_temp_tracking&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if a flag icon is used.&lt;br /&gt;
---&lt;br /&gt;
--- All the infobox values are checked.&lt;br /&gt;
---&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function has_flag_icon(args)&lt;br /&gt;
	for _, v in pairs(args) do&lt;br /&gt;
		if string.find(v, &amp;quot;flagicon&amp;quot;) then&lt;br /&gt;
			return maintenance_categories.flag_icon&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the values are linked or formatted.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |language=&lt;br /&gt;
---&lt;br /&gt;
--- The function currently checks if the following values are present:&lt;br /&gt;
--- - ] - links.&lt;br /&gt;
---&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function are_values_linked_or_formatted(args)&lt;br /&gt;
	args = {language = args.language}&lt;br /&gt;
	for key, value in pairs(args) do&lt;br /&gt;
		for _, bad_value in pairs({&amp;quot;]&amp;quot;}) do&lt;br /&gt;
			if string.find(value, bad_value, 1, true) then&lt;br /&gt;
				return string.format(maintenance_categories.incorrectly_formatted, key)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the |image= value includes the &amp;quot;File:&amp;quot; or &amp;quot;Image:&amp;quot; prefix.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |image=&lt;br /&gt;
---&lt;br /&gt;
--- @param image string&lt;br /&gt;
--- @return string&lt;br /&gt;
local function is_image_using_incorrect_syntax(image)&lt;br /&gt;
	if not image then&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if string.find(image, &amp;quot;[Ff]ile:&amp;quot;) or string.find(image, &amp;quot;[Ii]mage:&amp;quot;) then&lt;br /&gt;
		return string.format(maintenance_categories.incorrectly_formatted, &amp;quot;image&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the |image_size= value includes &amp;quot;px&amp;quot;.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |image_size=&lt;br /&gt;
---&lt;br /&gt;
--- @param image_size string&lt;br /&gt;
--- @return string&lt;br /&gt;
local function is_image_size_using_px(image_size)&lt;br /&gt;
	if image_size and string.find(image_size, &amp;quot;px&amp;quot;) then&lt;br /&gt;
		return string.format(maintenance_categories.incorrectly_formatted, &amp;quot;image_size&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if there is no image file while image auxiliary values are present.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |image=&lt;br /&gt;
--- - |image_size=&lt;br /&gt;
--- - |image_upright=&lt;br /&gt;
--- - |image_alt=&lt;br /&gt;
--- - |alt=&lt;br /&gt;
--- - |caption=&lt;br /&gt;
---&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function are_image_auxiliary_values_used_for_no_image(args)&lt;br /&gt;
	if args.image then&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args.image_size or args.image_upright or args.image_alt or args.alt or args.caption then&lt;br /&gt;
		return maintenance_categories.image_values_without_an_image&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns the display title text used in either the {{DISPLAYTITLE}} or {{Italic title}} templates.&lt;br /&gt;
---&lt;br /&gt;
--- @param page_text string&lt;br /&gt;
--- @param article_title string&lt;br /&gt;
--- @return string | nil&lt;br /&gt;
local function get_display_title_text(page_text, article_title)&lt;br /&gt;
	if not page_text then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local title_modification = string.match(page_text, &amp;quot;{{DISPLAYTITLE:(.-)}}&amp;quot;)&lt;br /&gt;
	if title_modification and type(title_modification) == &amp;quot;string&amp;quot; then&lt;br /&gt;
		local title_parts = get_title_parts(title_modification)&lt;br /&gt;
		return string.gsub(title_parts.title, &amp;quot;&amp;#039;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	title_modification = string.match(page_text, &amp;quot;{{[Ii]talic title|all=yes}}&amp;quot;)&lt;br /&gt;
	if title_modification and type(title_modification) == &amp;quot;string&amp;quot; then&lt;br /&gt;
		return article_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns the title used in the {{Lowercase title}} template and an optional maintenance category.&lt;br /&gt;
---&lt;br /&gt;
--- @param page_text string&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @param article_title string&lt;br /&gt;
--- @param title_parts table&lt;br /&gt;
--- @param return_category boolean&lt;br /&gt;
--- @return string | nil&lt;br /&gt;
local function get_lowercase_template_status(page_text, args, article_title, title_parts, return_category)&lt;br /&gt;
	if not page_text then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local lowercase_template =  string.match(page_text, &amp;quot;{{[Ll]owercase title.-}}&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	if not lowercase_template then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local lowercase_title&lt;br /&gt;
	if string.find(lowercase_template, &amp;quot;|force=&amp;quot;) then&lt;br /&gt;
		lowercase_title = string.gsub(article_title,&amp;quot;^%u&amp;quot;, string.lower)&lt;br /&gt;
	else&lt;br /&gt;
		lowercase_title = string.gsub(title_parts.title,&amp;quot;^%u&amp;quot;, string.lower)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if return_category and args.name then&lt;br /&gt;
		if args.name == lowercase_title then&lt;br /&gt;
			return maintenance_categories.unnecessary_title_parameter&lt;br /&gt;
		else&lt;br /&gt;
			return maintenance_categories.non_matching_title&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return lowercase_title&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns the title used in the {{Correct title}} template and an optional maintenance category.&lt;br /&gt;
---&lt;br /&gt;
--- @param page_text string&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @param return_category boolean&lt;br /&gt;
--- @return string | nil&lt;br /&gt;
local function get_correct_title_value(page_text, args, return_category)&lt;br /&gt;
	if not page_text then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local correct_title_template_pattern = &amp;quot;{{[Cc]orrect title|title=(.*)|reason=.-}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local correct_title = string.match(page_text, correct_title_template_pattern)&lt;br /&gt;
&lt;br /&gt;
	if not correct_title then&lt;br /&gt;
		correct_title_template_pattern = &amp;quot;{{[Cc]orrect title|(.*)|reason=.-}}&amp;quot;&lt;br /&gt;
		correct_title = string.match(page_text, correct_title_template_pattern)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not correct_title and type(correct_title) ~= &amp;quot;string&amp;quot; then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local correct_title_title_parts = get_title_parts(correct_title)&lt;br /&gt;
&lt;br /&gt;
	if return_category and args.name then&lt;br /&gt;
		if args.name == correct_title or args.name == correct_title_title_parts.title then&lt;br /&gt;
			return maintenance_categories.unnecessary_title_parameter&lt;br /&gt;
		else&lt;br /&gt;
			return maintenance_categories.non_matching_title&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return correct_title&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns a maintenance category if the infobox title is equal to the article title.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |name=&lt;br /&gt;
---&lt;br /&gt;
--- The function currently checks if the infobox title is equal to the article title while ignoring styling such as:&lt;br /&gt;
--- - Nowrap spans.&lt;br /&gt;
--- - Line breaks.&lt;br /&gt;
---&lt;br /&gt;
--- A return value can be one of three options:&lt;br /&gt;
--- - The value of maintenance_categories.non_matching_title - when the args.title does not match the article title.&lt;br /&gt;
--- - The value of maintenance_categories.unnecessary_title_parameter - when the args.title matches the article title.&lt;br /&gt;
--- - An empty string - when args.name isn&amp;#039;t used or the args.name uses an allowed modification&lt;br /&gt;
--- (such as a nowrap template) while the rest of the args.name matches the article title.&lt;br /&gt;
---&lt;br /&gt;
--- Testing parameters:&lt;br /&gt;
--- - |page_test= - a real Wikipedia page to read the content of the page.&lt;br /&gt;
--- - |page_title_test= - the title of the page being checked.&lt;br /&gt;
---&lt;br /&gt;
--- @param frame table&lt;br /&gt;
--- @param args table&lt;br /&gt;
--- @return string&lt;br /&gt;
local function is_infobox_title_equal_to_article_title(frame, args)&lt;br /&gt;
	if not args.name then&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local page_text&lt;br /&gt;
	if args.page_test then&lt;br /&gt;
		page_text = mw.title.new(args.page_test):getContent()&lt;br /&gt;
	else&lt;br /&gt;
		page_text = mw.title.getCurrentTitle():getContent()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Check if the article is using a {{Correct title}} template.&lt;br /&gt;
	local correct_title = get_correct_title_value(page_text, args, true)&lt;br /&gt;
	if correct_title then&lt;br /&gt;
		return correct_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local article_title = args.page_title_test&lt;br /&gt;
	if not args.page_title_test then&lt;br /&gt;
		article_title = mw.title.getCurrentTitle().text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Remove disambiguation.&lt;br /&gt;
	local title_parts = get_title_parts(article_title)&lt;br /&gt;
&lt;br /&gt;
	-- Check if the article is using a {{Lowercase title}} template.&lt;br /&gt;
	local lowercase_title = get_lowercase_template_status(page_text, args, article_title, title_parts, true)&lt;br /&gt;
	if lowercase_title then&lt;br /&gt;
		return lowercase_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Remove nowrap span.&lt;br /&gt;
	if string.find(args.name, &amp;quot;nowrap&amp;quot;) then&lt;br /&gt;
		local title = frame:expandTemplate{title = &amp;quot;Strip tags&amp;quot;, args = {args.name}}&lt;br /&gt;
		if title == article_title or title == title_parts.title then&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		return maintenance_categories.non_matching_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Remove line breaks and additional spaces as a result.&lt;br /&gt;
	if string.find(args.name, &amp;quot;&amp;lt;br%s?/?&amp;gt;&amp;quot;) then&lt;br /&gt;
		local title, _ = string.gsub(args.name, &amp;quot;&amp;lt;br%s?/?&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		title, _ = string.gsub(title, &amp;quot;  &amp;quot;, &amp;quot; &amp;quot;)&lt;br /&gt;
		if title == article_title or title == title_parts.title then&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		return maintenance_categories.non_matching_title&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args.name == article_title or args.name == title_parts.title then&lt;br /&gt;
		return maintenance_categories.unnecessary_title_parameter&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Article and infobox titles do not match.&lt;br /&gt;
	return maintenance_categories.non_matching_title&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns the relevant maintenance categories based on the {{Infobox television}} values validated.&lt;br /&gt;
---&lt;br /&gt;
--- @param frame table&lt;br /&gt;
--- @return string&lt;br /&gt;
function p.validate_values(frame)&lt;br /&gt;
	local getArgs = require(&amp;quot;Module:Arguments&amp;quot;).getArgs&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	local categories = {}&lt;br /&gt;
	table.insert(categories, is_infobox_title_equal_to_article_title(frame, args))&lt;br /&gt;
	table.insert(categories, has_display_title(args))&lt;br /&gt;
	table.insert(categories, are_image_auxiliary_values_used_for_no_image(args))&lt;br /&gt;
	table.insert(categories, is_image_using_incorrect_syntax(args.image))&lt;br /&gt;
	table.insert(categories, is_image_size_using_px(args.image_size))&lt;br /&gt;
	table.insert(categories, are_values_linked_or_formatted(args))&lt;br /&gt;
	table.insert(categories, has_flag_icon(args))&lt;br /&gt;
	table.insert(categories, are_dates_formatted_correctly(args.first_aired or args.released, args.last_aired))&lt;br /&gt;
	table.insert(categories, are_dates_formatted_correctly_date_range({args.first_aired, args.released, args.last_aired}))&lt;br /&gt;
	table.insert(categories, is_italic_title_valid_value(args))&lt;br /&gt;
&lt;br /&gt;
	return table.concat(categories, &amp;quot;&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Returns the text used for the |above= field of the infobox.&lt;br /&gt;
---&lt;br /&gt;
--- Infobox parameters checked:&lt;br /&gt;
--- - |name=&lt;br /&gt;
---&lt;br /&gt;
--- Testing parameters:&lt;br /&gt;
--- - |page_test= - a real Wikipedia page to read the content of the page.&lt;br /&gt;
--- - |page_title_test= - the title of the page being checked.&lt;br /&gt;
---&lt;br /&gt;
--- @param frame table&lt;br /&gt;
--- @return string&lt;br /&gt;
function p.above_title(frame)&lt;br /&gt;
	local getArgs = require(&amp;quot;Module:Arguments&amp;quot;).getArgs&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	local page&lt;br /&gt;
	if args.page_test then&lt;br /&gt;
		page = mw.title.new(args.page_test)&lt;br /&gt;
	else&lt;br /&gt;
		page = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local page_text = page:getContent()&lt;br /&gt;
&lt;br /&gt;
	local article_title = args.page_title_test&lt;br /&gt;
	if not args.page_title_test then&lt;br /&gt;
		article_title = page.text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local title_format = &amp;quot;&amp;#039;&amp;#039;%s&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local correct_title = get_correct_title_value(page_text, args, false)&lt;br /&gt;
	if correct_title then&lt;br /&gt;
		return string.format(title_format, correct_title)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local title_parts = get_title_parts(article_title)&lt;br /&gt;
&lt;br /&gt;
	local lowercase_title = get_lowercase_template_status(page_text, args, article_title, title_parts, false)&lt;br /&gt;
	if lowercase_title then&lt;br /&gt;
		return string.format(title_format, lowercase_title)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args.italic_title then&lt;br /&gt;
		local title_modification = get_display_title_text(page_text, article_title)&lt;br /&gt;
		if title_modification then&lt;br /&gt;
			return string.format(title_format, title_modification)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if args.name then&lt;br /&gt;
		return string.format(title_format, args.name)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return string.format(title_format, title_parts.title)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>[[wikipedia:]]&gt;Gonnym</name></author>
	</entry>
</feed>