Module:Template test case/config: Difference between revisions

m
(add a messages table and expand the comments)
m (14 revisions imported from wikipedia:Module:Template_test_case/config)
 
(9 intermediate revisions by 4 users not shown)
Line 15: Line 15:


-- The subpage that sandboxes are typically stored on. Used when loading
-- The subpage that sandboxes are typically stored on. Used when loading
-- wrapper template config so that wrapper template sandboxes load the same
-- wrapper template config and when guessing the sandbox template name.
-- config as wrapper templates.
sandboxSubpage = 'sandbox',
sandboxSubpage = 'sandbox',


Line 24: Line 23:


msg = {
msg = {
-- The default header for test cases rendered in columns.
['columns-header'] = 'Side by side comparison',
-- The error message to use if a templaten option is missing.
-- $1 - the number of the missing template option.
['missing-template-option-error'] = "one or more options ending in '$1' " ..
"were detected, but no 'template$1' option was found",


-- The error message to use if a nowiki invocation is used but the template
-- The error message to use if a nowiki invocation is used but the template
-- name magic word is not found.
-- name magic word is not found.
-- $1 - the value of the template name magic word
['nowiki-magic-word-error'] = "the template invocation must include '$1' in " ..
['nowiki-magic-word-error'] = "the template invocation must include '$1' in " ..
"place of the template name",
"place of the template name",
Line 53: Line 61:
['Template:Test case nowiki'] = {
['Template:Test case nowiki'] = {
func = 'nowiki'
func = 'nowiki'
}
},
}
['Template:Nowiki template demo'] = {
func = 'nowiki',
args = {showheader = false, showtemplate2 = false}
},
['Template:Collapsible test case'] = {
args = {_collapsible = true}
},
['Template:Collapsible 2 test case'] = {
args = {_collapsible = true, _wantdiff = true}
},
['Template:Inline test case'] = {
args = {_format = 'inline', _showcode = true}
},
},


-------------------------------------------------------------------------------
-------------------------------------------------------------------------------