Module:Proposal support: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Bongolium500 (talk | contribs) No edit summary Tag: Manual revert |
Bongolium500 (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
function p.proposalSupport(frame) | function p.proposalSupport(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local supporters = | local supporters = 0 | ||
local list = "" | local list = "" | ||
for | for _, sig in ipairs(args) do | ||
list = list .. "\n* " .. | list = list .. "\n* " .. sig | ||
supporters = supporters + 1 | |||
end | end | ||
local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>' | local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>' |
Revision as of 19:26, 3 January 2023
Documentation for this module may be created at Module:Proposal support/doc
local p = {}
function p.proposalSupport(frame)
local args = frame:getParent().args
local supporters = 0
local list = ""
for _, sig in ipairs(args) do
list = list .. "\n* " .. sig
supporters = supporters + 1
end
local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>'
return final
end
return p