Module:transliteration module testcases/documentation

Returns a function that creates testcases for a single romanization function.

Can be used by placing the following code in the testcases module:

The 'module' argument may be the transliteration function itself if so desired.

Positional arguments are supported and still used. There are then four required and one optional argument. The required arguments are lua, lua, lua and lua as above. The fifth and optional argument is lua, which gather the options as above together.

Options:
 * lua
 * If true, the items in the "test" column will not be linked.


 * lua
 * A function to process the text before it is linked or language-tagged. It receives and should return a string. For even greater flexibilty, it is actually passed the first four field of the example.  (Omitted fields will be received as lua.  This returned string is then treated as the name of a page in Wiktionary, unless option lua is set.


 * lua
 * A function to process the text, including the linking and language-tagging. It receives as argument the first four fields of each example, with omitted fields being lua.  It returns the string to be output in the text field.


 * lua
 * This is the lua option as passed to function lua of Module:UnitTests.

As with Module:UnitTests, the documentation page should have.