User:Flashjay/templates/GCDissueTOCtest01: Difference between revisions
No edit summary |
No edit summary |
||
Line 35: | Line 35: | ||
<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{#var:testcolour}} }};"><span id="toc2">{{#var:TestSeqNOT2}}. [[#Unique anchor name 1|{{#var:TestTitleorFirstline2}}]]</span><br /> | <li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{{tocnumber|3}}}mod2 }} | 0 | yellow | {{#var:testcolour}} }};"><span id="toc2">{{#var:TestSeqNOT2}}. [[#Unique anchor name 1|{{#var:TestTitleorFirstline2}}]]</span><br /> | ||
TocCounter:{{#var:TocCounter}}</li> | TocCounter:{{#var:TocCounter}}</li> | ||
<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq2}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq2}}. [[#Unique anchor name 1|{{#var:TocTitle2}}]]</span>{{ #if:{{#var:TocFeature2|}}|<br />{{#var:TocFeature2}}|<br />{{#var:TocFeature2|No feature selected}}}} | <li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq2}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq2}}. [[#Unique anchor name 1|{{#var:TocTitle2}}]]</span>{{ #if:{{#var:TocFeature2|}}|<br />{{#var:TocFeature2}}|<br />{{#var:TocFeature2|No feature selected Test Default}}}}</li> | ||
</ol> | </ol> | ||
</div> | </div> | ||
'''Active test finish 2'''<!-- | '''Active test finish 2'''<!-- | ||
--> | |||
<!-- | |||
-->'''Active test start 3''' | |||
<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;"> | |||
{| style="width: 100%; margin-left: auto; margin-right: auto; margin-top: 0px; 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''' | |||
|- | |||
|} | |||
<ol style="list-style: outside none none; margin: 0;">{{#vardefine:TocNum|0}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
{{ #if:{{#var:TocSeq{{#var:TocNum}}|}}|<li style="margin: 0; padding-left: 10px; background-color: {{#ifeq: {{#expr:{{#var:TocSeq{{#var:TocNum}}}}mod2 }} | 0 | yellow | green }};"><span id="toc4">{{#var:TocSeq{{#var:TocNum}}}}. [[#Unique anchor name 1|{{#var:TocTitle{{#var:TocNum}}}}]]</span>{{ #if:{{#var:TocFeature{{#var:TocNum}}|}}|<br />{{#var:TocFeature{{#var:TocNum}}}}}}</li><!-- | |||
-->{{#vardefine:TocNum|{{#expr:{{#var:TocNum}}+1}}}}<!-- | |||
-->}} | |||
</ol> | |||
</div> | |||
'''Active test finish 3'''<!-- | |||
--></includeonly><!-- | --></includeonly><!-- | ||
--><noinclude> | --><noinclude> |
Revision as of 12:27, 11 January 2020
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 - . [[#Unique anchor name 1|]]
TocCounter: - . [[#Unique anchor name 1|]]
No feature selected Test Default
Active test finish 2
Active test start 3
Table of Contents |
Active test finish 3
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 - . [[#Unique anchor name 1|]]
TocCounter: - . [[#Unique anchor name 1|]]
No feature selected Test Default
Active test finish 2
Active test start 3
Table of Contents |
Active test finish 3
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 |