Template:Three digit test

From WikiIslam, the online resource on Islam
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}}} }}