Module:Infobox: Difference between revisions

No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Reverted
Line 429: Line 429:
end
end


-- Render tracking categories. args.decat == turns off tracking categories.
local function renderTrackingCategories()
local function renderTrackingCategories()
local yesno = require('Module:Yesno')
if yesno(args.decat) then return end
if yesno(args.decat) then return end
if args.child == 'yes' then
if args.child == 'yes' then
if args.title then
if args.title then
root:wikitext(
root:wikitext('[[Category:Pages using embedded infobox templates with the title parameter]]')
'[[Category:Pages using embedded infobox templates with the title parameter]]'
)
end
end
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then