Module:Taxonbar/exists

local p = {}function p.check( frame )local pagename = mw.title.getCurrentTitle().textlocal content = mw.title.new(pagename):getContent() or ''local getRegex = require('Module:Template redirect regex').mainlocal tregex = getRegex('Taxonbar')for _, v in pairs (tregex) dolocal found = string.match(content, v)if found thenlocal v_cmt_before = '%<%!%-%-%s*'..vlocal v_cmt_after  = v..'[^{}]*}}%s*-->'local found_cmt = mw.ustring.match(content, v_cmt_before) or mw.ustring.match(content, v_cmt_after)if found_cmt then return 'commented'else return true endendendreturn falseendreturn p