Modulo:Citazione: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
correzioni alla funzione per generare il formato |
correggo funzione get_format |
||
Riga 9:
error_categories = {}; -- lista delle categorie di errore
error_ids = {}; -- lista dei codici di errore
message_tail = {}; --
}
Riga 860:
--[[ ===============================================================================
Genera la
===============================================================================]]
local function get_format(format, url)
Riga 867:
if not is_set(try_format) then
try_format = mw.ustring.match(url, "^.*%.(.+)$" ) or ''
if not cfg.external_link_type[try_format:lower()] then
else▼
try_format = mw.ustring.match(try_format, "^(.+)#.+$") or ''
if not cfg.external_link_type[try_format:lower()] then
end
end
Riga 878 ⟶ 876:
-- Se il formato esterno è tra quelli previsti imita lo stile dei template {{PDF}} o {{doc}}
▲ if f then
▲ return mw.ustring.format(' (<span style="font-weight: bolder; font-size:80%%"><abbr title="%s">%s</abbr></span>)', f.text, f.label)
table.insert( z.message_tail, { set_error('unknown_format', try_format, true) } );
end
end
|