Template:Three digit test

From WikiIslam, the online resource on Islam
Revision as of 23:04, 22 October 2006 by Axius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0


{{qif |test={{{1|0}}} > 99.5 |then={{{1|0}}} |else={{qif |test={{{1|0}}} > 9.5 |then=0{{{1|0}}} |else=00{{{1|0}}} }} }}

Original 3 digit template: {{ #ifexpr: ({{{1|0}}} > 99.5) | {{{1|0}}} | {{ #ifexpr: ({{{1|0}}} > 9.5) | 0{{{1|0}}} | 00{{{1|0}}} }} }}

Old version: {{qif|test=({{{1|0}}}>99.5) | then={{{1|0}}} | else={{qif|test=({{{1|0}}}>9.5) | then=0{{{1|0}}} | 00{{{1|0}}}}}}}{{qif|test=({{{1|0}}}>9.5) | then=0{{{1|0}}} | else=00{{{1|0}}}}} {{qif|test=({{{1|0}}}>99.5) | then={{{1|0}}} | else={{qif|test=({{{1|0}}}>9.5) | then=0{{{1|0}}}|else=00{{{1|0}}}}}}} {{qif | test=({{{1|0}}}>99.5) | then={{{1|0}}} | else={{qif | test=({{{1|0}}}>9.5) | then=0{{{1|0}}} | else=00{{{1|0}}}}}}}


How to use QIF:

{{qif |test={{boolne|foo|bar}} |then=true |else=false }}



This:

{{ #ifexpr: ({{{1|0}}} > 99.5) | {{{1|0}}} | {{ #ifexpr: ({{{1|0}}} > 9.5) | 0{{{1|0}}} | 00{{{1|0}}} }} }}

(the above will work when parserfunctions work again)


is being split into this:

{{qif |test={{{1|0}}} > 99.5 |then={{{1|0}}} |else={{ qif|test= ({{{1|0}}} > 9.5) | 0{{{1|0}}} | 00{{{1|0}}} }} }} {{qif|test={{{1|0}}} > 9.5 |then=0{{{1|0}}} |else=00{{{1|0}}} }}