Difference between revisions of "Template:0expr"

From blackwiki
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&#58;
 
;Evaluate expression, add leading zero to results 0, 1, ..., 9. Pointless example&#58;
;{{Tlx|0expr|{&#123;CURRENTDOW&#125;}}} = {{0expr|{{CURRENTDOW}}}} for {{Nomw|CURRENTDOW}}
+
;{&#123; <code>0expr|</code>{&#123;CURRENTDOW&#125;}&#125;} = {{0expr|{{CURRENTDOW}}}} for {{Nomw|CURRENTDOW}}
;For details see the [[{{TALKPAGENAME}}|talk page]].
+
;{&#123; <code>#expr&#58;</code>{&#123;CURRENTDOW&#125;}&#125;} = {{#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.

Category:Templates using ParserFunctions Category:Date math