Module:Harvc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 36:
 
function core( args )
local span_open_tag; -- holds CITEREF and css
local contributors = ''; -- chapter or contribution authors
local source = ''; -- editor/author date list that forms a CITEREF link to a full citation; mimics harvnb output except year in parentheses
-- local err_msg = ''result; -- a place to put error message thatthe areassemby outputof followingthe normalabove output
local result; -- the assemby of the above output
 
-- form the CITEREF anchor
Line 97 ⟶ 96:
-- and put it all together
result = span_open_tag .. contributors .. ' ' .. args.contribution .. args.separator .. ' In ' .. source .. args.postscript .. '</span>' .. args.err_msg;
 
-- if '' == args.year then
-- result = result .. '<span style="font-size:100%" class="error">missing year</span>)' .. args.separator;
-- else
-- result = result .. args.year .. ')' .. args.separator;
-- end
 
 
return result;