Difference between revisions of "Module:Lua banner/config"
Set `wish_category` to Lua-candidates
>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...") |
>ExE Boss (Set `wish_category` to Lua-candidates) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| 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'] = 'Lua-candidates' | |||
-- 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 | ||
| Line 33: | Line 45: | ||
cfg['module_categories'] = { | cfg['module_categories'] = { | ||
['String'] = 'Lua String-based templates', | ['String'] = 'Lua String-based templates', | ||
} | } | ||
return cfg -- Don’t touch this line. | return cfg -- Don’t touch this line. | ||