Jump to content

Module:Citation/CS1: Difference between revisions

capitalized "Archived/Retrieved" only when sepc is dot "." separator.
m>Wikid77
(fixed ref=xx)
m>Wikid77
(capitalized "Archived/Retrieved" only when sepc is dot "." separator.)
Line 638: Line 638:
     if ( Via ~= nil and Via ~="" ) then
     if ( Via ~= nil and Via ~="" ) then
         Via = " — via " .. Via else Via = "" end
         Via = " — via " .. Via else Via = "" end
    local retrv_text = ' retrieved '
    if (sepc == ".") then retrv_text = ' Retrieved ' end
     if ( AccessDate ~= nil and AccessDate ~="" )
     if ( AccessDate ~= nil and AccessDate ~="" )
     then AccessDate = '<span class="reference-accessdate">' .. sepc .. ' Retrieved ' .. AccessDate .. '</span>'
     then AccessDate = '<span class="reference-accessdate">'
        .. sepc .. retrv_text .. AccessDate .. '</span>'
     else AccessDate = "" end
     else AccessDate = "" end
     if ( SubscriptionRequired ~= nil and
     if ( SubscriptionRequired ~= nil and
Line 702: Line 705:
             ArchiveDate = " " .. ArchiveDate
             ArchiveDate = " " .. ArchiveDate
         else ArchiveDate = "" end
         else ArchiveDate = "" end
        local arch_text = " archived"
        if (sepc == ".") then arch_text = " Archived" end
         if ( "no" == DeadURL ) then
         if ( "no" == DeadURL ) then
             Archived = " [" .. ArchiveURL .. " Archived] from the original on" .. ArchiveDate
             Archived = sepc .. " [" .. ArchiveURL .. arch_text .. "] from the original on" .. ArchiveDate
         else
         else
             Archived = sepc .. " Archived from [" .. args.url .. " the original] on" .. ArchiveDate
             Archived = sepc .. arch_text .. " from [" .. args.url .. " the original] on" .. ArchiveDate
         end
         end
     else
     else
Line 1,115: Line 1,120:
--22Feb2013 Set Harvard refer. span id if config.CitationClass "citation".
--22Feb2013 Set Harvard refer. span id if config.CitationClass "citation".
--22Feb2013 Fixed config.CitationClass "citation" as span class="citation".
--22Feb2013 Fixed config.CitationClass "citation" as span class="citation".
--22Feb2013 Capitalized "Archived/Retrieved" only when sepc is dot ".".
--
--
--End
--End
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.