Difference between revisions of "Template:SimpleNav"

From Baka-Tsuki
Jump to navigation Jump to search
m (Forgot usage note)
Line 1: Line 1:
  +
<!-- Table properties -->
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; padding: 0.2em; border-collapse: collapse;"
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; padding: 0.2em; border-collapse: collapse;"
 
|-
 
|-
{{#if:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}|
 
{{#if:{{{b|}}}|{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}{{{b}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}{{{b}}}|{{{b}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|:}}}}:{{{b}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|:}}}}:{{{b}}}|{{{b}}}]]}}}}|
 
{{#switch:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}
 
|Illustrations={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Afterword|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Afterword|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}} Afterword]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Author Notes|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Author Notes|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}} Author Notes]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Epilogue|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}}}} Epilogue|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}-1}} Epilogue]]}}}}}}
 
|Prologue={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Illustrations|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Illustrations|Illustrations]]}}
 
|Epilogue={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|Chapter {{{e}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|Chapter {{{e}}}]]}}}}
 
|Afterword={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Epilogue|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Epilogue|Epilogue]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|Chapter {{{e}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|Chapter {{{e}}}]]}}}}}}
 
|Author Notes={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Epilogue|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Epilogue|Epilogue]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{e}}}|Chapter {{{e}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{e}}}|Chapter {{{e}}}]]}}}}}}
 
|{{#ifeq:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{{s|1}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Prologue|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Prologue|Prologue]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Illustrations|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Illustrations|Illustrations]]}}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}} {{#replace:{{#sub:{{PAGENAME}}|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}}|{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}-1}}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}} {{#replace:{{#sub:{{PAGENAME}}|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}}|{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}-1}}}}|Chapter {{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}-1}}]]}}}}}}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|:}}}}:{{#replace:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|:}}+1}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}-1}}}}|{{!}} Back to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|:}}}}:{{#replace:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|:}}+1}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}-1}}}}|Volume {{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}-1}}]]}}}}
 
| Return to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|:}}}}|Main Page]]
 
{{#if:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}|
 
{{#if:{{{f|}}}|{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}{{{f}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}{{{f}}}|{{{f}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|:}}}}:{{{f}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|:}}}}:{{{f}}}|{{{f}}}]]}}}}|
 
{{#switch:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}
 
|Illustrations={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Prologue|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Prologue|Prologue]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{s|1}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{s|1}}}|Chapter {{{s|1}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{s|1}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{s|1}}}|Chapter {{{s|1}}}]]}}}}}}
 
|Prologue={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{s|1}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter {{{s|1}}}|Chapter {{{s|1}}}]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{s|1}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Chapter{{{s|1}}}|Chapter {{{s|1}}}]]}}}}
 
|Epilogue={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Afterword|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Afterword|Afterword]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Author Notes|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Author Notes|Author Notes]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}} Illustrations]]}}}}}}
 
|Afterword={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}} Illustrations]]}}
 
|Author Notes={{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}} Illustrations]]}}
 
