Jump to content

Module:Citation/CS1: Difference between revisions

fixed config.CitationClass "citation" as span class="citation" & set Ref=harv if nil
m>Wikid77
(set Harvard reference span-tag id when config.CitationClass=="citation")
m>Wikid77
(fixed config.CitationClass "citation" as span class="citation" & set Ref=harv if nil)
Line 344: Line 344:
         end
         end
     end  
     end  
     if ( config.CitationClass == "citation" ) then sepc = "," end
     if ( config.CitationClass == "citation" ) then
        sepc = ","
        if ( Ref == nil ) then Ref = "harv" end
    end
     if ( sepc == nil ) then sepc = "." end  
     if ( sepc == nil ) then sepc = "." end  
     if ( DeadURL == nil ) then DeadURL = "no" end
     if ( DeadURL == nil ) then DeadURL = "no" end
Line 792: Line 795:
         end
         end
     end
     end
     local args = { class="citation " .. (config.CitationClass or "") }
     local classname = "citation"
    if ( config.CitationClass ~= "citation" )
      then classname = "citation " .. (config.CitationClass or "") end
    local args = { class=classname }
     if ( Ref ~= nil ) then  
     if ( Ref ~= nil ) then  
         local id = Ref
         local id = Ref
Line 1,107: Line 1,113:
--21Feb2013 Changed to allow lowercase "asin-tld".
--21Feb2013 Changed to allow lowercase "asin-tld".
--22Feb2013 Fixed ref=harv to extract Year from Date.
--22Feb2013 Fixed ref=harv to extract Year from Date.
--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".
--
--
--End
--End
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.