Template:Xpd

{&#123; &#160; {&#123; &#125;} &#125;}   This template  shows the call of a template or predefined template and its result, for documentation.&#124;


 * Usage&#58;


 * The default separator is "gives", use s== or similar to get "=" etc. Please note that for parser functions the first parameter belongs to the left side before the "|" vertical bar aka pipe.

Examples without additional parameters:

Examples&#58;
 * 1) displays
 * 2) displays
 * 3) displays
 * 4) displays
 * 5) displays
 * 6) gives
 * 7) {&#123;subst:|uc:Upper Case|subst=subst:&#125;} substitutes
 * {&#123; &#160; &#125;} UPPER CASE
 * See Help:Substitution for several caveats wrt subst=subst:.
 * 1) gives
 * 2) {&#123;subst:|uc:Upper Case|subst=subst:&#125;} substitutes
 * {&#123; &#160; &#125;} UPPER CASE
 * See Help:Substitution for several caveats wrt subst=subst:.
 * {&#123; &#160; &#125;} UPPER CASE
 * See Help:Substitution for several caveats wrt subst=subst:.

As always the expression (first parameter) cannot directly contain "|", "=", plus other special cases related to square brackets / curly braces. In the case of this template "not directly" means "never" except from "=" as shown above.

This template and template:Evdn ( edit•talk•links•history ) can be used if the case of an expression in double braces which itself includes a pair of double braces (simple nested expressions). For the former, use named parameters 1n (Nested part of first parameter) and optionally 1a (part After that). For the latter, use "|" for the inner " ".


 * 1) gives
 * 2) gives
 * 3) gives
 * 4) gives
 * 5) displays
 * 6) displays
 * 1) displays

Examples with additional parameters (no nesting possible):


 * Example&#58;
 * gives:


 * Example&#58;
 * gives:


 * Example&#58;
 * gives:


 * Example&#58;
 * gives:



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

Optional substitution with subst=subst: is not supported. It's anyway against the spirit of this demo template showing what another template actually does, and not what it did some time ago.