Template:Chapter: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (cat.d)
(adjust mission complete screen names to have zero padding for Chapters 1-9)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|align=right
{|style="float:right" border=1 cellspacing=0 cellpadding=0
![[Image:{{C{{{1|7}}}}}.jpg|128px]]
|
{|
!colspan=2|{{C{{{1|7}}}}}
|-
|-
!
![[Image:{{C{{{1|7}}}}}.png|128px]]<br>Intro screen
!valign="top"|
{{Chapters|align=center}}
{{Chapters|align=center}}
{|cellspacing=0 cellpadding=0 width=100%
|[[Quotes/Speech#{{C{{{1|7}}}}}|Speech]] <nowiki>|</nowiki> [[Quotes/Consoles#{{C{{{1|7}}}}}|Consoles]]
|-
|-
![[Image:{{C{{{3|6}}}}}.jpg|128px]]<br>{{C|{{{3|6}}}|PREVIOUS CHAPTER}}
|[[Quotes/Objectives#{{C{{{1|7}}}}}|Objectives]] <nowiki>|</nowiki> [[Quotes/Diary#{{C{{{1|7}}}}}|Diary]]
|}
|-
|-
![[Image:Act {{{2|2}}} .MISSION FAILED.jpg|128px]]<br>Failure splashscreen
![[Image:Act {{#switch:{{{1|7}}}|0|1|2|3|4|5|6=1|7|8|9|10|11=2|12|13|14=3}} .MISSION FAILED.png|128px]]
!valign="center" | {{#ifexpr:{{{1|7}}}=0|(None)|{{#ifexpr:{{{1|7}}}<10|[[Image:Chapter 0{{{1|7}}} .MISSION COMPLETE.png|128px]]|[[Image:Chapter {{{1|7}}} .MISSION COMPLETE.png|128px]]}}}}
|-
|-
![[Image:Chapter {{{1|7}}} .MISSION COMPLETE.jpg|128px]]<br>Ending splashscreen
!Failure screen
!Success screen
|-
|-
![[Image:{{C{{{4|8}}}}}.jpg|128px]]<br>{{C|{{{4|8}}}|NEXT CHAPTER}}
!{{#ifexpr:{{{1|7}}}-1=-1|[[Image:Intro frame 1077.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]]}}
|-
!{{#ifexpr:{{{1|7}}}-1=-1|[[Intro|<nowiki><<</nowiki> Prev. chapter]]|[[{{C{{#expr:{{{1|7}}}-1}}}}|<nowiki><<</nowiki> Prev. chapter]]}}
!{{#ifexpr:{{{1|7}}}+1=15|[[Outro|Next chapter <nowiki>>></nowiki>]]|[[{{C{{#expr:{{{1|7}}}+1}}}}|Next chapter <nowiki>>></nowiki>]]}}
|}
|}
|}
<noinclude>[[Category:Tables]]</noinclude>
<noinclude>This handy template is used for navigation on the [[Chapters|Chapter summary pages]] (sample on right). The syntax is simply <nowiki>{{Chapter|x}}</nowiki>, where x is the chapter number (0-14). Internally, the template uses the [[Template:Chapters|Chapters]] template, which creates the box at the upper-right with the chapter numbers using the [[Template:C|C template]]. The C template and this Chapter template itself use the templates [[Template:C0|C0]]&mdash;[[Template:C14|C14]] to obtain the actual level names used to generate the wiki links in the navigation box.
 
[[Category:Table templates]]</noinclude>

Latest revision as of 12:31, 4 April 2023

CHAPTER 07 . A FRIEND IN NEED
CHAPTER 07 . A FRIEND IN NEED.png
Intro screen
Chapters of Oni 00
01 02 03 04 05 06 07
08 09 10 11 12 13 14
Speech | Consoles
Objectives | Diary
Act 2 .MISSION FAILED.png Chapter 07 .MISSION COMPLETE.png
Failure screen Success screen
CHAPTER 06 . COUNTERATTACK.png CHAPTER 08 . AN INNOCENT LIFE.png
<< Prev. chapter Next chapter >>

This handy template is used for navigation on the Chapter summary pages (sample on right). The syntax is simply {{Chapter|x}}, where x is the chapter number (0-14). Internally, the template uses the Chapters template, which creates the box at the upper-right with the chapter numbers using the C template. The C template and this Chapter template itself use the templates C0C14 to obtain the actual level names used to generate the wiki links in the navigation box.