|{{#ifeq:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{{e}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}} Epilogue|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Epilogue|Epilogue]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Afterword|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Afterword|Afterword]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Author Notes|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}}}}}Author Notes|Author Notes]]|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#pos:{{PAGENAME}}|Volume}}}}{{#replace:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|Volume}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}}}} Illustrations|Volume {{#expr:{{#sub:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|0|{{#pos:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}| }}}}+1}} Illustrations]]}}}}}}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}} {{#replace:{{#sub:{{PAGENAME}}|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}}|{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}+1}}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}} {{#replace:{{#sub:{{PAGENAME}}|{{#rpos:{{#sub:{{PAGENAME}}|0|-3}}| }}}}|{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}|{{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}+1}}}}|Chapter {{#expr:{{#iferror:{{#expr:{{#sub:{{PAGENAME}}|-2}}+0}}|{{#sub:{{PAGENAME}}|-1}}}}+1}}]]}}}}}}}}|
 
{{#ifexist:{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|:}}}}:{{#replace:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|:}}+1}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}+1}}}}|{{!}} Forward to [[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}|:}}}}:{{#replace:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|:}}+1}}}}|{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}|{{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}+1}}}}|Volume {{#expr:{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|Volume}}+6}}}}+1}}]]}}}}
 
|-
 
|}<noinclude>
 
   
  +
<!-- First box, if potential previous page exists -->
<pre>
 
  +
<!-- Check1: Checks if the "back" manual override is used -->
Please do not edit unless you know what you're doing. Either way, there's a sandbox page at User:AKAAkira/SimpleNav
 
  +
{{#if: {{{b|{{{back|}}} }}}
   
  +
<!-- Check1 True: "back" manual override is being used -->
Usage notes:
 
  +
<!-- Check and if page exists, provide link to page with "back" argument placed after current volume number (e.g. Prologue) -->
On Full Page pages: simply type in the template: {{SimpleNav}}. The template will take care of the rest.
 
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} {{{b|{{{back}}} }}} <!-- SPACE BEFORE {{{b}}} IS IMPORTANT HERE -->
On individual chapters: type in {{SimpleNav|s=##|e=##}}, where each respective numbers are the chapter
 
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} {{{b|{{{back}}} }}} | {{{bn|{{{backname|{{{b|{{{back}}} }}} }}} }}} ]]
that the book Starts and Ends on. For example, SAO v4 contains chapters 5 to 9, so for that, I would
 
type in s=5 and e=9. (Note that the s argument defaults to 1, so it's not necessary to type in unless
 
the book starts on a chapter other than 1. Also note that the e argument only has to be typed in if
 
the page in question links to (i.e. Epilogue, Afterword, Author Notes, or the next volume's Illustrations)
 
or is a final chapter.
 
If the auto-function doesn't work at all, use the manual override: {{SimpleNav|b=link here|f=link2 here}},
 
where each respective "link here"s are the chapter or volume and chapter target. Please note that the
 
links must be spelled EXACTLY as it is in the page title/URL (for example, Chapter2 vs Chapter 2).
 
Examples:
 
To target Zero_no_Tsukaima:Volume1_Story2_Chapter1 from Zero_no_Tsukaima:Volume1_Story1_Chapter3,
 
insert f=Story2_Chapter1
 
To target Sword_Art_Online:Volume_10_Interlude_II from Sword_Art_Online:Volume_10_Chapter_4,
 
insert f=Interlude_II
 
To target Zero_no_Tsukaima:Volume4_Prologue from Zero_no_Tsukaima:Volume_3_Chapter_10 (this is not
 
chronological, there's the v4 Illustrations in the middle), insert f=Volume4_Prologue
 
   
  +
<!-- Check and if page exists, provide link to page with "back" argument placed after colon (e.g. Volume 1 Prologue) -->
Warning: This template is only guaranteed to work on pages which has their naming conventions CONSISTENT. Specifically:
 
  +
<!-- Reminder: SERIES_TITLE is used here instead of {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }} in case this template is used on pages
*There must be a colon (:) after the series title;
 
  +
without a volume number, such as side story pages -->
*Both the words Volume and Chapter are in the title, spelled correctly;
 
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}:{{{b|{{{back}}} }}} <!-- NO SPACE BEFORE {{{b}}} IS IMPORTANT HERE -->
*The word Volume must immediately precede the volume number;
 
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}:{{{b|{{{back}}} }}} | {{{bn|{{{backname|{{{b|{{{back}}} }}} }}} }}} ]]
*The word Chapter must immediately precede the chapter number;
 
  +
*For the above two, the latter must succeed the former;
 
  +
<!-- Same as above, except with a space after colon. -->
*The chapter number must be two digits or under;
 
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}: {{{b|{{{back}}} }}} <!-- SPACE BEFORE {{{b}}} IS IMPORTANT HERE -->
*For the auto-navigate to work on a non-chapter page, the page title can't end in a number; and
 
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}: {{{b|{{{back}}} }}} | {{{bn|{{{backname|{{{b|{{{back}}} }}} }}} }}} ]]
*For the auto-navigate function to work, the s (starting chapter) and e (ending chapter) arguments
 
  +
