Difference between revisions of "Template:0expr/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
(tidy style)
blackwiki>Sardanaphalus
(userspace/sandbox non-categorisation)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
{{lua|Module:BaseConvert}}
+
{{Lua|Module:BaseConvert}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
  
=== Usage ===
+
===Usage===
 
Evaluate expression, add leading zero to non-negative result &lt; 10.
 
Evaluate expression, add leading zero to non-negative result &lt; 10.
  
Line 33: Line 33:
 
|}
 
|}
  
<includeonly>
+
{{When in namespace |user=
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
| other = <includeonly>
 +
  {{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!---- CATEGORIES BELOW THIS LINE, PLEASE: ---->
 
[[Category:Date mathematics templates]]
 
[[Category:Date mathematics templates]]
 
+
  }}
 
</includeonly>
 
</includeonly>
 +
}}

Revision as of 21:37, 7 December 2014

Usage

Evaluate expression, add leading zero to non-negative result < 10.

{{0expr| {{CURRENTDOW}} }} = 03 for {{CURRENTDOW}} = 3

{{ #expr:{{ CURRENTDOW}}}} = 3, for details see the talk page.

Code Result
{{0expr|-1}} -1
{{0expr|123/100}} 01.2299999999
{{0expr|1+9}} 10
{{0expr|not 10}} 00
{{0expr|1=(7<=8)*9}} 09
{{0expr|(7<=8)*9|2+3}} 05

Template:When in namespace