Template:Xpdn

From TrainzOnline
Revision as of 00:12, 4 July 2013 by Fabartus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{{{{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:20241127040921 mod 100}}"
Personal tools