Changes
Merged two functions into one.
end
function reflist0(frame, config, args)
local contents = args.refs or ""
local liststyle = args.liststyle
local count = args[1]
local width = args.colwidth
local group = args.groupor config.default_group
local params = {}
if ( nil == tonumber(count) and nil == width ) then
liststyle = group
else
liststyle = "decimal"config.default_liststyle
end
end
end
-- This is used by template templates {{reflist}} and {{notelist}}.
function z.reflist(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
return reflist0(frame, args) end -- This is used by template {{notelist}}.function z.notelist(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 args.group = args.group or "lower-alpha" return reflist0(frame, args)
end
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
return z.wikitext.tag(frame, {name="ref",contents=(args[1] or ""),params={name=args.name,group="lower-alpha"config.default_group}})
end
return z