Module:Proposal support: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "local p = {} function p.proposalSupport(frame) local args = frame:getParent().args local supporters = #args local list = "" for sig in args do list = list .. "\n* " .. sig end local final = "<span data-sort-value=\"" .. supporters .. "\">" .. list .. "</span>" return final end return p")
 
No edit summary
Line 5: Line 5:
local supporters = #args
local supporters = #args
local list = ""
local list = ""
for sig in args do
for i=1, #arg do
list = list .. "\n* " .. sig
list = list .. "\n* " .. arg[i]
end
end
local final = "<span data-sort-value=\"" .. supporters .. "\">" .. list .. "</span>"
local final = "<span data-sort-value=\"" .. supporters .. "\">" .. list .. "</span>"

Revision as of 15:13, 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 = #args
	local list = ""
	for i=1, #arg do
		list = list .. "\n* " .. arg[i]
	end
	local final = "<span data-sort-value=\"" .. supporters .. "\">" .. list .. "</span>"
	return final
end

return p