Modifica di Modulo:Citazione

Attenzione: non hai effettuato l'accesso. Se effettuerai delle modifiche il tuo indirizzo IP sarà visibile pubblicamente. Se accedi o crei un'utenza, le tue modifiche saranno attribuite al tuo nome utente, insieme ad altri benefici.

Questa modifica può essere annullata. Controlla le differenze mostrate sotto fra le due versioni per essere certo che il contenuto corrisponda a quanto desiderato, e quindi pubblicare le modifiche per completare la procedura di annullamento.

Versione attuale Il tuo testo
Riga 1 189: Riga 1 189:
end
end
-- evito ripetizione se il dominio è stato usato come titolo o editore
-- evito ripetizione se il dominio è stato usato come titolo o editore
if is_set(Periodical) then
if Periodical and mw.ustring.lower(Title or '') == mw.ustring.lower(Periodical) then
if mw.ustring.lower(Title) == mw.ustring.lower(Periodical) then
Periodical = nil
Periodical = ''
end
end
if Periodical and mw.ustring.lower(PublisherName or '') == mw.ustring.lower(Periodical) then
if mw.ustring.lower(PublisherName) == mw.ustring.lower(Periodical) then
PublisherName = nil
PublisherName = ''
end
end
end
auto_Periodical = true
auto_Periodical = true
Riga 1 224: Riga 1 222:


---------------------------------------------------------------
---------------------------------------------------------------
-- Compone la stringa della lingua
-- Compone la stringa del linguaggio
---------------------------------------------------------------
---------------------------------------------------------------
local Language_code = ""
local Language_code = ""
Riga 1 242: Riga 1 240:
first_language = frame_lingue[1]:lower();
first_language = frame_lingue[1]:lower();
local lg_error;
local lg_error;
Language_code, lg_error = require("Modulo:Lingue").lingue(frame_lingue)
Language_code, lg_error = require("Modulo:Linguaggi").lingue(frame_lingue)
if lg_error and #lg_error > 0 then
if lg_error and #lg_error > 0 then
local error_string = mw.text.listToText(lg_error, ", ", " e " )
local error_string = mw.text.listToText(lg_error, ", ", " e " )
Riga 1 301: Riga 1 299:
-- Recupero e formatto lista curatori
-- Recupero e formatto lista curatori
------------------------------------------------------------------------------
------------------------------------------------------------------------------
local msg_editors
local EditorCount, msg_editors
local CuratoriEtal = A['Etalcuratori']
local CuratoriEtal = A['Etalcuratori']
control.coauthors = false
control.coauthors = false
control.etal = is_set(CuratoriEtal)
if is_set(CuratoriEtal) then
control.etal = true
else
control.etal = false
end
if is_set(Editors) then
if is_set(Editors) then
msg_editors = 'editors'
msg_editors = 'editors'
else
else
local EditorCount
Editors, EditorCount = list_people(control, e)
Editors, EditorCount = list_people(control, e)
if is_set(Editors) then
if is_set(Editors) then
msg_editors = EditorCount <= 1 and 'editor' or 'editors'
if EditorCount <= 1 then msg_editors = 'editor' else msg_editors = 'editors' end
end
end
end
------------------------------------------------------------------------------
-- Se non sono definiti autori sostituisco con curatori
------------------------------------------------------------------------------
if not is_set(Authors) and is_set(Editors) then
Authors = Editors
Editors = ""
end
end


------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Recupero e formatto lista autori e curatori di un singolo capitolo dell'opera citata
-- Recupero e formatto lista autori di un singolo capitolo dell'opera citata
------------------------------------------------------------------------------
------------------------------------------------------------------------------
local msg_chapter_editors
local Contributors
local Contributors, ChapterEditors = "", ""
if is_set(Chapter) then
if is_set(Chapter) then
local ChapterEditorCount
local c = extract_names( args, 'ContributorList', A:ORIGIN('Chapter') );
control.etal = false
control.etal = false
Contributors = list_people(control,
Contributors = list_people(control, c)
extract_names( args, 'ContributorList', A:ORIGIN('Chapter') ))
ChapterEditors, ChapterEditorCount = list_people(control,
extract_names( args, 'ChapterEditorList', A:ORIGIN('Chapter') ))
if is_set(ChapterEditors) then
msg_chapter_editors = ChapterEditorCount <= 1 and 'editor' or 'editors'
end
end
end


