Modulo:Sandbox/Sakretsu: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
test
fix
Riga 10:
if content then
for link in string.gmatch(content, '{{%s*[Bb]ar7/.-|(.-)}}') do
if label:find('|') then
link = string.match(link, '^([^|]-|?[^|]+)')
table.insert(ret link, '[['label = string.. match(link .., '^([^|]-)|([^|]+)')
link = string.format('[[%s|%s]]', link, label)
else
link = '[[Wikipedia:Bar/Discussioni/' .. link .. ']]'
end
table.insert(ret, link)
end
end
if #ret == 0 then
table.insert(ret, '<i>Nessuna discussione.</i>')
end
return '<dl><dd>' .. table.concat(ret, '</dd></dl><dl><dd> &middot; ') .. '</dd></dl>'
end