Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox
sync with sandbox
வரிசை 215:
]]
function selectyear( str )
-- Is the input a simple number?
local lang = mw.getContentLanguage();
local good,num result= tonumber( str );
if num ~= nil and num > 0 and num < 2100 and num == math.abs(num) then
good, result = pcall( lang.formatDate, lang, 'Y', str )
if good then return str;
return result;
else
-- Use formatDate to interpret more complicated formats
--[[
local lang = mw.getContentLanguage();
FormatDate fails on years that are less than 4 digits. If the input
local good, result;
is a positive integer, assume it is a valid year even if it has less
thangood, fourresult digits= pcall( lang.formatDate, lang, 'Y', str )
]]if good then
local num = tonumber( strreturn )result;
if num ~= nil and num > 0 and num < 2100 and num == math.abs(num) then
return str;
else
return-- Can'';t make sense of this input, return blank.
return result"";
end
end
வரி 418 ⟶ 416:
local TitleType = args.type
local ArchiveURL = args["archive-url"] or args.archiveurl
local URL = args.url or args.URL
local ChapterURL = args["chapter-url"] or args.chapterurl
local ConferenceURL = args["conference-url"] or args.conferenceurl
வரி 623 ⟶ 621:
OCinStitle = OCinStitle .. "&rfr_id=info:sid/en.wikipedia.org:"
.. this_page.prefixedText -- end COinS data by page's non-encoded pagename
 
if (Periodical ~= nil and Periodical ~= "") and
(Chapter == nil or Chapter == '') and
(Title ~= nil and Title ~= "") then
Chapter = Title
ChapterLink = TitleLink
TransChapter = TransTitle
Title = nil
TitleLink = nil
TransTitle = nil
end
 
-- Now perform various field substitutions.
வரி 714 ⟶ 723:
if ( Format ~= nil and Format ~="" ) then
Format = " (" .. Format .. ")" else Format = "" end
local OriginalURL = URL
if ( ArchiveURL and "" < ArchiveURL ) then
if ( DeadURL ~= "no" ) then
local temp URL = URLArchiveURL
URL = ArchiveURL
end
end
வரி 724 ⟶ 734:
if ( Chapter and "" < Chapter ) then
if ( ChapterLink and "" < ChapterLink ) then Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]" end
if ( Periodical and "" < Periodical ) and (Title ~= nil and Title ~= "" )
--[[then
and config.CitationClass ~= "encyclopaedia"
) then
Chapter = "''" .. safeforitalics(Chapter) .. "''"
else
வரி 937 ⟶ 946:
Archived = sepc .. " [" .. ArchiveURL .. arch_text .. "] from the original on" .. ArchiveDate
else
if args.urlOriginalURL ~= nil and args.urlOriginalURL ~= '' then
Archived = sepc .. arch_text .. " from [" .. args.urlOriginalURL .. " the original] on" .. ArchiveDate
else
Archived = sepc .. arch_text .. " from <span class='error'>If you specify <code>archiveurl=</code>" ..
வரி 1,006 ⟶ 1,015:
Periodical ~= "" ) then
if (Others ~= "") then Others = Others .. sepc .. " " end
tcommon = safejoin( {Others, Title, TitleNote, Format, TitleType, Conference, Periodical, TitleType, Series, Language, Edition, Publisher, Agency, Volume, Issue, Position}, sepc );
elseif ( config.CitationClass == "citation" ) or (config.CitationClass == "encyclopaedia" ) then
tcommon = safejoin( {Title, TitleNote, Format, TitleType, Conference, Periodical, TitleType, Series, Language, Volume, Issue, Edition, Publisher, Agency, Others, Position}, sepc );
else
tcommon = safejoin( {Title, TitleNote, Series, Format, TitleType, Conference, Periodical, Language, Volume, Issue, Others, Edition, Publisher, Agency, Position}, sepc );
வரி 1,153 ⟶ 1,162:
local args = {};
for k, v in pairs( pframe.args ) do
args[k]if v ~= v;'' then
returnargs[k] str= v;
elseif k == 'postscript' then
args[k] = v;
end
end
 
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது