Module:Infobox: Difference between revisions

    m>Mr. Stradivarius
    (remove title bolding as with main template)
    m>Mr. Stradivarius
    (add tracking category per main template)
    Line 195: Line 195:


    local function renderTrackingCategories()
    local function renderTrackingCategories()
         if args.decat ~= 'yes' and #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
         if args.decat ~= 'yes' then
            root.wikitext('[[Category:Articles which use infobox templates with no data rows]]')
            if #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
                root.wikitext('[[Category:Articles which use infobox templates with no data rows]]')
            end
            if args.child == 'yes' and args.title then
                root.wikitext('[[Category:Articles which use embedded infobox templates with the title parameter]]')
            end
         end
         end
    end
    end