Template:Xpdn: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude></noinclude>{{<code>{{{subst|}}}{{{1}}}</code>{{<small> </small><code>{{{subst|}}}{{{2}}}</code>}}<code>{{{3|}}}</code>}} {{{{{subst|}}}#ifeq: {{{s|+}}}|{{{s|-}}}|{{{s}}}|{{{4|gives}}}}} {{{{{subst|}}}{{{1}}}{{{{{subst|}}}{{{2}}}}}{{{3|}}}}}<noinclude> | ||
---- | ---- | ||
;Usage: | ;Usage: |
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