Template:Xpds

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis, port unchanged from WikiMedia+cat w/{{Mediawiki} -- needs ParserFunctions to turn on)
 
(genesis, port unchanged from WikiMedia+cat w/{{Mediawiki} -- needs ParserFunctions to turn on)
 
Line 26: Line 26:
 
*[[Template:Xpdp]] - the same, except that it starts the result of the template, variable or parser function call in a new paragraph
 
*[[Template:Xpdp]] - the same, except that it starts the result of the template, variable or parser function call in a new paragraph
 
*[[m:Template:Xpd/doc]]
 
*[[m:Template:Xpd/doc]]
[[Category:Handbook templates|{{PAGENAME}}]]{{Mediawiki}}
+
[[Category:Handbook templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:15, 2 July 2013


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: {{#invoke:xpd|s}}


{{xpds|#expr:1/7}} gives: {{#invoke:xpd|s}}


{{xpds|2x|[[abc]] }} gives: {{#invoke:xpd|s}}


{{xpds|{{#expr:7-5}}x|{{#expr:1/7}} }} gives: {{#invoke:xpd|s}}


{{xpds|t2demo||abc}} gives: {{#invoke:xpd|s}}


{{xpds|SeeHook|ParserBeforeStrip}} gives: {{#invoke:xpd|s}}


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

{{#invoke:xpd|s}}

[edit] See also

Personal tools