Difference between revisions of "Module:Lighthouse tracking"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
 
blackwiki>Frietjes
Line 4: Line 4:
 
if k and k == 'module' then
 
if k and k == 'module' then
 
elseif type(k) == 'string' then
 
elseif type(k) == 'string' then
if k:match('A8EDEF') then
+
if v and v:match('A8EDEF') then
 
return '[[Category:Pages using infobox lighthouse with NRHP embedded outside the module parameter]]'
 
return '[[Category:Pages using infobox lighthouse with NRHP embedded outside the module parameter]]'
 
end
 
end

Revision as of 15:40, 18 November 2018

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('A8EDEF') then
				return '[[Category:Pages using infobox lighthouse with NRHP embedded outside the module parameter]]'
			end
		end
	end
	return ''
end
return p