Module:Ref
From Halopedia, the Halo wiki
This module provides the backend implementations of the Ref templates.
Public Functions
ref.ref
Code
A copy of the code for this module follows:
local ref = {}
function ref.ref( text, group, id )
text = tostring( text )
local args = {}
if group ~= nil and group ~= '' then
args.group = tostring( group )
end
if id ~= nil and id ~= '' then
args.name = tostring( id )
end
local frame = mw.getCurrentFrame()
return frame:extensionTag( 'ref', text, args )
end
return ref