Jump to content

Module:Citation/CS1: Difference between revisions

keep format together with URL
m>Dragons flight
(performance related testing)
m>Dragons flight
(keep format together with URL)
Line 575: Line 575:
     local DateIn = Date
     local DateIn = Date


    if ( Format ~= nil and Format ~="" ) then
        Format = " (" .. Format .. ")" else Format = "" end
     if ( ArchiveURL and "" < ArchiveURL ) then
     if ( ArchiveURL and "" < ArchiveURL ) then
         if ( DeadURL ~= "no" ) then
         if ( DeadURL ~= "no" ) then
Line 599: Line 601:
                 Chapter = "[" .. ChapterURL .. " " .. safeforurl( Chapter )  .. "]"
                 Chapter = "[" .. ChapterURL .. " " .. safeforurl( Chapter )  .. "]"
             elseif ( URL and "" < URL ) then  
             elseif ( URL and "" < URL ) then  
                 Chapter = "[" .. URL .. " " .. safeforurl( Chapter ) .. "]"
                 Chapter = "[" .. URL .. " " .. safeforurl( Chapter ) .. "]" .. Format
                 URL = nil
                 URL = nil
                Format = ""
             end
             end
         end
         end
Line 623: Line 626:
         Title = Title .. TransTitle
         Title = Title .. TransTitle
         if ( TitleLink == nil and URL and "" < URL ) then  
         if ( TitleLink == nil and URL and "" < URL ) then  
             Title = "[" .. URL .. " " .. safeforurl( Title ) .. "]"
             Title = "[" .. URL .. " " .. safeforurl( Title ) .. "]" .. Format
             URL = nil
             URL = nil
            Format = ''
         end
         end
     else  
     else  
Line 706: Line 710:
     if ( Series ~= nil and Series ~="" ) then
     if ( Series ~= nil and Series ~="" ) then
         Series = sepc .. " " .. Series else Series = "" end
         Series = sepc .. " " .. Series else Series = "" end
    if ( Format ~= nil and Format ~="" ) then
        Format = " (" .. Format .. ")" else Format = "" end
     if ( OrigYear ~= nil and OrigYear ~="" ) then
     if ( OrigYear ~= nil and OrigYear ~="" ) then
         OrigYear = " [" .. OrigYear .. "]" else OrigYear = "" end
         OrigYear = " [" .. OrigYear .. "]" else OrigYear = "" end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.