Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
sync to sandbox |
sync with sandbox |
||
வரிசை 215:
]]
function selectyear( str )
-- Is the input a simple number?
local lang = mw.getContentLanguage();▼
local
return result;▼
else
-- Use formatDate to interpret more complicated formats
--[[▼
▲ local lang = mw.getContentLanguage();
local good, result;
▲ if num ~= nil and num > 0 and num < 2100 and num == math.abs(num) then
return str;▼
else
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
▲ 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 ~= "" )
Chapter = "''" .. safeforitalics(Chapter) .. "''"
else
வரி 937 ⟶ 946:
Archived = sepc .. " [" .. ArchiveURL .. arch_text .. "] from the original on" .. ArchiveDate
else
if
Archived = sepc .. arch_text .. " from [" ..
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
elseif ( config.CitationClass == "citation" ) or (config.CitationClass == "encyclopaedia" ) then
tcommon = safejoin( {Title, TitleNote, Format
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
elseif k == 'postscript' then
args[k] = v;
end
end
| |||