Template:Xpds: Difference between revisions

From The Adachi Wiki
Jump to navigation Jump to search
>Shirayuki
mNo edit summary
 
Created page with "<includeonly>{{#invoke:xpd|s}}</includeonly><noinclude> {{documentation|content= {{Lua|Module:xpd}} 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 "<code>xpds{{!}}</code>" is inserted after the opening braces. The template uses Module:Xpd; see also Module talk:Xpd. Examples: ---- {{tlx|xpds|CURRENTTIME}..."
 
(No difference)

Latest revision as of 19:36, 11 February 2023

Template documentation

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 "xpds|" is inserted after the opening braces.

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

Examples:


{{xpds|CURRENTTIME}} gives: {{CURRENTTIME}} → 18:30


{{xpds|#expr:1/7}} gives: {{#expr:1/7}} → 0.14285714285714


{{xpds|2x|abc}} gives: {{2x|[[abc]] }}abc abc


{{xpds|2x|0.14285714285714}} gives: {{2x|0.14285714285714 }} → 0.14285714285714 0.14285714285714


{{xpds|t2demo|abc}} gives: {{t2demo||abc}}Template:T2demo


{{xpds|hook|ParserBeforeStrip}} gives: {{hook|ParserBeforeStrip}}ParserBeforeStrip


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

{{Foreach|hook|ParserBeforeStrip|ParserAfterStrip|delim=,}}ParserBeforeStrip ,ParserAfterStrip

See also