Modulo:Quorum: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m più preciso
correggo
 
Riga 36:
local candidate = election:match('Elezioni/([^/]+)')
table.insert(candidates, string.format('[[User:%s|%s]]', candidate, candidate))
votes[#candidates] = 0
for heading, section in string.gmatch(content, '\n==+ *([^\n]-) *==+(.-)\r') do
if heading == 'Pro' or heading == 'Contro' then
local _, count = section:gsub('\n#[^#:*\n][^\n]-%a', '')
quorum = quorum + count
votes[#candidates] = (votes[#candidates] or 0) + count
end
end