Module:Proposal support: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 8: Line 8:
list = list .. "\n* " .. args[i]
list = list .. "\n* " .. args[i]
end
end
local final = "<span data-sort-value=\"" .. supporters .. "\">" .. list .. "</span>"
local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>'
return final
return final
end
end


return p
return p

Revision as of 17:46, 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, #args do
		list = list .. "\n* " .. args[i]
	end
	local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>'
	return final
end

return p