Module:Citation/CS1: Difference between revisions
fixed extra dot in "]." for TransTitle (etc.); set Bad-DOI warning.
m>Wikid77 (for config.CitationClass "citation" reset order as: Volume, Issue, Publisher) |
m>Wikid77 (fixed extra dot in "]." for TransTitle (etc.); set Bad-DOI warning.) |
||
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=strong>Bad DOI (expected "10." prefix)</span>' | ||
end | end | ||
if ( nocat and nocat ~= "" ) then cat = "" end | if ( nocat and nocat ~= "" ) then cat = "" end | ||
Line 509: | Line 509: | ||
end | end | ||
end | end | ||
if ( TransTitle and "" < TransTitle ) then TransTitle = " [" .. TransTitle .. "] | if ( TransTitle and "" < TransTitle ) then TransTitle = " [" .. TransTitle .. "]" else TransTitle = "" end | ||
if ( TransChapter and "" < TransChapter ) then TransChapter = " [" .. TransChapter .. "] | if ( TransChapter and "" < TransChapter ) then TransChapter = " [" .. TransChapter .. "]" else TransChapter = "" end | ||
if ( Chapter and "" < Chapter ) then | if ( Chapter and "" < Chapter ) then | ||
if ( ChapterLink and "" < ChapterLink ) then Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]" end | if ( ChapterLink and "" < ChapterLink ) then Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]" end | ||
Line 614: | Line 614: | ||
Edition = " (" .. Edition .. " edition)" else Edition = "" end | Edition = " (" .. Edition .. " edition)" else Edition = "" end | ||
if ( Volume ~= nil and Volume ~="" ) then | if ( Volume ~= nil and Volume ~="" ) then | ||
Volume = " <b>" .. Volume .. "</b>" else Volume = "" end | if ( string.len(Volume) < 5 ) | ||
then Volume = " <b>" .. Volume .. "</b>" | |||
else Volume = sepc .." " .. Volume | |||
end | |||
end | |||
if ( Issue ~= nil and Issue ~="" ) then | if ( Issue ~= nil and Issue ~="" ) then | ||
Issue = " (" .. Issue .. ")" else Issue = "" end | Issue = " (" .. Issue .. ")" else Issue = "" end | ||
Line 1,092: | Line 1,096: | ||
--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 Automatically unbolded volume+comma when > 4 long. | |||
--21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result. | |||
-- | -- | ||
--End | --End |