local p = {}

function p.hasTemplate(frame)
	if not frame.args[1] then return end
	local content = mw.title.getCurrentTitle():getContent()
	if content:match('{{%s*' .. frame.args[1] .. '%s*[|}]') then
		return 1
	else
		return
	end
end

return p