Module:Citation/CS1: Difference between revisions

error handling for archiveurl / url
m>Dragons flight
m (Changed protection level of Module:Citation/CS1: Highly visible template ([Edit=Block all non-admin users] (indefinite) [Move=Block all non-admin users] (indefinite)))
m>Dragons flight
(error handling for archiveurl / url)
Line 897: Line 897:
             Archived = sepc .. " [" .. ArchiveURL .. arch_text .. "] from the original on" .. ArchiveDate
             Archived = sepc .. " [" .. ArchiveURL .. arch_text .. "] from the original on" .. ArchiveDate
         else
         else
             Archived = sepc .. arch_text .. " from [" .. args.url .. " the original] on" .. ArchiveDate
             if args.url ~= nil and args.url ~= '' then
                Archived = sepc .. arch_text .. " from [" .. args.url .. " the original] on" .. ArchiveDate
            else
                Archived = sepc .. arch_text .. " from <span class='error'>If you specify <code>archiveurl=</code>" ..
                    ", you must also specify <code>url=</code></span> on" .. ArchiveDate
            end               
         end
         end
     else
     else
Anonymous user