Module:Harvc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 138:
args.loc = pframe.args.loc or '';
args.separator = pframe.args.separator; -- !! before postscript!! element separator defaults to full stop
args.postscript = pframe.args.ps or pframe.args.postscript;
if nil == args.postscript then
if nil == args.separator then
args.postscript = '.'; -- neither set so set to defaults
args.separator = '.';
elseif ',' == args.separator then
args.postscript = ''; -- CS2 and postscript not set; no terminal punctuation
else
args.postscript = '.'; -- separator not CS2 and postscript not set; use default terminal punctuation
end
else --postscript set
if 'none' == args.postscript:lower() then -- if |ps=none or |postscript=none then
args.postscript = ''; -- no postscript
end
end
if nil == args.separator then
args.separator = '.'; -- not set in template so set default
end
 
--[[
args.postscript = pframe.args.ps or pframe.args.postscript or '';
if '' ~= args.postscript then
Line 148 ⟶ 168:
end
args.separator = pframe.args.separator or '.'; -- element separator defaults to full stop
]]
 
args.url = pframe.args.url or ''; -- url for chapter or contribution