Template:Xpdn: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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: | ||
Line 11: | Line 11: | ||
*[[Template:Xpd]] | *[[Template:Xpd]] | ||
Category:Handbook templates|{{PAGENAME}} | Category:Handbook templates|{{PAGENAME}} | ||
</noinclude> | |||
<noinclude> | |||
[[Category:X]] | |||
</noinclude> | </noinclude> |
Latest revision as of 15:23, 16 June 2014
{{{{{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 47
"
See also
Category:Handbook templates|Xpdn