Module:Citation/CS1: Difference between revisions

    m>Wikid77
    (delete text until Lua crapnology works again)
    m>Wikid77
    (reverted 5 edits to salvage whatever works; again cut dots "].")
    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]]"
         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
             Volume = " <b>" .. Volume .. "</b>"  
             Volume = " <b>" .. Volume .. "</b>" else 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,093: 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 Automatically unbolded volume+comma when > 4 long.
    --21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result.
    --
    --
    --End
    --End