must be correct and the chapter must IMMEDIATELY succeed the former, with a space in between.
 
  +
<!-- Check and if page exists, provide link to page with "back" argument encompassing the entire link (e.g. "Main Page") -->
</pre>
 
  +
| {{#ifexist: {{{b|{{{back}}} }}}
  +
| {{!}} Back to [[ {{{b|{{{back}}} }}} | {{{bn|{{{backname|{{{b|{{{back}}} }}} }}} }}} ]]
  +
}}
  +
}}
  +
}}
  +
}}
  +
  +
<!-- Check1 False: manual override not being used -->
  +
<!-- Check2: Checks if there is anything after the volume number, and whether pagetitle has the word "volume" in it -->
  +
| {{#ifeq: {{#expr: {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | 1 | 0 }} and {{#if: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} | 0 | 1 }} }}
  +
| 1
  +
  +
<!-- Check2 True: there's nothing after the volume number, assume it's a volume page -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }}{{#replace: {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }}
  +
}}
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }}{{#replace: {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }}
  +
}} <!--
  +
-->| {{{bn|{{{backname|Volume {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} }}} }}}
  +
]]
  +
}}
  +
  +
<!-- Check2 False: there's stuff after the volume number, assume it's a chapter page -->
  +
<!-- Determine what chapter page it is, and then provide link to page naturally before it -->
  +
<!-- Order is like so:
  +
Chapter x -> Chapter x-1 -> ... -> Chapter /s/ (first chapter, usually 1) -> Prologue (optional) -> Illustrations ->
  +
Previous Volume Afterwords/Author's Notes (optional) -> Epilogue (optional) -> Chapter /e/ (final chapter) ->
  +
Chapter e-1 -> ... -> Chapter x
  +
Any other page will have to be manually inserted via {{{b}}} above -->
  +
| {{#switch: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }}
  +
| Illustrations =
  +
  +
<!-- First guess: the final chapter of last volume is "Afterword" -->
  +
{{#ifexist: {{#replace:
  +
  +
<!-- Note: Using #replace makes it irrelevant whether there's a space between word "Volume" and volume number -->
  +
<!-- Replace use #1:
  +
Within (1a) FULLPAGENAME or (1b) the world Volume and everything after,
  +
replace (1c) {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
with (1d) ({{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1) Afterword -->
  +
  +
<!-- (1a) --> {{FULLPAGENAME}}
  +
<!-- (1c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (1d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterword
  +
}}
  +
  +
<!-- First guess True: previous volume Afterword page exists -->
  +
<!-- Note that in the following cases, where invisible wrap is used by starting at one line and finishing in the next,
  +
they were placed there either for ease of reading (in truncated form) or because line breaks messes up formatting -->
  +
| {{!}} Back to [[ {{#replace:
  +
<!-- (1a) --> {{FULLPAGENAME}}
  +
<!-- (1b) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (1c) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterword
  +
}} <!--
  +
-->| {{{bn|{{{backname|{{#replace:
  +
<!-- (1b) --> {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
<!-- (1c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (1d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterword
  +
}}
  +
}}} }}}
  +
]]
  +
  +
<!-- First guess False: previous volume Afterword page doesn't exist -->
  +
<!-- Second guess: the final chapter of last volume is "Afterwords" -->
  +
| {{#ifexist: {{#replace:
  +
  +
<!-- Replace use #2:
  +
Within (2a) FULLPAGENAME or (2b) the world Volume and everything after,
  +
replace (2c) {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
with (2d) ({{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1) Afterwords -->
  +
  +
<!-- (2a) --> {{FULLPAGENAME}}
  +
<!-- (2c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (2d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterwords
  +
}}
  +
  +
<!-- Second guess True: previous volume Afterwords page exists -->
  +
| {{!}} Back to [[ {{#replace:
  +
<!-- (2a) --> {{FULLPAGENAME}}
  +
<!-- (2b) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (2c) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterwords
  +
}} <!--
  +
-->| {{{bn|{{{backname|{{#replace:
  +
<!-- (2b) --> {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
<!-- (2c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (2d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Afterwords
  +
}}
  +
}}} }}}
  +
]]
  +
  +
<!-- Second guess False: previous volume Afterwords page doesn't exist -->
  +
<!-- Third guess: the final chapter of last volume is "Author's Notes" -->
  +
| {{#ifexist: {{#replace:
  +
  +
<!-- Replace use #3: Within (3a) FULLPAGENAME or...
  +
you know what, you people should know this by now
  +
from the above two examples. -->
  +
  +
<!-- (3a) --> {{FULLPAGENAME}}
  +
<!-- (3c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (3d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author's Notes
  +
}}
  +
  +
<!-- Third guess True: previous volume Author's Notes page exists -->
  +
| {{!}} Back to [[ {{#replace:
  +
<!-- (3a) --> {{FULLPAGENAME}}
  +
<!-- (3b) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (3c) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author's Notes
  +
}} <!--
  +
-->| {{{bn|{{{backname|{{#replace:
  +
<!-- (3b) --> {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
<!-- (3c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (3d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author's Notes
  +
}}
  +
}}} }}}
  +
]]
  +
  +
<!-- Third guess False: previous volume Author's Notes page doesn't exist -->
  +
<!-- Fourth guess: the final chapter of last volume is "Author Notes" -->
  +
| {{#ifexist: {{#replace:
  +
  +
<!-- Replace use #4 -->
  +
  +
<!-- (4a) --> {{FULLPAGENAME}}
  +
<!-- (4c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (4d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author Notes
  +
}}
  +
  +
<!-- Fourth guess True: previous volume Author Notes page exists -->
  +
| {{!}} Back to [[ {{#replace:
  +
<!-- (4a) --> {{FULLPAGENAME}}
  +
<!-- (4b) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (4c) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author Notes
  +
}} <!--
  +
-->| {{{bn|{{{backname|{{#replace:
  +
<!-- (4b) --> {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
<!-- (4c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (4d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Author Notes
  +
}}
  +
}}} }}}
  +
]]
  +
  +
<!-- Fourth guess False: previous volume Author Notes page doesn't exist -->
  +
<!-- Fifth guess: the final chapter of last volume is "Epilogue" -->
  +
| {{#ifexist: {{#replace:
  +
  +
<!-- Replace use #5 -->
  +
  +
<!-- (5a) --> {{FULLPAGENAME}}
  +
<!-- (5c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (5d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Epilogue
  +
}}
  +
  +
<!-- Fifth guess True: previous volume Epilogue page exists -->
  +
| {{!}} Back to [[ {{#replace:
  +
<!-- (5a) --> {{FULLPAGENAME}}
  +
<!-- (5b) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (5c) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Epilogue
  +
}} <!--
  +
-->| {{{bn|{{{backname|{{#replace:
  +
<!-- (5b) --> {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
<!-- (5c) --> | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} Illustrations
  +
<!-- (5d) --> | {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} - 1 }} Epilogue
  +
}}
  +
}}} }}}
  +
]]
  +
  +
<!-- Fifth guess False: previous volume Epilogue page doesn't exist -->
  +
<!-- First box will not be created -->
  +
}}
  +
}}
  +
}}
  +
}}
  +
}}
  +
  +
| Prologue =
  +
{{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Illustrations
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Illustrations | {{{bn|{{{backname|Illustrations }}} }}} ]]
  +
}}
  +
  +
| Epilogue =
  +
{{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{e|{{{endchapter}}} }}} <!-- NOSPACE BETWEEN Chapter AND {{{e}}} IS IMPORTANT HERE -->
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{e|{{{endchapter}}} }}} <!--
  +
-->| {{{bn|{{{backname|Chapter {{{e|{{{endchapter}}} }}} }}} }}}
  +
]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{e|{{{endchapter}}} }}} <!-- SPACE BETWEEN Chapter AND {{{e}}} IS IMPORTANT HERE -->
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{e|{{{endchapter}}} }}} <!--
  +
-->| {{{bn|{{{backname|Chapter {{{e|{{{endchapter}}} }}} }}} }}}
  +
]]
  +
}}
  +
}}
  +
  +
<!-- Blank cases defaults their return to the same one as the next case that has one -->
  +
| Afterword
  +
  +
| Afterwords
  +
  +
| Author's Notes
  +
  +
| Author Notes =
  +
{{#ifexist:
  +
{{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Epilogue
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Epilogue | {{{bn|{{{backname|Epilogue }}} }}} ]]
  +
| {{#ifexist:
  +
{{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{e|{{{endchapter}}} }}} <!-- NOSPACE BETWEEN Chapter AND {{{e}}} IS IMPORTANT HERE -->
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{e|{{{endchapter}}} }}} <!--
  +
-->| {{{bn|{{{backname|Chapter {{{e|{{{endchapter}}} }}} }}} }}}
  +
]]
  +
| {{#ifexist:
  +
{{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{e|{{{endchapter}}} }}} | <!-- SPACE BETWEEN Chapter AND {{{e}}} IS IMPORTANT HERE -->
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{e|{{{endchapter}}} }}} <!--
  +
-->| {{{bn|{{{backname|Chapter {{{e|{{{endchapter}}} }}} }}} }}}
  +
]]
  +
}}
  +
}}
  +
}}
  +
  +
<!-- Only meant for those pages that end in a chapter number -->
  +
| {{#ifeq: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{{s|{{{startchapter|1 }}} }}}
  +
  +
<!-- This case happens if the chapter number is 1 or {{{s}}} -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Prologue
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Prologue | {{{bn|{{{backname|Prologue }}} }}} ]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Illustrations
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Illustrations | {{{bn|{{{backname|Illustrations }}} }}} ]]
  +
}}
  +
}}
  +
  +
<!-- This case happens if the chapter number is anything else -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }} <!--
  +
-->{{#replace: {{#sub: {{FULLPAGENAME}} | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} - 1 }}
  +
}}
  +
| {{!}} Back to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }} <!--
  +
-->{{#replace: {{#sub: {{FULLPAGENAME}} | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} - 1 }}
  +
}} <!--
  +
-->| {{{bn|{{{backname|Chapter {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} - 1 }} }}} }}}
  +
]]
  +
}}
  +
}}
  +
  +
<!-- None of the above applies. First box not created -->
  +
}}
  +
}}
  +
}}
  +
  +
<!-- Middle box, back to project overview page -->
  +
| Return to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }} | Main Page ]]<!-- Apparently this invisible wrapping is needed
  +
to keep out an awkward extra space from template -->
  +
<!-- Last box, if potential next page exists -->
  +
<!-- Check3: Checks if the "forward" manual override is used -->
  +
{{#if: {{{f|{{{forward|}}} }}}
  +
  +
<!-- Check3 True: "forward" manual override is being used -->
  +
<!-- Check and if page exists, provide link to page with "forward" argument placed after current volume number (e.g. Epilogue) -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} {{{f|{{{forward}}} }}} <!-- SPACE BEFORE {{{f}}} IS IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} {{{f|{{{forward}}} }}} | {{{fn|{{{forwardname|{{{f|{{{forward}}} }}} }}} }}} ]]
  +
  +
<!-- Check and if page exists, provide link to page with "forward" argument placed after colon (e.g. Volume 2 Epilogue) -->
  +
<!-- Reminder: SERIES_TITLE is used here instead of {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }} in case this template is used on pages
  +
without a volume number, such as side story pages -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}:{{{f|{{{forward}}} }}} <!-- NO SPACE BEFORE {{{f}}} IS IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}:{{{f|{{{forward}}} }}} | {{{fn|{{{forwardname|{{{f|{{{forward}}} }}} }}} }}} ]]
  +
  +
<!-- Same as above, except with space after colon -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}: {{{f|{{{forward}}} }}} <!-- SPACE BEFORE {{{f}}} IS IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | : }} }}: {{{f|{{{forward}}} }}} | {{{fn|{{{forwardname|{{{f|{{{forward}}} }}} }}} }}} ]]
  +
  +
<!-- Check and if page exists, provide link to page with "forward" argument encompassing the entire link (e.g. "Main Page") -->
  +
| {{#ifexist: {{{f|{{{forward}}} }}}
  +
| {{!}} Back to [[ {{{f|{{{forward}}} }}} | {{{fn|{{{forwardname|{{{f|{{{forward}}} }}} }}} }}} ]]
  +
}}
  +
}}
  +
}}
  +
}}
  +
  +
<!-- Check3 False: manual override not being used -->
  +
<!-- Check4: Checks if there is anything after the volume number, and whether pagetitle has the word "volume" in it -->
  +
| {{#ifeq: {{#expr: {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | 1 | 0 }} and {{#if: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} | 0 | 1 }} }}
  +
| 1
  +
  +
<!-- Check4 True: there's nothing after the volume number, assume it's a volume page -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }}{{#replace: {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }}
  +
}}
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | Volume }} }}{{#replace: {{#sub: {{FULLPAGENAME}} | {{#pos: {{FULLPAGENAME}} | Volume }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }}
  +
}} <!--
  +
-->| {{{fn|{{{forwardname|Volume {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} }}} }}}
  +
]]
  +
}}
  +
  +
<!-- Check4 False: there's stuff after the volume number, assume it's a chapter page -->
  +
  +
<!-- Determine what chapter page it is, and then provide link to page naturally after it -->
  +
<!-- Order is like so:
  +
Chapter x -> Chapter x+1 -> ... -> Chapter /e/ (last chapter) -> Epilogue (optional) -> Afterwords/Author's Notes (optional) ->
  +
Next Volume Illustrations -> Prologue (optional) -> Chapter /s/ (first chapter, usually 1) -> Chapter s+1 -> ... -> Chapter x
  +
Any other page will have to be manually inserted via {{{f}}} above -->
  +
| {{#switch: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }}
  +
| Illustrations =
  +
{{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Prologue
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Prologue <!--
  +
-->| {{{fn|{{{forwardname|Prologue }}} }}}
  +
]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} <!--
  +
-->Chapter {{{s|{{{startchapter|1 }}} }}} <!-- SPACE BETWEEN Chapter AND {{{s}}} IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{s|{{{startchapter|1 }}} }}} <!--
  +
-->| {{{fn|{{{forwardname|Chapter {{{s|{{{startchapter|1 }}} }}} }}} }}}
  +
]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} <!--
  +
-->Chapter{{{s|{{{startchapter|1 }}} }}} <!-- NOSPACE BETWEEN Chapter AND {{{s}}} IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{s|{{{startchapter|1 }}} }}} <!--
  +
-->| {{{fn|{{{forwardname|Chapter {{{s|{{{startchapter|1 }}} }}} }}} }}}
  +
]]
  +
}}
  +
}}
  +
}}
  +
  +
| Prologue =
  +
{{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} <!--
  +
-->Chapter {{{s|{{{startchapter|1 }}} }}} <!-- SPACE BETWEEN Chapter AND {{{s}}} IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter {{{s|{{{startchapter|1 }}} }}} <!--
  +
-->| {{{fn|{{{forwardname|Chapter {{{s|{{{startchapter|1 }}} }}} }}} }}}
  +
]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} <!--
  +
-->Chapter{{{s|{{{startchapter|1 }}} }}} <!-- NO SPACE BETWEEN Chapter AND {{{s}}} IMPORTANT HERE -->
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Chapter{{{s|{{{startchapter|1 }}} }}} <!--
  +
-->| {{{fn|{{{forwardname|Chapter {{{s|{{{startchapter|1 }}} }}} }}} }}}
  +
]]
  +
}}
  +
}}
  +
  +
<!-- Blank cases defaults their return to the same one as the next case that has one -->
  +
<!-- This case is for when the page is on Chapter {{{e}}}; it checks the last number against {{{e}}},
  +
and if they're the same, it returns Chapter {{{e}}} -->
  +
