Modulo:Citazione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
miglioro il controllo dei doi e semplifico estrazione doi inattivo (da en.wiki)
Moroboshi (discussione | contributi)
Riga 1 247:
local f = cfg.external_link_type[Format:lower()]
if f then
Format = mw.ustring.format(' (<span style="font-weight: bolder; font-size: smaller;80%%">[[<abbr title="%s|">%s]]</abbr></span>)', f.linktext, f.label)
else
table.insert( z.message_tail, { set_error('unknown_format', Format, true) } );
Riga 1 699:
-- Elenco i formati di documenti gestiti
function z.list_external_links(frame)
local rows = {'{| class = "wikitable sortable"\n!codice!!collegamento!!visualizzatoTesto comepopup'}
local keys = {}
for key, _ in pairs(cfg.external_link_type) do
Riga 1 706:
table.sort(keys)
for _,key in ipairs(keys) do
rows[#rows+1] = mw.ustring.format('|-\n|' .. key .. '%s|| [[%s', ..key, cfg.external_link_type[key].link ..text)
']] || (<span style="font-weight: bolder; font-size: smaller;">' ..
cfg.external_link_type[key].label .. '</span>)'
end
rows[#rows+1] = "|}"