User:Flashjay/templates/GCDissueTOCtest01: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
-->'''Active test start''' | -->'''Active test start''' | ||
<ol style="list-style: outside none none;"> | <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="padding-left: 10px; 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 /> | <li style="padding-left: 10px; 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 | {{{testcolour}}} }};">{{{tocnumber|3}}}. Foreword to the second edition</li> | <li style="padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{{testcolour}}} }};">{{{tocnumber|3}}}. Foreword to the second edition</li> | ||
</ol> | </ol> | ||
'''Active test finish'''<!-- | '''Active test finish'''<!-- | ||
Line 21: | Line 21: | ||
<ol start="2" style="list-style | <ol start="2" style="list-style: outside none none;"> | ||
<li>About the author</li> | <li>About the author</li> | ||
<li style="background-color: #ddd;">Foreword to the first edition<br /> | <li style="background-color: #ddd;">Foreword to the first edition<br /> | ||
Line 27: | Line 27: | ||
<li style="background-color: {{{testcolour|yellow}}};">Foreword to the second edition</li> | <li style="background-color: {{{testcolour|yellow}}};">Foreword to the second edition</li> | ||
</ol> | </ol> | ||
<div style="width: 100%; margin-left: auto; margin-right: auto; margin-top: 20px; border-spacing: 0px 0px; border: 2px solid black; background: none; font-family: Helvetica,Arial,Verdana,sans-serif; font-size: 1em;"> | |||
<ol start="2" style="list-style: outside none none; margin-left: 0;"> | |||
<li>About the author</li> | |||
<li style="background-color: #ddd; padding-left: 5px;">Foreword to the first edition<br /> | |||
Feature is</li> | |||
<li style="background-color: {{{testcolour|yellow}}};">Foreword to the second edition</li> | |||
</ol> | |||
</div> | |||
<ol style="list-style: | <ol style="list-style-type: decimal;"> | ||
<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|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 /> | <li style="background-color: {{#ifeq: {{#expr:{{{tocnumber|2}}}mod2 }} | 0 | yellow | red }};">{{{tocnumber|2}}}. Foreword to the first edition<br /> | ||
Line 75: | Line 85: | ||
|- | |- | ||
| style="text-align: left; padding: 5px 10px 5px 10px;"| | | style="text-align: left; padding: 5px 10px 5px 10px;"| | ||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px; background-color: yellow;"|'''0.''' Title<br />Feature Name | |||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px;"|'''Script:''' John Smith | |||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px; background-color: yellow;"|'''Script:''' John Smith | |||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px;"|'''Script:''' John Smith | |||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px; background-color: yellow;"|'''Script:''' John Smith | |||
|- | |||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px;"|'''Script:''' John Smith | |||
|- | |||
|} | |||
{| style="width: 100%; margin-left: auto; margin-right: auto; margin-top: 20px; border-spacing: 0px 0px; border: 2px solid black; background: none; font-family: Helvetica,Arial,Verdana,sans-serif; font-size: 1em;" | |||
|- style="height: 30px; font-size: 1.2em; background-color: black; color: white;" | |||
| style="text-align: left; padding-left: 10px; padding-right: 10px;"|'''Table of Contents''' | |||
|- | |- | ||
| style="height: 20px; text-align: left; padding: 0px 10px 0px 10px; background-color: yellow;"|'''0.''' Title<br />Feature Name | | style="height: 20px; text-align: left; padding: 0px 10px 0px 10px; background-color: yellow;"|'''0.''' Title<br />Feature Name |
Revision as of 16:39, 25 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
- 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
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 |