| {{#ifeq: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{{e|{{{endchapter}}} }}}
  +
| {{#sub: {{FULLPAGENAME}} | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }}
  +
| N/A
  +
}}
  +
  +
| Epilogue =
  +
{{#ifeq:
  +
  +
<!-- This checks first whether the Epilogue page exists, and second,
  +
whether the page the template is on currently is already the Epilogue page -->
  +
{{#expr: {{#ifeq: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} | Epilogue | 0 | 1 }}
  +
and
  +
{{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }} Epilogue | 1 | 0 }}
  +
}}
  +
| 1
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Epilogue | {{{fn|{{{forwardname|Epilogue }}} }}} ]]
  +
  +
<!-- If not on Epilogue page or there is no Epilogue page,
  +
go through the tired routine of trying all possible "atogaki" variations,
  +
and if none exist, go directly to next volume's Illustrations page -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Afterword
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Afterword | {{{fn|{{{forwardname|Afterword }}} }}} ]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Afterwords
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Afterwords | {{{fn|{{{forwardname|Afterwords }}} }}} ]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Author's Notes
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Author's Notes | {{{fn|{{{forwardname|Author's Notes }}} }}} ]]
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Author Notes
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#pos: {{FULLPAGENAME}} | {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | {{#len: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} }} }} }} }} Author Notes | {{{fn|{{{forwardname|Author Notes }}} }}} ]]
  +
| {{#ifexist: {{#replace: {{FULLPAGENAME}}
  +
| {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations
  +
}}
  +
| {{!}} Forward to [[ {{#replace: {{FULLPAGENAME}}
  +
| {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations
  +
}} <!--
  +
-->| {{{fn|{{{forwardname|Volume {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations }}} }}}
  +
]]
  +
}}
  +
}}
  +
}}
  +
}}
  +
}}
  +
}}
  +
  +
| Afterword
  +
  +
| Afterwords
  +
  +
| Author's Notes
  +
  +
