Difference between revisions of "Module:Lua banner/config"
+wishes
>Tacsipacsi (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 a...") |
>Tacsipacsi (+wishes) |
||
Line 14: | Line 14: | ||
['testcases'] = true, | ['testcases'] = true, | ||
} | } | ||
-- Allow wishes: whether wishes for conversion to Lua are allowed. | |||
-- If true, calls with zero parameters are valid, and considered to be wishes: | |||
-- The box’s text is “This template should use Lua”, and cfg['wish_category'] is | |||
-- added. If false, such calls are invalid, an error message appears, and | |||
-- cfg['error_category'] is added. | |||
cfg['allow_wishes'] = false | |||
-- Default category: this category is added if the module call contains errors | -- Default category: this category is added if the module call contains errors | ||
Line 19: | Line 26: | ||
-- to disable categorization (not recommended). | -- to disable categorization (not recommended). | ||
cfg['error_category'] = 'Lua templates with errors' | cfg['error_category'] = 'Lua templates with errors' | ||
-- Wish category: this category is added if no module is listed, and wishes are | |||
-- allowed. (Not used if wishes are not allowed.) A category name without | |||
-- namespace, or nil to disable categorization. | |||
cfg['wish_category'] = nil | |||
-- Default category: this category is added if none of the below module_categories | -- Default category: this category is added if none of the below module_categories |