Module:User:Anomie/Bug46815: Difference between revisions

From Bonkipedia
[[mw:]]>Anomie
(For test)
 
m (1 revision imported: Module Import)
 
(No difference)

Latest revision as of 18:21, 12 November 2022

Documentation for this module may be created at Module:User:Anomie/Bug46815/doc

local p = {}

function p.preprocess( frame )
	local n = frame.args[1]
	return frame:preprocess( '<ref name="ref ' .. n .. '">Ref ' .. n .. '</ref>' )
end

function p.expandTemplate( frame )
	return frame:expandTemplate{ title = 'User:Anomie/Bug46815/refN', args = { frame.args[1] } }
end

return p