Module:Xpd/doc

Expansion demo, like Template:Xpd. The invocation call is the same as the template call to be demonstrated, except that " " is inserted, or " " to start the result of the template call in a new paragraph. For parameters with explicit positive integer names the integer is reduced by 1 in the result (just like for implicit names, due to the position taken by the template name in the invocation of the module).

Without affecting the result the template call is written in a normalized form:
 * Values of named parameters are trimmed.
 * Definitions of parameters with implicit or explicit positive integer names are ordered in ascending order; explicit names among them are removed; these parameters are put before the remaining ones. Multiple definitions of the same parameter are replaced by the final one.
 * Expressions for parameter values are replaced by their result.

Examples:

gives:

gives:

gives:

gives:

gives:

Limitations
For templates only (not for variables or parser functions):  gives:

The left-hand side does not show the wikitext but the rendering of the parameter values. This affects e.g. sequences of more than two spaces, and single newlines. Also link code is shown as a link.

gives:

Parameters with explicit or implicit positive integer names have to form a set {1, 2, .. k} without gaps.

Example:

gives: (wrong)