Template:Xpdn
From TrainzOnline
{{{{{1}}}
{{{{{2}}}
}}}} {{#ifeq: +|-|{{{s}}}|gives}} {{{{{1}}}{{{{{2}}}}}}}
- Usage:
- {{{{#if:outer-left| }}Xpdn{{#if:outer-left|
| outer-left }}{{#if:inner| | inner }}{{#if:outer-right<tt>|s=separator| | outer-right|s=separator }}{{#if:| | {{{5}}} }}{{#if:| | ... }}{{#if:outer-left| }}}}</tt>
- The default separator is "gives", use e.g. s== for "=". The second parameter has to specified and can't be empty, compare Template:evaldemo. With optional substitution subst=subst: the first parameter also can't be empty.
- Example:
- {{{{#if:#expr:| }}Xpdn{{#if:#expr:|
| #expr: }}{{#if:CURRENTTIMESTAMP| | CURRENTTIMESTAMP }}{{#if: mod 100| | mod 100 }}{{#if:| | {{{5}}} }}{{#if:| | ... }}{{#if:#expr:| }}}} gives
- "{{
#expr:
{{CURRENTTIMESTAMP
}}mod 100
}} {{#ifeq: +|-|{{{s}}}|gives}} {{#expr:20241105092504 mod 100}}"