Difference between revisions of "Template:0expr"
Jump to navigation
Jump to search
blackwiki>Gary (adding documentation) |
|||
| Line 1: | Line 1: | ||
<includeonly>{{{{{subst|}}}#ifexpr: 0 <= ({{{1}}}) and ({{{1}}}) < 10|0}}{{{{{subst|}}}#expr:{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | <includeonly>{{{{{subst|}}}#ifexpr: 0 <= ({{{1}}}) and ({{{1}}}) < 10|0}}{{{{{subst|}}}#expr:{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | ||
| + | |||
| + | == | ||
| + | == Headline text == | ||
| + | '''you tube fckin sucks | ||
| + | ''' == | ||
Revision as of 23:29, 11 February 2009
| This template uses Lua: |
Contents
Usage
Evaluate expression, add leading zero to non-negative result < 10.
{{0expr| {{CURRENTDOW}} }} = 04
==
Headline text
you tube fckin sucks
== for {{CURRENTDOW}} = 4
{{ #expr:{{ CURRENTDOW}}}} = 4, for details see the talk page.
| Code | Result |
|---|---|
{{0expr|-1}}
|
-1
== Headline textyou tube fckin sucks == |
{{0expr|123/100}}
|
01.23
== Headline textyou tube fckin sucks == |
{{0expr|1+9}}
|
10
== Headline textyou tube fckin sucks == |
{{0expr|not 10}}
|
00
== Headline textyou tube fckin sucks == |
{{0expr|1=(7<=8)*9}}
|
09
== Headline textyou tube fckin sucks == |
{{0expr|(7<=8)*9|2+3}}
|
05
== Headline textyou tube fckin sucks == |
| The above documentation is transcluded from Template:0expr/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
==
Headline text
you tube fckin sucks ==