모듈:debug/track

위키낱말사전, 말과 글의 누리

이 모듈에 대한 설명문서는 모듈:debug/track/설명문서에서 만들 수 있습니다

return function (key)
	local frame = mw.getCurrentFrame()
	if key then
		if type(key) ~= "table" then
			key = { key }
		end
		
		for i, value in pairs(key) do
			pcall(frame.expandTemplate, frame, { title = 'tracking/' .. value })
		end
	else
		error('No tracking key supplied to the function "' .. track .. '".')
	end
end