Module:Documentation/config: Difference between revisions
add notes for non-string values
m>Mr. Stradivarius (remove strange-usage-category-mainspace-sort) |
m>Mr. Stradivarius (add notes for non-string values) |
||
Line 19: | Line 19: | ||
-- cfg['protection-template-args'] | -- cfg['protection-template-args'] | ||
-- Any arguments to send to the protection template. | -- Any arguments to send to the protection template. This should be a Lua table. | ||
-- For example, if the protection template is "pp-template", and the wikitext template invocation | |||
-- looks like "{{pp-template|docusage=yes}}", then this table should look like "{docusage = 'yes'}". | |||
cfg['protection-template-args'] = {docusage = 'yes'} | cfg['protection-template-args'] = {docusage = 'yes'} | ||
Line 306: | Line 308: | ||
-- cfg['display-print-category'] | -- cfg['display-print-category'] | ||
-- Set to true to enable output of cfg['print-category'] if a /Print subpage exists. | -- Set to true to enable output of cfg['print-category'] if a /Print subpage exists. | ||
-- This should be a boolean value (either true or false). | |||
cfg['display-print-category'] = true | cfg['display-print-category'] = true | ||
Line 354: | Line 357: | ||
-- cfg['display-strange-usage-category'] | -- cfg['display-strange-usage-category'] | ||
-- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage | -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage | ||
-- or a /testcases subpage. | -- or a /testcases subpage. This should be a boolean value (either true or false). | ||
cfg['display-strange-usage-category'] = true | cfg['display-strange-usage-category'] = true | ||