Template:Xpdn: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{hh}}</noinclude>{&#123;<code>{{{subst|}}}{{{1}}}</code>{&#123;<small>&#160;</small><code>{{{subst|}}}{{{2}}}</code>&#125;}<code>{{{3|}}}</code>&#125;} {{{{{subst|}}}#ifeq: {{{s|+}}}|{{{s|-}}}|{{{s}}}|{{{4|gives}}}}} {{{{{subst|}}}{{{1}}}{{{{{subst|}}}{{{2}}}}}{{{3|}}}}}<noinclude>
<noinclude></noinclude>{&#123;<code>{{{subst|}}}{{{1}}}</code>{&#123;<small>&#160;</small><code>{{{subst|}}}{{{2}}}</code>&#125;}<code>{{{3|}}}</code>&#125;} {{{{{subst|}}}#ifeq: {{{s|+}}}|{{{s|-}}}|{{{s}}}|{{{4|gives}}}}} {{{{{subst|}}}{{{1}}}{{{{{subst|}}}{{{2}}}}}{{{3|}}}}}<noinclude>
----
----
;Usage&#58;
;Usage&#58;

Revision as of 20:48, 22 March 2013

{{{{{1}}}{{ {{{2}}}}}}} gives {{{{{1}}}{{{{{2}}}}}}}


Usage:
{{Xpdn|outer-left|inner|outer-right|s=separator}}
The default separator is "gives", use e.g. s== for "=". The second parameter has to specified and can't be empty, compare m:Template:evaldemo (backlinks, edit)

. With optional substitution subst=subst: the first parameter also can't be empty.

Example:
{{Xpdn|#expr:|CURRENTTIMESTAMP| mod 100}} gives
"{{#expr:{{ CURRENTTIMESTAMP}} mod 100}} gives 14

"

See also

Category:Handbook templates|Xpdn