模块:Citation/CS1:修订间差异
imported>Liangent 无编辑摘要 |
imported>Liangent 无编辑摘要 |
||
| 第1,820行: | 第1,820行: | ||
not inArray(config.CitationClass, {"encyclopaedia","web","book","news","podcast"}) then | not inArray(config.CitationClass, {"encyclopaedia","web","book","news","podcast"}) then | ||
Pages = ": " .. Pages; | Pages = ": " .. Pages; | ||
elseif config.CitationClass == "news" then -- LOCAL | |||
Pages = ": (" .. Pages .. ")" -- LOCAL | |||
elseif config.CitationClass == "book" then -- LOCAL | |||
Pages = ": " .. Pages -- LOCAL | |||
elseif tonumber(Pages) ~= nil then | elseif tonumber(Pages) ~= nil then | ||
Pages = sepc .." " .. PPrefix .. Pages; | Pages = sepc .." " .. PPrefix .. Pages .. PSuffix; -- LOCAL | ||
else | else | ||
Pages = sepc .." " .. PPPrefix .. Pages; | Pages = sepc .." " .. PPPrefix .. Pages .. PPSuffix; -- LOCAL | ||
end | end | ||
end | end | ||
| 第1,830行: | 第1,834行: | ||
not inArray(config.CitationClass, {"encyclopaedia","web","book","news","podcast"}) then | not inArray(config.CitationClass, {"encyclopaedia","web","book","news","podcast"}) then | ||
Page = ": " .. Page; | Page = ": " .. Page; | ||
elseif config.CitationClass == "news" then -- LOCAL | |||
Pages = ": (" .. Pages .. ")" -- LOCAL | |||
elseif config.CitationClass == "book" then -- LOCAL | |||
Pages = ": " .. Pages -- LOCAL | |||
else | else | ||
Page = sepc .." " .. PPrefix .. Page; | Page = sepc .." " .. PPrefix .. Page .. PSuffix; -- LOCAL | ||
end | end | ||
end | end | ||
| 第1,893行: | 第1,901行: | ||
if is_set(TitleType) then -- if type parameter is specified | if is_set(TitleType) then -- if type parameter is specified | ||
-- LOCAL TitleType = " (" .. TitleType .. ")"; -- display it in parentheses | |||
TitleType = ", " .. TitleType; -- LOCAL | |||
end | end | ||
| 第1,940行: | 第1,949行: | ||
local retrv_text = " " .. cfg.messages['retrieved'] | local retrv_text = " " .. cfg.messages['retrieved'] | ||
if (sepc ~= ".") then retrv_text = retrv_text:lower() end | if (sepc ~= ".") then retrv_text = retrv_text:lower() end | ||
AccessDate = '<span class="reference-accessdate">' .. sepc | AccessDate = '<span class="reference-accessdate">' -- LOCAL .. sepc | ||
.. substitute( retrv_text, {AccessDate} ) .. '</span>' | .. substitute( retrv_text, {AccessDate} ) .. '</span>' | ||
end | end | ||
| 第1,985行: | 第1,994行: | ||
local arch_text = cfg.messages['archived-missing']; | local arch_text = cfg.messages['archived-missing']; | ||
if sepc ~= "." then arch_text = arch_text:lower() end | if sepc ~= "." then arch_text = arch_text:lower() end | ||
Archived = | Archived = substitute( arch_text, | ||
{ seterror('archive_missing_url'), ArchiveDate } ); | { seterror('archive_missing_url'), ArchiveDate } ); -- LOCAL | ||
end | end | ||
else | else | ||