Module:Ref

From Halopedia, the Halo wiki

Revision as of 15:18, April 25, 2021 by Dab1001 (talk | contribs)
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