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') | ||
if ElementTLDFlair and ElementTLDFlair.elementName then | |||
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') | ||
if ElementNTLDStats and ElementNTLDStats.elementName then | |||
Blueprint.registerElement(ElementNTLDStats.elementName, ElementNTLDStats) | |||
Blueprint.addElementToTemplate(template, 'ntldstats', 6) | |||
end | |||
end | end | ||