Difference between revisions of "Template:Xpdn"

From AerialWiki
Jump to navigation Jump to search
(Created page with "{{<code>{{{subst|}}}{{{1}}}</code>{{<code>{{{subst|}}}{{{2}}}</code>}}<code>{{{3|}}}</code>}} {{{{{subst|}}}#ifeq: {{{s|+}}}|{{{s|-}}}|{{{s}}}|{{{4|gives}}...")
 
m (Protected "Template:Xpdn" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(No difference)

Latest revision as of 18:51, 6 September 2012

{{{{{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 metawikipedia:Template:evaldemo. 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 53"