Module:T-TLD: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 53: Line 53:
         categories = true,
         categories = true,
         errorReporting = true,
         errorReporting = true,
        tldflair = false,
        ntldstats = false
     }
     }
})
})
Line 64: Line 66:


-- ELEMENTS
-- ELEMENTS
local ElementTLDFlair = require('Module:ElementTLDFlair')
if template.features.tldflair then
if ElementTLDFlair and ElementTLDFlair.elementName then
    local ElementTLDFlair = require('Module:ElementTLDFlair')
    Blueprint.registerElement(ElementTLDFlair.elementName, ElementTLDFlair)
    if ElementTLDFlair and ElementTLDFlair.elementName then
    Blueprint.addElementToTemplate(template, 'tldflair', 3)
        Blueprint.registerElement(ElementTLDFlair.elementName, ElementTLDFlair)
        Blueprint.addElementToTemplate(template, 'tldflair', 3)
    end
end
end


local ElementNTLDStats = require('Module:ElementNTLDStats')
if template.features.ntldstats then
if ElementNTLDStats and ElementNTLDStats.elementName then
    local ElementNTLDStats = require('Module:ElementNTLDStats')
    Blueprint.registerElement(ElementNTLDStats.elementName, ElementNTLDStats)
    if ElementNTLDStats and ElementNTLDStats.elementName then
    Blueprint.addElementToTemplate(template, 'ntldstats', 6)
        Blueprint.registerElement(ElementNTLDStats.elementName, ElementNTLDStats)
        Blueprint.addElementToTemplate(template, 'ntldstats', 6)
    end
end
end