Module:Footnotes/anchor id list/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 385:
end;
template_name = template_name:gsub ('%s*$', ''); -- trim whitespace
template_name = Lang_obj:ucfirst (template_name); -- first character in template name must be uppercase (same as canonical template name) TODO: better way to do this?
 
-- template_name = template_name:lower(); -- and lowercase only
return template_name;
Line 780 ⟶ 782:
elseif template_name and whitelist.wrapper_templates[template_name] then
anchor_id = anchor_id_make_wrapper (template); -- extract an anchor id from this template if possible
list_add (anchor_id, anchor_id_list, true);