Module:Lighthouse tracking

From blackwiki
Revision as of 15:43, 18 November 2018 by blackwiki>Frietjes
Jump to navigation Jump to search

This modules produces the tracking categories for Template:Infobox lighthouse


local p = {}
function p.tracking(frame)
	for k, v in pairs( frame:getParent().args ) do
		if k and k == 'module' then
		elseif type(k) == 'string' then
			if v and v:match('<tr') then
				return '[[Category:Pages using infobox lighthouse with NRHP embedded outside the module parameter]]'
			end
		end
	end
	return ''
end
return p