Module:Template test case/doc
Uses Lua: |
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other WikiDevi resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
This module provides a framework for making templates which produce a template test case. While test cases can be made manually, using Lua-based templates such as the ones provided by this module has the advantage that the template arguments only need to be input once, thus reducing the effort involved in making test cases and reducing the possibility of errors in the input.
Usage
This module should not usually be called directly. Instead, you should use {{Test case}}
.
It is also possible to use a format of {{#invoke:Template test case|main|parameters}}
. This uses the same defaults as {{Test case}}; please see that page for documentation of the parameters.
Configuration
This module has a configuration submodule on its nested subpage, Module:Template test case/config. You can edit it to add new wrapper templates, or to change the messages that the module outputs.