Module:Harvc: Difference between revisions

Content deleted Content added
name-list-format → name-list-style;
|last-author-amp=yes → |name-list-style=amp;
Line 222:
if true == etal then
contributors = contributors .. ' et al.'; -- append et al.
elseif 'yesamp' == args.last_author_ampname_list_style then
contributors = contributors:gsub('; ([^;]+)$', ' & %1') -- replace last separator with ' & '
end
Line 357:
args.name_list_style = pframe.args['name-list-style'] or -- when set to 'harv' display contributor list in sfn or harv style
pframe.args['name-list-format']; -- TODO: remove name-list-format
args.last_author_ampname_list_style = args.last_author_ampname_list_style:lower(); -- make it case agnostic
args.last_author_amp = pframe.args['last-author-amp'] or -- yes only; |last-author-amp=no does not work (though it does in cs1|2)
 
pframe.args['lastauthoramp'] or '';
args.last_author_amp = args.last_author_amp:lower(); -- make it case agnostic
if is_set (pframe.args.last) or is_set (pframe.args.last1) or
is_set (pframe.args.author) or is_set (pframe.args.author1) then -- must have at least this to continue