Module:Wp/dtp/Taxonbar/exists

Documentation for this module may be created at Module:Wp/dtp/Taxonbar/exists/doc

local p = {}

function p.check( frame )
	local pagename = mw.title.getCurrentTitle().baseText
	local content = mw.title.new(pagename):getContent() or ''
	local getRegex = require('Module:Wp/dtp/Template redirect regex').main
	local tregex = getRegex('Taxonbar')
	for _, v in pairs (tregex) do
		local found = string.match(content, v)
		if found then return true end
	end
	return false
end

return p