Jump to content

Module:Taxonbar/exists

ពីវិគីភីឌា
កំណែ​នៅ ម៉ោង១៧:១០ ថ្ងៃព្រហស្បតិ៍ ទី១៩ ខែមីនា ឆ្នាំ២០២០ ដោយ Nisetpdajsankha (ការពិភាក្សា | ការរួមចំណែក) (បានបង្កើតទំព័រដែលផ្ដើមដោយ local p = {} function p.check( frame ) local pagename = mw.title.getCurrentTitle().baseText local content = mw.title...)
(ប្រៀបធៀប) ← កំណែ​ចាស់ជាង | កំណែថ្មីបំផុត (ប្រៀបធៀប) | កំណែថ្មីជាង → (ប្រៀបធៀប)

Documentation for this module may be created at Module: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