Modulo:Sandbox/Sakretsu: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m non serve |
test |
||
Riga 1:
local p = {}
function p.
local
if
return error('Indicare una pagina giornaliera del bar')
local content = mw.title.getCurrentTitle():getContent()▼
end
local ret = {}
if content then
for link in string.gmatch(content, '{{%s*[Bb]ar7/.-|(.-)}}') do
link = string.match(link, '^([^|]-|?[^|]+)')
table.insert(ret, '[[' .. link .. ']]')
end
end
if #ret == 0 then
table.insert(ret, 'Nessuna discussione.')
end
return '<dl><dd>' .. table.concat(ret, '</dd></dl><dl><dd>') .. '</dd></dl>'
end
|