Module:Template test case/doc explained

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 one of the following templates:

Parameter-based templates:

The only difference between these templates is their default arguments. For example, it is possible to display test cases side by side in by specifying

Nowiki-based templates:

It is also possible to use a format of <nowiki>{{#invoke:template test case|main|</nowiki>''parameters''<nowiki>}}</nowiki>. This uses the same defaults as ; please see that page for documentation of the parameters.

There is no direct interface to this module for other Lua modules. Lua modules should generally use Lua-based test case modules such as or . If it is really necessary to use this module, you can use frame:expandTemplate with one of the templates listed above.

Configuration

This module has a configuration module at . You can edit it to add new wrapper templates, or to change the messages that the module outputs.

Tracking categories