Module:Footnotes/anchor id list: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
Line 60: Line 60:
'|%s*date%s*=%s*',
'|%s*date%s*=%s*',
'|%s*publication%-?date%s*=%s*',
'|%s*publication%-?date%s*=%s*',
'|%s*air%-?date%s*=%s*',
}
}
local alias_patterns_harvc_date = { -- normal lua patterns for harvc template
local alias_patterns_harvc_date = { -- normal lua patterns for harvc template
Line 793: Line 794:
for _, anchor_id in ipairs (template) do -- spin through this template's parameter
for _, anchor_id in ipairs (template) do -- spin through this template's parameter
if '' ~= anchor_id and not article_whitelist[anchor_id] then
if '' ~= anchor_id and not article_whitelist[anchor_id] then
anchor_id = mw.uri.anchorEncode (anchor_id)
article_whitelist[anchor_id] = 1; -- add to the whitelist
article_whitelist[anchor_id] = 1; -- add to the whitelist
end
end
Anonymous user