Mòideal:Taxonbar/exists
Coltas
(deasbaireachd⧼tpt-languages-separator⧽ ⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)
This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This page is not a sandbox. It should not be used for test editing. To experiment, please use the Wikipedia sandbox, your user sandbox, or the other sandboxes. |
This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them. |
Uses Lua: |
Related pages |
---|
Tuairisgeul - Description
Checks the page for transclusions of {{Taxonbar}} and its redirects.
Ùsaid - Usage
{{Taxonbar/exists}}
Faic cuideachd - Also see
- {{Taxonbar/candidate}}
- {{Taxobox/core}}
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 --5 redirects as of 2019/9
string.match(content, '%{%{ *[Tt]axonIds')
if found then return true end
return false
end
return p