Module:TNT/config: Difference between revisions
Appearance
Created page with "local cfg = {} -- Don’t touch this line. -- Subpage blacklist: these subpages will not be categorized (except for the -- error category, which is always added if there is an error). -- For example “Template:Foo/doc” matches the `doc = true` rule, so it will have -- no categories. “Template:Foo” and “Template:Foo/documentation” match no rules, -- so they *will* have categories. All rules should be in the -- ['<subpage name>'] = true, -- format. cfg['subpa..." |
No edit summary |
||
| Line 1: | Line 1: | ||
local | local p = {}; | ||
-- | -- The tracking category name for global TemplateData pages located on Commons | ||
-- under "Data:Templatedata/" instead of "Data:TemplateData/", | |||
-- | -- defaults to `"Templates using legacy global TemplateData table name"` | ||
-- when not set; set to `false` to disable all categorisation | |||
-- | p.legacyTemplateDataCategoryName = nil; | ||
-- | |||
-- | -- Whether to add the language subtag to the template name using {{#translation:}}, | ||
-- defaults to `false` | |||
p.translatableCategoryLink = true; | |||
-- | |||
return p; | |||
return | |||
Latest revision as of 15:48, 11 January 2026
Optional configuration module for Module:TNT.
local p = {};
-- The tracking category name for global TemplateData pages located on Commons
-- under "Data:Templatedata/" instead of "Data:TemplateData/",
-- defaults to `"Templates using legacy global TemplateData table name"`
-- when not set; set to `false` to disable all categorisation
p.legacyTemplateDataCategoryName = nil;
-- Whether to add the language subtag to the template name using {{#translation:}},
-- defaults to `false`
p.translatableCategoryLink = true;
return p;