Content deleted Content added
Restore tracking |
added tracking for pages that use this module but don't use Module:Episode table |
||
Line 33:
["tba_values"] = "[[Category:Episode lists with TBA values]]",
["nonmatching_numbered_parameters"] = "[[Category:Episode lists with a non-matching set of numbered parameters]]",
["raw_unformatted_storyteleplay"] = "[[Category:Episode lists with unformatted story or teleplay credits]]",
["no_episode_table"] = "[[Category:Epiosde lists missing Episode table]]"
}
Line 64 ⟶ 65:
'TranslitTitle',
}
-- Local function which is used to add a tracking category to the page.▼
local function addTrackingCategory(category)▼
trackingCategories = trackingCategories .. category▼
end▼
-- Local function which is used to check if the page is not using an Episode table template.
-- If it isn't, it adds the page to a tracking category.
local function checkForEpisodeTableTemplate(title)
local content = title:getContent()
if (not string.find(content, "[Ee]pisode table")) then
addTrackingCategory(trackingCategoryList["no_episode_table"])
end
end
-- Local function which is used to retrieve the episode number or production code number,
Line 97 ⟶ 112:
:wikitext(text)
end
▲end
▲-- Local function which is used to add a tracking category to the page.
▲local function addTrackingCategory(category)
▲ trackingCategories = trackingCategories .. category
end
Line 797 ⟶ 807:
end
checkForEpisodeTableTemplate(title)
-- Do not show the summary if this is being transcluded on the initial list page
-- Do include it on all other lists
|