Riga 1 602: Riga 1 603:
elseif is_set(PublisherName) then
elseif is_set(PublisherName) then
PublisherName = PublisherName .. " " .. OrigDate
PublisherName = PublisherName .. " " .. OrigDate
elseif is_set(Place) then
elseif is_set(Plase) then
Place = Place .. " " .. OrigDate
Place = Place .. " " .. OrigDate
else
else
Riga 1 646: Riga 1 647:
fragment_citation:append(fragment_Title)
fragment_citation:append(fragment_Title)
else
else
if is_set(ChapterEditors) and (is_set(Contributors) or args["anteposizione-curatore"] == "no") then
if is_set(Authors) and is_set(Editors) and is_set(Title) and not is_set(Chapter) then
ChapterEditors = 'a cura di ' .. ChapterEditors
Editors = 'a cura di ' .. Editors
fragment_citation = Fragment.new({Contributors, Chapter, ChapterEditors}, sepc)
fragment_citation = Fragment.new({Authors}, sepc)
fragment_citation:appends({fragment_Title, Editors})
else
else
if is_set(ChapterEditors) then
if is_set(msg_editors) then
ChapterEditors = wrap(msg_chapter_editors, ChapterEditors)
if is_set(Editors) then
end
Editors = wrap(msg_editors, Editors)
if is_set(Chapter) and not (is_set(Contributors) or is_set(ChapterEditors)) then
else
if is_set(Authors) then
Authors = wrap(msg_editors, Authors)
Contributors, Authors = Authors, ""
elseif is_set(Editors) and args["anteposizione-curatore"] ~= "no" then
ChapterEditors, Editors = wrap(msg_editors, Editors), ""
end
end
end
end
fragment_citation = Fragment.new({is_set(Contributors) and Contributors or ChapterEditors, Chapter}, sepc)
if is_set(Contributors) and is_set(Title) then
end
Authors, Editors = Contributors, is_set(Editors) and Editors or Authors
if is_set(Chapter) then
-- antepone "su" anzichè "in" per i siti web
if A:ORIGIN('Periodical') == 'sito' or auto_Periodical then
fragment_citation:last("su")
else
fragment_citation:last("in")
end
end
end
fragment_citation = Fragment.new({Authors, Chapter}, sepc)
if is_set(Editors) and (is_set(Authors) or args["anteposizione-curatore"] == "no" and not is_set(Chapter)) then
if Chapter ~= "" or Editors ~= "" then
Editors = 'a cura di ' .. Editors
-- antepone "su" anzichè "in" per i siti web
fragment_citation:appends({Authors, fragment_Title, Editors})
if A:ORIGIN('Periodical') == 'sito' or auto_Periodical then
else
fragment_citation:last("su")
if is_set(Editors) then
else
Editors = wrap(msg_editors, Editors)
fragment_citation:last("in")
end
end
end
fragment_citation:appends({is_set(Authors) and Authors or Editors, fragment_Title})
fragment_citation:appends({Editors, fragment_Title})
end
end
end
end
Riga 1 688: Riga 1 682:
local fragment_Via = Fragment.new(Via):start(".")
local fragment_Via = Fragment.new(Via):start(".")
local fragment_Quote = Fragment.new({Quote}):start(".")
local fragment_Quote = Fragment.new({Quote}):start(".")
fragment_citation:appends({fragment_ID_list, fragment_URL, fragment_AccessDate, fragment_Archived, fragment_Via})
fragment_citation:appends({fragment_ID_list, fragment_URL, fragment_AccessDate, fragment_Archived, fragment_Via, fragment_Quote})
if PostScript == 'nessuno' then
if PostScript == 'nessuno' then
fragment_citation:last("nothing")
fragment_citation:last("nothing")
Riga 1 694: Riga 1 688:
fragment_citation:last("..")
fragment_citation:last("..")
end
end
fragment_citation:appends({fragment_Quote})
fragment_citation:start(" ")
fragment_citation:start(" ")
local text = Language_code .. tostring(fragment_citation)
local text = Language_code .. tostring(fragment_citation)
Per favore tieni presente che tutti i contributi a Tematiche di genere si considerano pubblicati nei termini d'uso della licenza Creative Commons Attribuzione-Condividi allo stesso modo (vedi Tematiche di genere:Copyright per maggiori dettagli). Se non desideri che i tuoi testi possano essere modificati e ridistribuiti da chiunque senza alcuna limitazione, non inviarli qui.
Inviando il testo dichiari inoltre, sotto tua responsabilità, che è stato scritto da te personalmente oppure è stato copiato da una fonte di pubblico dominio o similarmente libera. Non inviare materiale protetto da copyright senza autorizzazione!
Annulla Guida (si apre in una nuova finestra)

Template utilizzato in questa pagina: