Template:Xpdn

From FORwiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{<code>{{{subst|}}}{{{1}}}</code>{{<small> </small><code>{{{subst|}}}{{{2}}}</code>}}<code>{{{3|}}}</code>}} {{{{{subst|}}}#ifeq: {{{s|+}}}|{{{s|-}}}|{{...')
 
Line 7: Line 7:
:{{Tlx|{{PAGENAME}}|#expr:|CURRENTTIMESTAMP| mod 100}} gives
:{{Tlx|{{PAGENAME}}|#expr:|CURRENTTIMESTAMP| mod 100}} gives
:"{{{{PAGENAME}}|#expr:|CURRENTTIMESTAMP| mod 100}}"
:"{{{{PAGENAME}}|#expr:|CURRENTTIMESTAMP| mod 100}}"
 +
<noinclude>
 +
[[Category:Templates]]
 +
</noinclude>

Current revision as of 23:25, 2 December 2009

{{{{{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 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 34"
Personal tools