Module:Citation/CS1: Difference between revisions
again, set to automatically unbold volume+comma when > 4 long.
m>Wikid77 (again, put Bad-DOI warning & see if causes another "Script error") |
m>Wikid77 (again, set to automatically unbold volume+comma when > 4 long.) |
||
Line 613: | Line 613: | ||
if ( Edition ~= nil and Edition ~="" ) then | if ( Edition ~= nil and Edition ~="" ) then | ||
Edition = " (" .. Edition .. " edition)" else Edition = "" end | Edition = " (" .. Edition .. " edition)" else Edition = "" end | ||
if ( Volume ~= nil and Volume ~="" ) then | if ( Volume ~= nil and Volume ~="" ) | ||
Volume = " <b>" .. Volume .. "</b>" else Volume = "" end | then | ||
if ( string.len(Volume) > 4 ) | |||
then Volume = sepc .." " .. Volume | |||
else Volume = " <b>" .. Volume .. "</b>" | |||
end | |||
else Volume = "" 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,098: | ||
--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. | --21Feb2013 Put warning "Bad DOI (expected "10."..)" in DOI result. | ||
--21Feb2013 Automatically unbolded volume+comma when > 4 long. | |||
-- | -- | ||
--End | --End |