Difference between revisions of "Template:0expr"
Jump to navigation
Jump to search
blackwiki>Omniplex m (Pointer to docu) |
blackwiki>Omniplex (show difference to #expr:) |
||
| Line 1: | Line 1: | ||
{{#ifexpr: (0 <= {{{1|10}}}) and ({{{1|10}}} < 10) and ({{{1|10}}} round 0 = {{{1|10}}})|0}}{{#expr:{{{1|}}}}}<noinclude> | {{#ifexpr: (0 <= {{{1|10}}}) and ({{{1|10}}} < 10) and ({{{1|10}}} round 0 = {{{1|10}}})|0}}{{#expr:{{{1|}}}}}<noinclude> | ||
;Evaluate expression, add leading zero to results 0, 1, ..., 9. Pointless example: | ;Evaluate expression, add leading zero to results 0, 1, ..., 9. Pointless example: | ||
| − | ;{ | + | ;{{ <code>0expr|</code>{{CURRENTDOW}}}} = {{0expr|{{CURRENTDOW}}}} for {{Nomw|CURRENTDOW}} |
| − | ; | + | ;{{ <code>#expr:</code>{{CURRENTDOW}}}} = {{#expr:{{CURRENTDOW}}}}, for details see the [[{{TALKPAGENAME}}|talk page]]. |
{{Category|Templates using ParserFunctions}} | {{Category|Templates using ParserFunctions}} | ||
{{Category|Date math}} | {{Category|Date math}} | ||
</noinclude> | </noinclude> | ||
Revision as of 22:17, 1 June 2006
- Evaluate expression, add leading zero to results 0, 1, ..., 9. Pointless example:
- {{
0expr|{{CURRENTDOW}}}} = 00 for Template:Nomw - {{
#expr:{{CURRENTDOW}}}} = 0, for details see the talk page.