Jump to content

Module:Taxonbar/exists

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tom.Reding (talk | contribs) at 21:25, 16 June 2019 (n?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.check( frame )
	local pagename = mw.title.getCurrentTitle().baseText
	local content = mw.title.new(pagename):getContent() or ''
	local found = string.match(content, '%{%{ *[Tt]axon?[ -]?[bB]ar') or 
				  string.match(content, '%{%{ *[Tt]axonIds')
	if found then return true end
	return false
end

return p