Template:Evaldemo/3/doc

From Sydapedia
< Template:Evaldemo/3
Revision as of 21:09, 8 December 2007 by SydLexia (talk | contribs) (Protected "Template:Evaldemo/3/doc" [edit=sysop:move=sysop])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
30px This is a copy of the master template page at Meta. Do not edit this copy.
Edits will be lost in the next update from the master page. See below for more information.
Template:Phh:Evaldemo/3/doc

Template:Evaldemo/3 (edit talk links history) shows the call of a template or predefined template and its result, for documentation.

Usage:
{{evaldemo/3|left side|up to 3 additional parameters}}
{{evaldemo/3|left side|up to 3 additional parameters|s=separator}}
The default separator is "gives", use s== to get "=". The first parameter has to be specified and can't be empty, compare Template:Evaldemo (edit talk links history). Please note that for colon functions the first parameter belongs to the left side before the "|" vertical bar aka pipe, use {{evaldemo}} for examples without any vertical bar.
Examples:
  1. {{evaldemo/3|#ifeq: 1.00|+1|okay}}
    {{ #ifeq: 1.00 | +1 | okay }} gives okay
  2. {{evaldemo/3|#ifeq: this|that | true | false|s=is}}
    {{ #ifeq: this | that | true | false }} is false

Optional substitution with subst=subst: is not supported. It's anyway against the spirit of this demo template showing what another template actually does, and not what it did some time ago.