Module:Ref: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 11: Line 11:
end
end
local frame = mw.getCurrentFrame()
local frame = mw.getCurrentFrame()
return frame:extensionTag( 'ref', text, args )
return text --frame:extensionTag( 'ref', text, args )
end
end


return ref
return ref

Revision as of 15:18, April 25, 2021

vde
Lua Module Documentation

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 text --frame:extensionTag( 'ref', text, args )
end

return ref