Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
remove Module:Wikitext requirement no longer used here, and remove parts of createTag no longer needed |
merge from sandbox. Removes unused functions (moved to Module:Citation) and updates page handling |
||
வரிசை 20:
['&'] = '&',
["'"] = ''',
['['] = '[',
[']'] = ']',
['{'] = '{',
வரிசை 140:
function hyphentodash( str )
if str == nil then
return nil;
end
return str:gsub( '-', '–' );
end
வரி 302 ⟶ 305:
end
function extractauthors(args)
local authors = {};
வரி 477 ⟶ 425:
local Issue = args.issue or args.number
local Position = nil
local Page = args.p or args.page
local Pages = hyphentodash( args.pp or args.pages )
local At = args.at
local page_error = false;
if Page ~= nil and Page ~= '' then
if (Pages ~= nil and Pages ~= '') or (At ~= nil and At ~= '') then
Pages = nil;
At = nil;
page_error = true;
end
elseif Pages ~= nil and Pages ~= '' then
if At ~= nil and At ~= '' then
At = nil;
page_error = true;
end
end
local PP = args.pp
local Edition = args.edition
local PublicationPlace = args["publication-place"] or args.publicationplace or args.place or args.location
வரி 792 ⟶ 749:
if ( nil == Page or "" == Page ) then
Page = ""
Pages
elseif ( Periodical ~= nil and
config.CitationClass ~= "
config.CitationClass ~= "
config.CitationClass ~= "news") then
Pages = ": " .. Pages
else
if ( tonumber(Pages) ~= nil ) then
Pages = sepc .." " .. PPrefix .. Pages
else Pages = sepc .." " .. PPPrefix .. Pages
end
end
else
if ( Periodical ~= nil and Periodical ~= "" and
config.CitationClass ~= "encyclopaedia" and
config.CitationClass ~= "web" and
config.CitationClass ~= "book" and
config.CitationClass ~= "news") then
else
end
end
வரி 1,008 ⟶ 968:
local text
local pgtext = Page .. Pages .. At
if page_error then
pgtext = pgtext .. '[[Category:References with multiple page specifications]]<!-- Bad page specification here -->';
end
if ( "" ~= Authors ) then
if (Coauthors ~= "")
வரி 1,224 ⟶ 1,188:
--14Mar2013 Fixed double-dot before "p." or "pp." page number.
--14Mar2013 Fixed config.CitationClass "book" to use p./pp. page.
--18Mar2013 Fixed "page=" to override "pages=" as in markup-based cites.
--
--End
| |||