Template:Xpds

From Vietnam Veterans for Factual History
Jump to navigation Jump to search


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: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


{{xpds|#expr:1/7}} gives: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


{{xpds|2x|[[abc]] }} gives: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


{{xpds|{{#expr:7-5}}x|{{#expr:1/7}} }} gives: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


{{xpds|t2demo||abc}} gives: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


{{xpds|SeeHook|ParserBeforeStrip}} gives: Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory


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

Lua error: Cannot create process: proc_open(/log/lua.error): Failed to open stream: No such file or directory

See also