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

Content deleted Content added
m typo
Tag: Reverted
m typos
Tag: Reverted
Line 773:
 
elseif data.known_templates_harvc [template_name] then
mw.log(template_name..' is harvc')
anchor_id = anchor_id_make_harvc (template); -- extract an anchor id from this template
list_add (anchor_id, anchor_id_list, true);
elseif data.known_templates_wikicite [template_name] then
mw.log(template_name..' is wikicite')
local ref = template:match ('|%s*ref%s*=%s*(%b{})'); -- first look for |ref={{sfnref}} or |ref={{harvid}}
Line 826:
elseif template_name and template_name:match ('^Cit[ea]') then -- not known, not known wrapper; last gasp, try as cs1-like
mw.log(template_name..' is cs1-like')
anchor_id = anchor_id_make_cs12 (template); -- extract an anchor id from this template if possible
list_add (anchor_id, anchor_id_list, true);