Template:Xpd0

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation


Expanding demo for a template without parameters, or a parser function with colon and part after the colon, or a variable.

This is a simplified version of Template:Xpdoc, for the case that there is no wikitext after the closing braces.

Examples:

  • "{{tc}}" gives "{{{{{1}}}}}" [1]
  • {{tc}} gives {{{{{1}}}}} [2]
  • "{{tc}}" gives "{{{{{1}}}}}" [3]
  • "{{msgnw:tc}}" gives "<onlyinclude><!--

--><templatestyles src="Template:Nowrap/styles.css"/><!-- --><code class="nowrap"><!-- -->&#123;&#123;<includeonly>{{{1}}}</includeonly><noinclude>tlc&#124;...</noinclude><!-- -->{{#ifeq:{{{2|x}}}|{{{2|}}}| &#124;{{{2}}} }}<!-- -->{{#ifeq:{{{3|x}}}|{{{3|}}}| &#124;{{{3}}} }}<!-- -->{{#ifeq:{{{4|x}}}|{{{4|}}}| &#124;{{{4}}} }}<!-- -->{{#ifeq:{{{5|x}}}|{{{5|}}}| &#124;{{{5}}} }}<!-- -->{{#ifeq:{{{6|x}}}|{{{6|}}}| &#124;{{{6}}} }}<!-- -->{{#ifeq:{{{7|x}}}|{{{7|}}}| &#124;{{{7}}} }}<!-- -->{{#ifeq:{{{8|x}}}|{{{8|}}}| &#124;{{{8}}} }}<!-- -->{{#ifeq:{{{9|x}}}|{{{9|}}}| &#124;{{{9}}} }}<!-- -->&#125;&#125;<!-- --></code><!-- --></onlyinclude> {{Documentation}}" [4]

  • "{{#expr:2*3}}" gives "6" [5]
  • "{{CURRENTTIME}}" gives "20:21" [6]