User:Flashjay/templates/GCDissueTOCtest01: Difference between revisions
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|1}}}mod2 }} | 0 | white | #ddd }};">{{{tocnumber|1}}}. About the author</li> | <li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|1}}}mod2 }} | 0 | white | #ddd }};">{{{tocnumber|1}}}. About the author</li> | ||
<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | white | #ddd }};">{{{tocnumber|2}}}. Foreword to the first edition<br /> | <li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | white | #ddd }};">{{{tocnumber|2}}}. Foreword to the first edition<br /> | ||
Feature is | Feature is</li> | ||
<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{#var:testcolour}} }};">{{{tocnumber|3}}}. Foreword to the second edition</li> | <li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{#var:testcolour}} }};">{{{tocnumber|3}}}. Foreword to the second edition</li> | ||
</ol> | </ol> |
Revision as of 21:10, 26 December 2019
Result of explode (101&&&this. is a. title) = 101
Result of explode (101&&&this. is a. title) = this. is a. title
Result of explode (101.this. is a. title) = is
{{User:Flashjay/templates/GCDissueTOCtest01
|testcolour=red
}}
Result of explode (#explode:982. Fourth title with number added|.|0) = 982
Active test start
Table of Contents |
- 1. About the author
- 2. Foreword to the first edition
Feature is - 3. Foreword to the second edition
Active test finish
Active test start 2
Table of Contents |
- 1. First title
- 982. Fourth title with number added
Feature is - 3. Third title
Active test finish 2
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
Table of Contents |
- 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
Table of Contents |
- 1. About the author
- 2. Foreword to the first edition
Feature is - 3. Foreword to the second edition
Active test finish
Active test start 2
Table of Contents |
- 1. First title
- 982. Fourth title with number added
Feature is - 3. Third title
Active test finish 2
Table of Contents |
Script: John Smith |
Table of Contents |
0. Title Feature Name |
Script: John Smith |
Script: John Smith |
Script: John Smith |
Script: John Smith |
Script: John Smith |
Table of Contents |
0. Title Feature Name |
Script: John Smith |
Script: John Smith |
Script: John Smith |
Script: John Smith |
Script: John Smith |