Changes
no edit summary
end
function anchorid(label, args)
local P1 = trim(args[1]) or ""
local P2 = trim(args[2]) or ""
local P4 = trim(args[4]) or ""
local P5 = trim(args[5]) or ""
end
end
function crossref(frame, label, args)
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local LB = config.BracketLeft or ""
local RB = config.BracketRight or ""
local anchor = args.ref or args.Ref or anchorid(label, args)
local text = name(args)
local loc = args.loc
function z.SFNID(frame)
local pframe = frame:getParent()
return anchorid('FOOTNOTE', pframe.args)
end
function z.sfn(frame)
local pframe = frame:getParent()
local content = crossref(frame, 'FOOTNOTE', pframe.args)
local args = { name = refid(pframe.args) }
return createTag({name = "ref", contents = content, params = args}, frame)