Content deleted Content added
Restored revision 1296767227 by HouseBlaster (talk): Revert my edits |
HouseBlaster (talk | contribs) save a WIP |
||
Line 98:
alwaysAddRestriction(restriction)
end
end
local additional = restrictionsDatabase["additional"][topic]
if additional then
for _, restriction in ipairs(additional) do
maybeAddRestriction(restriction)
end
end
end
for
local additional = restrictionsDatabase["additional-available"][topic]
if additional then
Line 165 ⟶ 171:
-- Determines whether we should use the string "article" or "page"
local articleOrPage = currentTitleObject:inNamespaces(1) and "article" or "page"
--[[ Makes a bullet point for a given contentious topic
Line 233 ⟶ 238:
end
else
local numberofCompleteTopics = #completeTopics
if numberofCompleteTopics ~= 0 then
if numberofCompleteTopics > 1 then
-- there are multiple complete topics, so we make a bullet list
-- TODO THIS BIT
else
messageBody = messageBody .. '<p>The entire ' .. articleOrPage .. ' relates to <b>'
.. frame:expandTemplate{
title = "Contentious topics/list",
args = { scope = completeTopics[1] }
}
.. '</b>, a contentious topic. In addition, the following contentious topics apply to part of this ' .. articleOrPage .. '</p>'
end
end
-- THEN CHECK FOR PARTIAL TOPICS
-- LOOP FOR MULTIPLE TOPICS
end
|