Module:Convert/show/doc

This module can be used to prepare tables of wikitext to display simple documentation for specified units. Data is obtained by calling Module:Convert. In addition, the module can be used to show convert usage examples.

Listing links
See Module talk:Convert/show for a list of unique links for units. The list is shorter and easier to check than the full list of units.

Displaying unit information
The module contains a built-in list of commonly used units. The information at Help:Convert units is the output from:

When no units are specified, the full built-in list of unit codes is used. In addition, the headings and examples defined in the module are displayed.

Units may be specified by entering section names or individual unit codes. No headings or examples are included if units are specified.

For example, one or more sections from the full list can be displayed as in the following examples:

Any "input" unit codes can be specified individually, for example, the following line: gives the result:

Only units suitable for use as a conversion input can be used. For example,  cannot be used as it is an output unit which displays the result in feet and inches.

Displaying usage examples
The module can display examples of usage in a list or a table. The required parameters must be separated with  (exclamation mark) rather than the normal   (pipe), and a parameter that includes an equals sign must be prefixed with   (for the first parameter), or   (for the second), etc.

For example, the following line: gives the result:

The same information can be displayed in a table. gives the result:

Substitution
Results from invoking the module can be substituted into the current page, for example:

Substitution may be useful if editing of the resulting wikitext is required.