Modulo:Interprogetto: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
Riga 38:
local first_link = true
for k,v in pairs(args) do
prefix, label = prefix_links[k]
if prefix_links[k] then
ifprefix, notlabel first_link= thenunpack(prefix_links[k])
if prefix_links[k] leftbar.newline()then
else if not first_link then
leftbar = true leftbar.newline()
else
first_link = true
end
leftbar.wikitext('* [[' .. prefix .. v .. '|' .. label .. ']]')
end
leftbar.wikitext('* [[' .. prefix .. v .. '|' .. label .. ']]')
end
end
Riga 54 ⟶ 56:
root = HtmlBuilder.create('')
RenderLeftBar()
return '<nowiki>' .. tostring(root) .. '</nowiki>'
end