Jump to content

Module:Citation/CS1: Difference between revisions

set Harvard reference span-tag id when config.CitationClass=="citation"
m>Wikid77
(fixed ref=harv to extract Year from Date)
m>Wikid77
(set Harvard reference span-tag id when config.CitationClass=="citation")
Line 795: Line 795:
     if ( Ref ~= nil ) then  
     if ( Ref ~= nil ) then  
         local id = Ref
         local id = Ref
         if ( "harv" == Ref ) then
         if ( "harv" == Ref or config.CitationClass=="citation") then
             local names = {}
             local names = {} --table of last names & year
             if ( "" ~= Authors ) then
             if ( "" ~= Authors ) then
                 for i,v in ipairs(a) do names[i] = v.last end
                 for i,v in ipairs(a) do names[i] = v.last end
Line 1,107: Line 1,107:
--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"
--
--
--End
--End
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.