Template:Xpd0

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

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 "{{tlc|...}}" [1]
  • {{tc}} gives {{tlc|...}} [2]
  • "{{tc}}" gives "{{tlc|...}}" [3]
  • "{{msgnw:tc}}" gives "<span class="nowrap"><code>&#123;&#123;{{#if:{{{1|}}}|{{{1}}}| tlc&#124;...}}<!--

-->{{#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></span><noinclude>{{doc}}</noinclude>" [4]

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