Modulo:RichiestaCU: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
semplifico link |
aggiorno come da discussione |
||
Riga 1:
local p = {}
▲ local colori = {
if colori[arg1] ~= nil then▼
end▼
elseif colori[arg2] ~= nil then▼
end▼
end▼
local function
local
local label = sign:gsub('^.', string.upper):gsub('_', ' ')
▲ positivo = 'Symbol confirmed.svg',
local div = mw.html.create('div')
▲ probabile = 'Symbol support vote.svg',
div
▲ incerto = 'Symbol possible vote.svg',
:addClass('cu-request-block')
▲ negativo = 'Symbol unrelated.svg',
:tag('div')
:addClass('cu-request-symbol')
▲ altro = 'Symbol unsupport vote.svg'
:wikitext(string.format(pattern, icons[sign], label))
:done()
:tag('div')
:addClass('cu-request-list')
:done()
:done()
return tostring(div)
end
local function
local links = {
'[' .. tostring(mw.uri.fullUrl('Speciale:Log', {
}
return
end
function p.
local args = frame:getParent().args
local
local
local
while true do
if
▲ table.insert(res, riga(utente, args['RISULTATO_UTENTE'..numero], sign))
return '<small><span class="error">ERRORE#1: Richiesta non valida: non è stata indicata alcuna utenza.</span></small>'▼
end
local group = icons[result] and result or 'in_attesa'
if not users[group] then users[group] = {} end
table.insert(users[group], getLinks(user))
i = i + 1
▲
else
break
end
end
if users[args.RISULTATOSIGN] then
▲ return table.concat(res, '\n')
table.insert(ret, listUsers(users[args.RISULTATOSIGN], args.RISULTATOSIGN))
▲ end
for k in pairs(icons) do
if users[k] and k ~= args.RISULTATOSIGN then
table.insert(ret, listUsers(users[k], k))
▲ end
▲ end
return table.concat(ret, '\n')
end
|