Changes
Rolled up loop.
function crossref(frame, 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 ""
function citation0(frame, args)
local config = frame.args-- the arguments passed BY the template, in the wikitext of the template itself
-- Pick out the relevant fields from the arguments. Different citation templates define different field names for the same underlying things.
function p.r(frame)
local pframe = frame:getParent()
local config = frame.args-- the arguments passed BY the template, in the wikitext of the template itself local args = pframe.args-- the arguments passed TO the template, in the wikitext that instantiates the template local t1 = r0(frame, args[1], args.group, page1 = args.page page1 or args.page1)page local t2 text = r0(frame, args[2], args.group, args.page2)"" local t3 = r0(frame, args[3], args.groupfor index, args.page3) local t4 = r0arg in ipairs(frame, args[4], args.group, args.page4)do local t5 t = r0(frame, args[5]arg, args.group, args.page5) local t6 = r0(frame, args[6], args"page" .group, args.page6) local t7 = r0(frame, args[7index], args.group, args.page7) local t8 text = r0(frame, args[8], argstext .group, args.page8)t local t9 = r0(frame, args[9], args.group, args.page9)end return t1 .. t2 .. t3 .. t4 .. t5 .. t6 .. t7 .. t8 .. t9text
end
function p.reflabel(frame)
local pframe = frame:getParent()
local config = frame.args-- the arguments passed BY the template, in the wikitext of the template itself local args = pframe.args -- the arguments passed TO the template, in the wikitext that instantiates the template
local P1 = args[1] or ""
local P2 = args[2] or ""