Difference between revisions of "Template:Evaldemo/3"
From Sydapedia
Jump to navigationJump to search (New page: <includeonly><tt><b>{{</b></tt><small> </small><tt>{{{1}}}</tt><small> </small><tt><b>|</b></tt><small> </small><tt>{{{2|}}}</tt>{{{{{subst|}}}#ifeq:{{{4|}}}|{{{4|...) |
m (Protected "Template:Evaldemo/3" [edit=sysop:move=sysop]) |
(No difference)
|
Latest revision as of 20:09, 8 December 2007
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 colon functions the first parameter belongs to the left side before the "|" vertical bar aka pipe, use {{evaldemo}} for examples without any vertical bar. . Please note that for
- Examples:
-
- {{evaldemo/3|#ifeq: 1.00|+1|okay}}
- {{ #ifeq: 1.00 | +1 | okay }} gives okay
- {{evaldemo/3|#ifeq: this|that | true | false|s=is}}
- {{ #ifeq: this | that | true | false }} is false
- {{evaldemo/3|#ifeq: 1.00|+1|okay}}
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.