Changes
Added reflabel function.
function hideinprint(frame, content)
return content
end
function onlyinprint(frame, content)
return ""
end
local t9 = r0(frame, args[9], args.group, args.page9)
return t1 .. t2 .. t3 .. t4 .. t5 .. t6 .. t7 .. t8 .. t9
end
-- This is used by template {{reflabel}}.
function p.reflabel(frame)
local pframe = frame:getParent()
local config = frame.args
local args = pframe.args
local P1 = args[1] or ""
local P2 = args[2] or ""
local P3 = args[3] or ""
local id = nil
local contents = "[[#endnote_" .. P1 .. P3 .. "|[" .. P2 .. "]]]"
local params = {}
params.class="reference"
if ( args.noid ~= nil and args.noid ~= "" ) then params.id = "ref_" .. P1 .. P3 end
return tag(frame, {name="sup",contents=content,params=params})
end
return p