Content deleted Content added
HouseBlaster (talk | contribs) for WP:BER |
HouseBlaster (talk | contribs) cleanup, refactor |
||
Line 174:
local function addToMessage(s)
messageBody = messageBody .. s
end
Line 180 ⟶ 187:
-- and is nil if it applies to the entire page or unspecified parts of the page
local function makeTopicBulletPoint(code, scope)
topicBlurb =
if topicBlurb == '' then
addCategory(categoryDatabase['bad-topic'])
Line 192 ⟶ 199:
end
▲ local function makeTopicBulletPoint(code, )
▲ end
-- Makes a restriction bullet point
local function makeRestrictionBulletPoint(code)
Line 221 ⟶ 206:
--[[
--]]
Line 235 ⟶ 220:
messageBody = '<b>The [[Wikipedia:Contentious topics|contentious topics]] procedure applies to this ' .. articleOrPage .. '.</b>'
-- if there's only one topic, we make a short blurb
if numberOfTopics == 1 then
Line 245 ⟶ 228:
.. (yesno(part, false) and '' or (' about <b>' .. part .. '</b>'))
.. ' relate to <b>'
..
▲ title = "Contentious topics/list",
▲ args = { scope = topic }
.. '</b>, a contentious topic.')
end
else
addToMessage(' This ' .. articleOrPage .. ' relates to <b>'
.. getTopicBlurb(completeTopics[1])
▲ .. frame:expandTemplate {
▲ }
.. '</b>, a contentious topic.</p>'
)
Line 270 ⟶ 247:
end
else
addToMessage('<b>' ..
end
end
Line 290 ⟶ 262:
addToMessage('the following contentious topics:\n')
for topic, scope in pairs(partialTopics) do
if
--
makeTopicBulletPoint(topic, nil)
else
Line 300 ⟶ 272:
-- There's only one topic and scope, so this loop only runs once
for topic, scope in pairs(partialTopics) do
addToMessage(
if yesno(scope, nil) == nil then
-- the scope is not a boolean value, so we have a free-text explanation of the applicable parts
|