Modulo:Citazione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mostra i curatori anche se autore-capitolo è compilato, vedi discussioni 1 e 2
Nessun oggetto della modifica
Riga 26:
 
--[[ ===============================================================================
CaricamentoCaricamente delle tabelle di configurazione del modulo.
===============================================================================]]
local cfg = mw.loadData('Module:Citazione/Configurazione')
Riga 413:
options.pattern = mw.ustring.gsub( options.pattern, '([^%[]%[[^%[]%S+)$1(.-%])', '%1$2%2' );
end
return mw.ustring.format( '[[wikipedia:it:%s|%s]]%s%s',
options.link, options.label, options.separator or " ",
substitute( options.pattern, {mw.text.nowiki(options.id), url_string} )
Riga 1 182:
------------------------------------------------------------------------------
local auto_Periodical = false
if in_array(config.CitationClass, {'web'}) and not is_set(Periodical) and not is_set(PublisherName) and is_set(URL) then
Periodical = mw.ustring.match(URL, "//([^/#%?]*)") or ''
-- tolgo anche eventuale www.
Riga 1 191:
if Periodical and mw.ustring.lower(Title or '') == mw.ustring.lower(Periodical) then
Periodical = nil
end
if Periodical and mw.ustring.lower(PublisherName or '') == mw.ustring.lower(Periodical) then
PublisherName = nil
end
auto_Periodical = true
Line 1 658 ⟶ 1 655:
Authors = wrap(msg_editors, Authors)
end
ifelseif is_set(Contributors) and is_set(Title) then
end
Authors, Editors = Contributors, is_set(Editors) and Editors or Authors
if is_set(Contributors) and is_set(Title) then
Authors, Editors = Contributors, is_set(Editors) and Editors or Authors
end
fragment_citation = Fragment.new({Authors, Chapter}, sepc)
if Chapter ~= "" or Editors ~= "" then
if A:ORIGIN('Periodical') == 'sito' or auto_Periodical then -- antepone "su" anzichè "in" per i siti web
if A:ORIGIN('Periodical') == 'sito' or auto_Periodical then
fragment_citation:last("su")
else