.

Template:Evaldemo/3/doc

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search

{{#if: Template||}}

{{ {{#if: |{{{1}}}|ns:0}} }}

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

Usage:
{{Evaldemo/3{{#if:left side||left side}}{{#if:up to 3 additional parameters||up to 3 additional parameters}}{{#if:||{{{4}}}}}{{#if:||etc.}}}}
{{Evaldemo/3{{#if:left side||left side}}{{#if:up to 3 additional parameters||up to 3 additional parameters}}{{#if:s=separator||s=separator}}{{#if:||etc.}}}}
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{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||etc.}}}} for examples without any vertical bar.
Examples:
  1. {{Evaldemo/3{{#if:#ifeq: 1.00||#ifeq: 1.00}}{{#if:+1||+1}}{{#if:okay||okay}}{{#if:||etc.}}}}
    {{ #ifeq: 1.00 | +1{{#ifeq:|-| | okay | {{{4}}}|{{#ifeq:okay|okay| | okay}}}} }} {{#ifeq:|-|{{{s}}}|gives}} {{#ifeq:|-|{{#ifeq: 1.00|+1|okay|{{{4}}}}}|{{#ifeq:okay|okay|{{#ifeq: 1.00|+1|okay}}|{{#ifeq: 1.00|+1}}}}}}
  2. {{Evaldemo/3{{#if:#ifeq: this||#ifeq: this}}{{#if:that | true | false||that | true | false}}{{#if:s=is||s=is}}{{#if:||etc.}}}}
    {{ #ifeq: this | that{{#ifeq:false|false| | true | false|{{#ifeq:true|true| | true}}}} }} {{#ifeq:is|is|is|gives}} {{#ifeq:false|false|{{#ifeq: this|that|true|false}}|{{#ifeq:true|true|{{#ifeq: this|that|true}}|{{#ifeq: this|that}}}}}}

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.