Module:Citation/CS1: Difference between revisions

reset warning as class="error"
m>Wikid77
(fixed extra dot in "]." for TransTitle (etc.); set Bad-DOI warning.)
m>Wikid77
(reset warning as class="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]]" .. '<span class=strong>Bad DOI (expected "10." prefix)</span>'
         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 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
         if ( string.len(Volume) < 5 )
         if ( string.length(Volume) < 5 )
             then Volume = " <b>" .. Volume .. "</b>"  
             then Volume = " <b>" .. Volume .. "</b>"  
             else Volume = sepc .." " .. Volume  
             else Volume = sepc .." " .. Volume  
Anonymous user