Template:Xpd/doc

This (expansion demo) shows the call of a variable, parser function or template and its result, for documentation.


 * Usage&#58;

Please note that for parser functions the first parameter belongs to the left side before "|".

Examples without additional parameters:

{&#123;subst:xpd|uc:Upper Case|subst=subst:&#125;} substitutes {&#123; &#160; &#125;} UPPER CASE

See Help:Substitution for several caveats wrt subst=subst:.

Note that, as always, a parameter containing "=" has to be explicitly named by putting, in this case, "1=" in front.

can be used in the case of an expression in double braces which itself includes a pair of double braces (simple nested expressions). Use "|" for the inner " ".

Examples with additional parameters (no nesting possible):

In the case of one or more named parameters, write all parameter definitions from that as value of the appropriate parameter number, e.g.:
 * t link gives "t link"

Optional substitution with subst=subst: is not supported. The demo template shows what another template actually does, and not what it did some time ago.

Separator parameter

 * Usage&#58;


 * The default separator is "gives", use s== or similar to get "=" etc.

Examples with separator parameter: