Modul:Citation/CS1: razlika između inačica

Izbrisani sadržaj Dodani sadržaj
m Vraćanje na inačicu 5907754 koju je 29. lipnja 2021. u 01:11 unio Ivi104
Oznaka: uklanjanje ručnim načinom
m vraćanje konverzije parcijalnog datuma
Redak 2.881:
local Date_origin; -- to hold the name of parameter promoted to Date; required for date error messaging
local PublicationDate = A['PublicationDate'];
local Year = A['Year'];
local Day = A['Day'];
local Month = A['Month'];
local Year = A['Year'];
 
if not utilities.is_set (Date) then
if utilities.is_set(Month) then
Date = Year; -- promote Year to Date
if utilities.is_set(Day) then
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
Date = Day .. ' ' .. Month .. ' ' .. Year;
Year = nil;
else
Date = Month .. ' ' .. Year;
Year = nil;
end
else
Date = Year; -- promote Year to Date
Year = nil;
end
 
Year = nil; -- make nil so Year as empty string isn't used for CITEREF
if not utilities.is_set (Date) and utilities.is_set (PublicationDate) then -- use PublicationDate when |date= and |year= are not set
Date = PublicationDate; -- promote PublicationDate to Date