Module documentation
Related pages |
---|
About
Checks the page for transclusions of {{Taxonbar}} and its redirects.
Usage
{{Taxonbar/exists}}
See also
- {{Taxonbar/candidate}}
- {{Taxobox/core}}
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
🔥 Top keywords: Main PageSpecial:SearchWikipedia:Featured picturesYasukeHarrison ButkerRobert FicoBridgertonCleopatraDeaths in 2024Joyce VincentXXXTentacionHank AdamsIt Ends with UsYouTubeNew Caledonia2024 Indian general electionHeeramandiDarren DutchyshenSlovakiaKingdom of the Planet of the ApesAttempted assassination of Robert FicoLawrence WongBaby ReindeerXXX: Return of Xander CageThelma HoustonFuriosa: A Mad Max SagaMegalopolis (film)Richard GaddKepler's SupernovaWicked (musical)Sunil ChhetriXXX (2002 film)Ashley MadisonAnya Taylor-JoyPlanet of the ApesNava MauYoung SheldonPortal:Current eventsX-Men '97