Module:Citation/CS1: Difference between revisions
changed to allow lowercase "asin-tld"; fixed typo to allow SSRN.
m>Wikid77 (again, set to automatically unbold volume+comma when > 4 long.) |
m>Wikid77 (changed to allow lowercase "asin-tld"; fixed typo to allow SSRN.) |
||
Line 57: | Line 57: | ||
end | end | ||
if ( string.sub(id,1,3) ~= "10." ) then | if ( string.sub(id,1,3) ~= "10." ) then | ||
cat = cat .. "[[Category:Pages with DOI errors]]" .. '<span class="error"> Bad DOI (expected "10." prefix)</span>' | cat = cat .. "[[Category:Pages with DOI errors]]" .. '<span class="error"> Bad DOI (expected "10." prefix) in code number</span>' | ||
end | end | ||
if ( nocat and nocat ~= "" ) then cat = "" end | if ( nocat and nocat ~= "" ) then cat = "" end | ||
Line 308: | Line 308: | ||
local ARXIV = args.arxiv or args.ARXIV | local ARXIV = args.arxiv or args.ARXIV | ||
local ASIN = args.asin or args.ASIN | local ASIN = args.asin or args.ASIN | ||
local ASINTLD = args["ASIN-TLD"] | local ASINTLD = args["ASIN-TLD"] or args["asin-tld"] | ||
local BIBCODE = args.bibcode or args.BIBCODE | local BIBCODE = args.bibcode or args.BIBCODE | ||
local DOI = args.doi or args.DOI | local DOI = args.doi or args.DOI | ||
Line 676: | Line 676: | ||
if ( RFC ~= nil and RFC ~="") then | if ( RFC ~= nil and RFC ~="") then | ||
RFC = sepc .." " .. externallinkid(frame, {label="RFC",link="Request for Comments",prefix="//tools.ietf.org/html/rfc",id=RFC}) else RFC = "" end | RFC = sepc .." " .. externallinkid(frame, {label="RFC",link="Request for Comments",prefix="//tools.ietf.org/html/rfc",id=RFC}) else RFC = "" end | ||
if ( SSRN ~= nil and | if ( SSRN ~= nil and SSRN ~="") then | ||
SSRN = sepc .." " .. externallinkid(frame, {label="SSRN",link="Social Science Research Network",prefix="http://ssrn.com/abstract=",id=SSRN}) else SSRN = "" end | SSRN = sepc .." " .. externallinkid(frame, {label="SSRN",link="Social Science Research Network",prefix="http://ssrn.com/abstract=",id=SSRN}) else SSRN = "" end | ||
if ( URL ~= nil and URL ~="") then | if ( URL ~= nil and URL ~="") then | ||
Line 1,099: | Line 1,099: | ||
--21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result. | --21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result. | ||
--21Feb2013 Automatically unbolded volume+comma when > 4 long. | --21Feb2013 Automatically unbolded volume+comma when > 4 long. | ||
--21Feb2013 Changed to allow lowercase "asin-tld". | |||
-- | -- | ||
--End | --End |