Template:Xpds

{{documentation|content=

This Template:xpds (expansion demo) shows the call of a variable, parser function or template and its result, for documentation. The call is the same as the template call to be demonstrated, except that " " is inserted after the opening braces.

The template uses Module:Xpd; see also Module talk:Xpd.

Examples:

{{tlx|xpds|CURRENTTIME}} gives: {{xpds|CURRENTTIME}}

{{tlx|xpds|#expr:1/7}} gives: {{xpds|#expr:1/7}}

{{tlx|xpds|2x|abc }} gives: {{xpds|2x|abc }}

{{tlx|xpds|{{#expr:7-5}}x|{{#expr:1/7}} }} gives: {{xpds|{{#expr:7-5}}x|{{#expr:1/7}} }}

{{tlx|xpds|t2demo||abc}} gives: {{xpds|t2demo||abc}}

{{tlx|xpds|SeeHook|ParserBeforeStrip}} gives: {{xpds|SeeHook|ParserBeforeStrip}}

{{tlx|xpds|Foreach|SeeHook|delim{{=}},|ParserBeforeStrip|ParserAfterStrip}} gives:

{{xpds|Foreach|SeeHook|delim=,|ParserBeforeStrip|ParserAfterStrip}}