Module:Contentious topics/talk notice/sandbox: Difference between revisions

Content deleted Content added
test
save a WIP
 
Line 261:
end
-- check for a superTopic (e.g. South Asia is the superTopic of Indian military history)
local superTopic = callFromListTemplategetSupertopic(code, 'supertopic')
if superTopic ~= '' then
-- we have a superTopic, so explain that
Line 310:
local subtopicBlurb = getSubtopicBlurb(theCTOP)
if subtopicBlurb ~= '' then
local topicSubpage = callFromListTemplate(callFromListTemplate(theCTOP, 'supertopic'), 'topic-subpage')
addToMessage(' to <b>' .. subtopicBlurb .. '</b>, ' .. ' part of the contentious topic designation for ' .. makeSubtopicCompleteBlurb(theCTOP))
else
Line 331 ⟶ 330:
-- TODO: refactor makeTopicBulletPoint into a more versitile function, allowing it to be called here
addToMessage('<b>')
local superTopic = callFromListTemplategetSupertopic(completeTopics[1], 'supertopic')
if superTopic ~= '' then
addToMessage(getSubtopicBlurb(completeTopics[1]) .. '</b>, part of the contentious topic designation for ' .. makeSubtopicCompleteBlurb(completeTopics[1]))
else
Line 361 ⟶ 360:
-- There's only one topic and scope, so this loop only runs once
for topic, scope in pairs(partialTopics) do
addToMessage('<b>'local ..superTopic getTopicBlurb= getSupertopic(topic) .. '</b>')
if superTopic ~= '' then
addToMessage('<b>' .. getSubtopicBlurb(topic) .. '</b>')
else
addToMessage('<b>' .. getTopicBlurb(topic) .. '</b>')
end
if yesno(scope, nil) == nil then
-- the scope is not a boolean value, so we have a free-text explanation of the applicable parts
addToMessage(', in particular the parts about <b>' .. scope .. '</b>')
end
local superTopic = callFromListTemplate(topic, 'supertopic')
if superTopic ~= '' then
addToMessage('. This is a subtopic of <b>' .. makeSubtopicCompleteBlurb(topic) .. '</b>.</p>')
else
addToMessage('.</p>')