This is the documentation page for Module:Testcase rows
This module generates a table of test cases. Each test case is for a different template called with the same parameters. The test cases are displayed vertically, with one template on each row.
It implements the {{testcase rows}} template.
Usage from wikitext
Normally this module should be used via the {{testcase rows}} template, although if you want to it is possible to call the module directly using the syntax {{#invoke:Testcase rows|main|args}}. See the template documentation for a list of parameters.
Usage from Lua modules
To use this module from other Lua modules, first load the module.
local mTestcaseRows = require('Module:Testcase rows')
You can then generate the test-case table by using the _main function.
mTestcaseRows._main(args)
The args variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{testcase rows}} template documentation.
Example
The module produces output like this:
{{#invoke:Testcase rows|main
| _template = ombox
| image = [[File:Bad Title Example.png|40px]]
| imageright = [[File:Bad Title Example.png|40px]]
| text = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut tristique sagittis cursus. Cras nibh elit, consectetur sed semper sollicitudin, lobortis nec elit. Morbi vitae neque non diam commodo faucibus. Phasellus volutpat diam orci. Praesent tempor scelerisque dapibus. Duis consectetur eros ut elit semper rutrum.
}}
| {{ombox}} |
| {{ombox/sandbox}} |
