Modul:Lua banner/config: Perbedaan antara revisi

49 bita ditambahkan ,  2 tahun yang lalu
tidak ada ringkasan suntingan
(←Membuat halaman berisi '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. cf...')
 
Tidak ada ringkasan suntingan
 
Baris 20: Baris 20:
-- added. If false, such calls are invalid, an error message appears, and
-- added. If false, such calls are invalid, an error message appears, and
-- cfg['error_category'] is added.
-- cfg['error_category'] is added.
cfg['allow_wishes'] = false
cfg['allow_wishes'] = true


-- Default category: this category is added if the module call contains errors
-- Default category: this category is added if the module call contains errors
Baris 45: Baris 45:
cfg['module_categories'] = {
cfg['module_categories'] = {
['String'] = 'Lua String-based templates',
['String'] = 'Lua String-based templates',
['Iteration'] = 'Lua-based iteration templates',
}
}


return cfg -- Don’t touch this line.
return cfg -- Don’t touch this line.