Module:Citation/CS1: Difference between revisions
again, put Bad-DOI warning & see if causes another "Script error"
m>Wikid77 (reverted 5 edits to salvage whatever works; again cut dots "].") |
m>Wikid77 (again, put Bad-DOI warning & see if causes another "Script error") |
||
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]]" | cat = cat .. "[[Category:Pages with DOI errors]]" .. '<span class="error"> Bad DOI (expected "10." prefix)</span>' | ||
end | end | ||
if ( nocat and nocat ~= "" ) then cat = "" end | if ( nocat and nocat ~= "" ) then cat = "" end | ||
Line 1,092: | Line 1,092: | ||
--21Feb2013 Changed to omit double-dot before date when already dot. | --21Feb2013 Changed to omit double-dot before date when already dot. | ||
--21Feb2013 Order config.CitationClass "citation": Volume, Issue, Publisher. | --21Feb2013 Order config.CitationClass "citation": Volume, Issue, Publisher. | ||
--21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result. | |||
-- | -- | ||
--End | --End |