| Author Notes =
  +
{{#ifexist: {{#replace: {{FULLPAGENAME}}
  +
| {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations
  +
}}
  +
| {{!}} Forward to [[ {{#replace: {{FULLPAGENAME}}
  +
| {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations
  +
}} <!--
  +
-->| {{{fn|{{{forwardname|Volume {{#expr: {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 3 }} + 0 }} | {{#iferror: {{#expr: {{#sub: {{#sub: {{FULLPAGENAME}} | {{#if: {{#pos: {{FULLPAGENAME}} | Volume }} | {{#expr: {{#pos: {{FULLPAGENAME}} | Volume }} +6 }} }} }} | 0 | 2 }} + 0 }} }} }} + 1 }} Illustrations }}} }}}
  +
]]
  +
}}
  +
  +
<!-- Only meant for those pages that end in a chapter number, except Chapter {{{e}}} -->
  +
| {{#ifexist: {{#sub: {{FULLPAGENAME}} | 0 | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }} <!--
  +
-->{{#replace: {{#sub: {{FULLPAGENAME}} | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} + 1 }}
  +
}}
  +
| {{!}} Forward to [[ {{#sub: {{FULLPAGENAME}} | 0 | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }} <!--
  +
-->{{#replace: {{#sub: {{FULLPAGENAME}} | {{#rpos: {{#sub: {{FULLPAGENAME}} | 0 | -3 }} | }} }}
  +
| {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }}
  +
| {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} + 1 }}
  +
}} <!--
  +
-->| {{{fn|{{{forwardname|Chapter {{#expr: {{#iferror: {{#expr: {{#sub: {{FULLPAGENAME}} | -2 }} + 0 }} | {{#sub: {{FULLPAGENAME}} | -1 }} }} + 1 }} }}} }}}
  +
]]
  +
}}
  +
  +
<!-- None of the above applies. Last box not created -->
  +
}}
  +
}}
  +
}}
  +
|-
  +
|}<noinclude>
  +
{{SimpleNav/About}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 02:31, 27 May 2014

Return to Main Page

Please do not edit unless you know what you're doing. If you must experiment, there's a sandbox page at User:AKAAkira/SimpleNav.

About SimpleNav

Advantages:

  • Very simple for newcomers to understand and use
  • Hides nonexistent pages until they're created, at which point it'll automatically update

Disadvantages:

  • Automation feature breaks very easily if pagenames aren't formatted "correctly" or consistently (see below)
  • Due being designed as a single template for many pages, may stress the servers if edited carelessly

Usage

Copy and paste the following:

{{SimpleNav
|back=
|forward=
|startchapter=
|endchapter=
}}

Explanation:

  • |back= is where you place the link to the previous page. You don't need to hyperlink the text; the template will do that for you. You may truncate the text to only the chapter or the volume and chapter, assuming that the text up until then is the same between the name of the page where you place the template and the name of the page you're directing it to. You can put in, for example, Chapter 3', Prologue, Volume 0 Special Chapter, or Volume4 Illustrations. The |back= itself may be truncated to just |b=.
  • |forward= is, like above, where you place the link to the next page. Again, you may truncate the hyperlink to state only the chapter or the volume and chapter if everything up until then is the same. Also, the |forward= itself may be truncated to |f=.
  • |startchapter= is where you put in the number for the first chapter of the current volume. This defaults to 1. It may also be substituted with |s=.
  • |endchapter= is, similarly to above, where you put in the number for the last chapter of the current volume. This is important to put in because there is no way for this template to guess when the chapters end and go into the epilogue. This may also be substituted with |e=.

It's quite possible that you will not have to fill in any of these variables, owing to the automated nature of this template.

Extras:

  • |backname= is used if you want to display a different text over the back link. The argument name itself can be truncated to |bn=. For example, the text "Back to Volume 08 Chapter 1" can be changed to become "Back to Chapter 1" if you put in |bn=Chapter 1.
  • |forwardname= is, same as above, used if you want to display a different text over the forward link, and can be truncated to |fn=.
(May update this later.)
Examples:
 On Full Page pages: simply type {{SimpleNav}}
 On individual chapters: type in {{SimpleNav|s=##|e=##}}, where each respective numbers are the chapter
    that the book Starts and Ends on. For example, SAO v4 contains chapters 5 to 9, so for that, I would
    type in s=5 and e=9. (Note that the s argument defaults to 1, so it's not necessary to type in unless
    the book starts on a chapter other than 1. Also note that the e argument only has to be typed in if
    the page in question links to (i.e. Epilogue, Afterword, Author Notes, or the next volume's Illustrations)
    or is a final chapter.
  If the auto-function doesn't work at all, use the manual override: {{SimpleNav|b=link here|f=link2 here}},
    where each respective "link here"s are the chapter or volume and chapter target. Please note that the
    links must be spelled EXACTLY as it is in the page title/URL (for example, Chapter2 vs Chapter 2).
    Examples:
      To target Zero_no_Tsukaima:Volume1_Story2_Chapter1 from Zero_no_Tsukaima:Volume1_Story1_Chapter3,
      insert f=Story2_Chapter1
      To target Sword_Art_Online:Volume_10_Interlude_II from Sword_Art_Online:Volume_10_Chapter_4,
      insert f=Interlude_II
      To target Zero_no_Tsukaima:Volume4_Prologue from Zero_no_Tsukaima:Volume_3_Chapter_10 (this is not
      chronological, there's the v4 Illustrations in the middle), insert f=Volume4_Prologue

Warnings

The automation feature is only guaranteed to work on pages which has their naming conventions CONSISTENT. Specifically:

  • Doesn't work if there's no colon (:) after the series title;
  • May not work if the word "Volume" isn't in the pagename, or spelled correctly;
  • Doesn't work if the word "Volume" doesn't immediately precede the volume number;
  • Doesn't work if the word "Chapter" or equivalent doesn't immediately precede the chapter number;
  • Doesn't work if there are any more words (e.g. "Preview") after the chapter number;
  • Doesn't work if the chapter number comes before the volume number;
  • Doesn't work if the volume or chapter number are three or more digits;
  • May not work if the volume or chapter numbers are not pure integers (e.g. Volume 1A);
  • Doesn't work (yet) if the volume or chapter numbers are buffered with zeros (e.g. Volume 08);
  • May not work if this is used on a page outside of English.