Difference between revisions of "Template:Story Nav"

From A3! Wiki
(F)
Line 6: Line 6:
  
 
<noinclude>
 
<noinclude>
'''Code:'''
+
==Code==
 
<pre>
 
<pre>
 
<tr>
 
<tr>
Line 15: Line 15:
 
</pre>
 
</pre>
  
'''How to use:'''
+
==How to use==
 
<pre>{{Line
 
<pre>{{Line
 
|previous=Page title of previous story, if applicable.
 
|previous=Page title of previous story, if applicable.
Line 21: Line 21:
 
|next=Page title of next story, if applicable.}}</pre>
 
|next=Page title of next story, if applicable.}}</pre>
  
'''Example:'''
+
==Example==
 
<pre>{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}</pre>
 
<pre>{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}</pre>
  
'''Which creates:'''
+
==Example in use==
 
<table class="storytable">
 
<table class="storytable">
 
{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}
 
{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}
 
</table>
 
</table>
 
</noinclude>
 
</noinclude>

Revision as of 13:11, 5 June 2017


Code

<tr>
<th>{{#if: {{{previous|}}} | [[{{{previous}}}|Previous]] | Previous}}</th>
<th>{{#if: {{{returnto|}}} | {{{returnto}}} | [[Story|Story Hub]]}}</th>
<th>{{#if: {{{next|}}} | [[{{{next}}}|Next]] | Next}}</th>
</tr>

How to use

{{Line
|previous=Page title of previous story, if applicable.
|returnto=Page to return to, if not Story Hub (it will default to Story Hub if not specified). Wrap it in link tags if using, eg. [[Event Story]]
|next=Page title of next story, if applicable.}}

Example

{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}

Example in use

Previous Event Story Next