Difference between revisions of "Template:0expr"
Jump to navigation
Jump to search
blackwiki>Omniplex (show difference to #expr:) |
blackwiki>Omniplex m (trim) |
||
| 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. | + | ;Evaluate expression, add leading zero to results 0, 1, ..., 9. Example: |
;{{ <code>0expr|</code>{{CURRENTDOW}}}} = {{0expr|{{CURRENTDOW}}}} for {{Nomw|CURRENTDOW}} | ;{{ <code>0expr|</code>{{CURRENTDOW}}}} = {{0expr|{{CURRENTDOW}}}} for {{Nomw|CURRENTDOW}} | ||
;{{ <code>#expr:</code>{{CURRENTDOW}}}} = {{#expr:{{CURRENTDOW}}}}, for details see the [[{{TALKPAGENAME}}|talk page]]. | ;{{ <code>#expr:</code>{{CURRENTDOW}}}} = {{#expr:{{CURRENTDOW}}}}, for details see the [[{{TALKPAGENAME}}|talk page]]. | ||
Revision as of 22:19, 1 June 2006
- Evaluate expression, add leading zero to results 0, 1, ..., 9. Example:
- {{
0expr|{{CURRENTDOW}}}} = 00 for Template:Nomw - {{
#expr:{{CURRENTDOW}}}} = 0, for details see the talk page.