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

Content deleted Content added
fix
refactor
Line 199:
end
-- helper to call the appropriate parameter from [[Template:Contentious topics/list]]
local function getTopicBlurb(code)
local function callFromList(code, arg)
return frame:expandTemplate{
title = "Contentious topics/list/sandbox", -- REMOVE /sandbox when publishing
args = { scope[arg] = code }
}
end
local function getTopicBlurb(code)
return callFromList(code, 'scope')
end
local function getSuptopicBlurb(code)
return frame:expandTemplate{callFromList(code, 'subtopic')
end
title = "Contentious topics/list/sandbox",
args = { subtopic = code }
-- returns the code for a superTopic
}
local function getSupertopic(code)
return callFromList(code, 'supertopic')
end