User:Flashjay/templates/GCDissueTOCtest01: Difference between revisions

From GCD
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Divide 0 by 2 = remainder {{#expr:0mod2}} {{#ifeq: {{#expr:0mod2 }} | 0 | Even false | Odd true }}
<includeonly>{{#vardefine:NumberofSeqNOT|25}}<!--
--><!--
-->'''Active test start'''
<ol style="list-style: outside none none;">
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|1}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|1}}}. About the author</li>
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|2}}}. Foreword to the first edition<br />
Feature is</li>
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|3}}}. Foreword to the second edition</li>
</ol>
'''Active test finish'''<!--
--></includeonly><!--
--><noinclude>Divide 0 by 2 = remainder {{#expr:0mod2}} {{#ifeq: {{#expr:0mod2 }} | 0 | Even false | Odd true }}


Divide 2 by 2 = remainder {{#expr:2mod2}} {{#ifeq: {{#expr:2mod2 }} | 0 | Even false | Odd true }}
Divide 2 by 2 = remainder {{#expr:2mod2}} {{#ifeq: {{#expr:2mod2 }} | 0 | Even false | Odd true }}
Line 34: Line 45:
   <li style="background-color: {{{testcolour|red}}};">Foreword to the second edition</li>
   <li style="background-color: {{{testcolour|red}}};">Foreword to the second edition</li>
</ol>
</ol>
Active test
<ol style="list-style: outside none none;">
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|1}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|1}}}. About the author</li>
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|2}}}. Foreword to the first edition<br />
Feature is</li>
  <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|3}}}. Foreword to the second edition</li>
</ol>
Active test





Revision as of 02:02, 24 December 2019

Divide 0 by 2 = remainder 0 Even false

Divide 2 by 2 = remainder 0 Even false

Divide 3 by 2 = remainder 1 Odd true

{{#ifeq: {{#expr: expression }} | 0 | value if false | value if true }}

Zero is false, any number is true


  1. About the author
  2. Foreword to the first edition
    Feature is
  3. Foreword to the second edition



  1. 1. About the author
  2. 2. Foreword to the first edition
    Feature is
  3. 3. Foreword to the second edition


  1. About the author
  2. Foreword to the first edition
  3. Foreword to the second edition


{{User:Flashjay/templates/GCDissueTOCtest01 |testcolour=red }}