Difference between revisions of "Module:Template test case/config"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius
(create a config table with wrapper templates and their default options)
 
blackwiki>Mr. Stradivarius
(set showcode = true in the main module rather than here, as if people go to the trouble of passing in a nowiki invocation, it's pretty much a given that they want it to be displayed)
Line 16: Line 16:
 
},
 
},
 
['Template:Test case nowiki'] = {
 
['Template:Test case nowiki'] = {
func = 'nowiki',
+
func = 'nowiki'
options = {showcode = true}
 
 
}
 
}
 
}
 
}
  
 
}
 
}

Revision as of 13:55, 27 November 2014

This module provides configuration data for Module:Template test case.



-- This module holds configuration data for [[Module:Template test cases]].

return {

wrappers = {
	['Template:Test case'] = {
		func = 'table'
	},
	['Template:Testcase table'] = {
		func = 'table',
		options = {format = 'columns'}
	},
	['Template:Testcase rows'] = {
		func = 'table',
		options = {format = 'rows'}
	},
	['Template:Test case nowiki'] = {
		func = 'nowiki'
	}
}

}