Jump to content

Template:Chapter: Difference between revisions

using ifexpr for math instead of ifeq, which is for strings
(template now only requires one parameter instead of four)
(using ifexpr for math instead of ifeq, which is for strings)
Line 14: Line 14:
|-
|-
![[Image:Act {{#switch:{{{1|7}}}|1|2|3|4|5|6|7=1|8|9|10|11=2|12|13|14=3}} .MISSION FAILED.png|128px]]
![[Image:Act {{#switch:{{{1|7}}}|1|2|3|4|5|6|7=1|8|9|10|11=2|12|13|14=3}} .MISSION FAILED.png|128px]]
!valign="center" | {{#ifeq:{{{1}}}|0|(None)|[[Image:Chapter {{{1|7}}} .MISSION COMPLETE.png|128px]]}}
!valign="center" | {{#ifexpr:{{{1|7}}}=0|(None)|[[Image:Chapter {{{1|7}}} .MISSION COMPLETE.png|128px]]}}
|-
|-
!Lose-splashscreen
!Lose-splashscreen
!Win-splashscreen
!Win-splashscreen
|-
|-
!{{#ifeq:{{{1|7}}}-1|-1|[[Image:Intro frame 1077.png|128px]]|[[Image:{{C{{#expr:{{{1|7}}}-1}}}}.png|128px]]}}
!{{#ifexpr:{{{1|7}}}-1=-1|[[Image:Intro frame 1077.png|128px]]|[[Image:{{C{{#expr:{{{1|7}}}-1}}}}.png|128px]]}}
!{{#ifeq:{{{1|7}}}+1|15|[[Image:Outro frame 365.png|128px]]|[[Image:{{C{{#expr:{{{1|7}}}+1}}}}.png|128px]]}}
!{{#ifexpr:{{{1|7}}}+1=15|[[Image:Outro frame 365.png|128px]]|[[Image:{{C{{#expr:{{{1|7}}}+1}}}}.png|128px]]}}
|-
|-
!{{#ifeq:{{{1|7}}}-1|-1|[[Intro|<nowiki><<</nowiki> Prev. chapter]]|[[{{C{{#expr:{{{1|7}}}-1}}}}|<nowiki><<</nowiki> Prev. chapter]]}}
!{{#ifexpr:{{{1|7}}}-1=-1|[[Intro|<nowiki><<</nowiki> Prev. chapter]]|[[{{C{{#expr:{{{1|7}}}-1}}}}|<nowiki><<</nowiki> Prev. chapter]]}}
!{{#ifeq:{{{1|7}}}+1|15|[[Outro|Next chapter <nowiki>>></nowiki>]]|[[{{C{{#expr:{{{1|7}}}+1}}}}|Next chapter <nowiki>>></nowiki>]]}}
!{{#ifexpr:{{{1|7}}}+1=15|[[Outro|Next chapter <nowiki>>></nowiki>]]|[[{{C{{#expr:{{{1|7}}}+1}}}}|Next chapter <nowiki>>></nowiki>]]}}
|}
|}
|}
|}
<noinclude>Documentation goes here.
<noinclude>Documentation goes here.
[[Category:General table templates]]</noinclude>
[[Category:General table templates]]</noinclude>