User:Flashjay/templates/GCDissueTOCtest01: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 35: | Line 35: | ||
<li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|2}}}. Foreword to the first edition<br /> | <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|2}}}. Foreword to the first edition<br /> | ||
Feature is</li> | Feature is</li> | ||
<li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | | <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{{testcolour}}} }};">{{{tocnumber|3}}}. Foreword to the second edition</li> | ||
</ol> | </ol> | ||
Line 51: | Line 51: | ||
|testcolour=red | |testcolour=red | ||
}}</nowiki> | }}</nowiki> | ||
{{User:Flashjay/templates/GCDissueTOCtest01 | |||
|testcolour=blue | |||
}} |
Revision as of 02:04, 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
- About the author
- Foreword to the first edition
Feature is - Foreword to the second edition
- 1. About the author
- 2. Foreword to the first edition
Feature is - 3. Foreword to the second edition
- About the author
- Foreword to the first edition
- Foreword to the second edition
{{User:Flashjay/templates/GCDissueTOCtest01 |testcolour=red }}
Active test start
- 1. About the author
- 2. Foreword to the first edition
Feature is - 3. Foreword to the second edition
Active test finish