Gaan na inhoud

Module:Taxonbar/exists

in Wikipedia, die vrye ensiklopedie
Weergawe deur Pynappel (besprekings | bydraes) op 12:34, 10 Augustus 2019 (Nuwe bladsy geskep met 'local p = {} function p.check( frame ) local pagename = mw.title.getCurrentTitle().baseText local content = mw.title.new(pagename):getContent() or '' local found = st...')
(verskil) ← Ouer weergawe | bekyk huidige weergawe (verskil) | Nuwer weergawe → (verskil)

Dokumentasie vir hierdie module kan geskep word by: 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 
				  string.match(content, '%{%{ *[Tt]axonIds')
	if found then return true end
	return false
end

return p