Modulo:Vedi anche/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m fix |
m semplifico |
||
Riga 55:
local p = {}
local styles = frame:extensionTag{ name = 'templatestyles', args = {src = styles} }
-- Funzione per il template {{Vedi anche sezione}}.
function p.sezione(frame)
local arg = frame:getParent().args[1]
local wlink = arg and string.format("'''[[#%s|%s]]'''", arg, arg) or ''
▲ } .. buildHTML('sezione ' .. wlink)
end
Line 70 ⟶ 67:
function p.main(frame)
local lastArg, conjunction
local args = {}
Line 84 ⟶ 80:
end
▲ } .. buildHTML(mw.text.listToText(args, ', ', conjunction), true)
end
|