Open main menu

Changes

Module:Citation

444 bytes added, 23:58, 27 August 2012
Added support for Template:efn.
local references = z.wikitext.tag(frame, {name="references",contents=contents,params={group=group}})
return z.wikitext.tag(frame, {name="div",contents=references,params=params})
end
 
-- This is used by template {{efn}}.
function z.efn(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 z.wikitext.tag(frame, {name="ref",contents=(args[1] or ""),params={name=args.name,group="lower-alpha"}})
end
return z
Anonymous user