پودمان:Citation/CS1/fa: تفاوت میان نسخه‌ها

if year is nill, don't add the string "nil" to the end!
imported>Dalba
(year گاهی به فارسی است (به طور مشخص وقتی که هم «سال» و هم «تاریخ» در یادکرد ژورنال وجود داشته باشد، مثل Special:Permalink/26754779) و این باعث می‌شود که یادکردها وصل نشوند: Special:Permalink/26754689#اشکال_پک_چیست؟ (شاید بهتر باشد سال جایی زودتر از این تبدیل به انگلیسی شود، فرصت بررسی بیشتر ندارم))
(if year is nill, don't add the string "nil" to the end!)
خط ۱٬۱۴۱: خط ۱٬۱۴۱:
if i == 4 then break end -- if four then done
if i == 4 then break end -- if four then done
end
end
table.insert (names, numConv('en' , year)); -- add the year at the end
if year ~= nil then
year = numConv('en' , year);
end
table.insert (names, year); -- add the year at the end, if available
local id = table.concat(names); -- concatenate names and year for CITEREF id
local id = table.concat(names); -- concatenate names and year for CITEREF id
if is_set (id) then -- if concatenation is not an empty string
if is_set (id) then -- if concatenation is not an empty string
کاربر ناشناس