Template:Xpdnp/doc: Difference between revisions

m
remove { from templates
(Created page with "{{Documentation subpage}} This {{til|xpdnp}} (expansion demo with named parameters) shows the call of a template or switch and its result, for documentation. I...")
 
m (remove { from templates)
Line 23: Line 23:
While the template works for templates without parameters it does not work properly for variables:
While the template works for templates without parameters it does not work properly for variables:


*<nowiki>{{xpdnp|CURRENTTIME}}</nowiki> gives: {{xpdnp|CURRENTTIME}}
*<nowiki>xpdnp|CURRENTTIME</nowiki> gives: xpdnp|CURRENTTIME


Therefore, for variables use {{tim|xpdoc}} instead:
Therefore, for variables use {{tim|xpdoc}} instead:
*<nowiki>{{xpdoc|CURRENTTIME}}</nowiki> gives: {{xpdoc|CURRENTTIME}}
*<nowiki>xpdoc|CURRENTTIME</nowiki> gives: xpdoc|CURRENTTIME




<!-- template categories and interwiki links -->
<!-- template categories and interwiki links -->
<includeonly></includeonly>
<includeonly></includeonly>
42,316

edits