Module:Proposal support: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local dump = require('Module:SMW').dump | |||
function p.proposalSupport(frame) | function p.proposalSupport(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local supporters = #args | return dump(args) | ||
--[[local supporters = #args | |||
local list = "" | local list = "" | ||
for i=1, #args do | for i=1, #args do | ||
Line 9: | Line 11: | ||
end | end | ||
local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>' | local final = '<div data-sort-value="' .. supporters .. '">' .. list .. '\n</div>' | ||
return final | return final]]-- | ||
end | end | ||
return p | return p |
Revision as of 18:01, 3 January 2023
Documentation for this module may be created at Module:Proposal support/doc
local p = {}
local dump = require('Module:SMW').dump
function p.proposalSupport(frame)
local args = frame:getParent().args
return dump(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