「模組:Taxonbar/exists」調整以後𣍐蜀樣其地方

刪去的內容 新增的內容
Sĭng hiĕk: local p = {} function p.check( frame ) local pagename = mw.title.getCurrentTitle().baseText local content = mw.title.new(pagename):getContent() or '' local found = string.match(c…
 
(Mò̤ chă)

2020 nièng 1 nguŏk 30 hô̤ (B4) 06:17 muōi-muōi siŏh-huôi biĕng-cĭk

可在模組:Taxonbar/exists/doc建立此模組的說明文件

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