Difference between revisions of "Module:Lighthouse tracking"
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 v and v:match(' | + | if v and v:match('<tr') 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:43, 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('<tr') then
return '[[Category:Pages using infobox lighthouse with NRHP embedded outside the module parameter]]'
end
end
end
return ''
end
return p