Difference between revisions of "Template:Story Nav"

From A3! Wiki
m
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly><tr>
 
<includeonly><tr>
<th>{{#if: {{{previous|}}} | [[{{{previous}}}|Previous]] | Previous}}</th>
+
<th>{{#if: {{{previous|}}} | [[{{{previous}}}|Previous]] |}}</th>
<th>{{#if: {{{returnto|}}} | {{{returnto}}} | [[Story|Story Hub]]}}</th>
+
<th>{{#if: {{{returnto|}}} | {{{returnto}}} | [[Main Story]]}}</th>
<th>{{#if: {{{next|}}} | [[{{{next}}}|Next]] | Next}}</th>
+
<th>{{#if: {{{next|}}} | [[{{{next}}}|Next]] |}}</th>
 
</tr></includeonly>
 
</tr></includeonly>
  
 
<noinclude>
 
<noinclude>
 +
==Code==
 
<pre>
 
<pre>
 
<tr>
 
<tr>
 
<th>{{#if: {{{previous|}}} | [[{{{previous}}}|Previous]] | Previous}}</th>
 
<th>{{#if: {{{previous|}}} | [[{{{previous}}}|Previous]] | Previous}}</th>
<th>{{#if: {{{returnto|}}} | {{{returnto}}} | [[Story|Story Hub]]}}</th>
+
<th>{{#if: {{{returnto|}}} | {{{returnto}}} | [[Main Story]]}}</th>
 
<th>{{#if: {{{next|}}} | [[{{{next}}}|Next]] | Next}}</th>
 
<th>{{#if: {{{next|}}} | [[{{{next}}}|Next]] | Next}}</th>
 
</tr>
 
</tr>
 
</pre>
 
</pre>
  
 +
==How to use==
 
<pre>{{Line
 
<pre>{{Line
|previous=page title of previous story, if applicable
+
|previous=Page title of previous story, if applicable.
|returnto=page to return to if not Story Hub (ie. Outside Work Conversations) otherwise defaults to Story Hub and doesn't need to be filled out
+
|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}}</pre>
+
|next=Page title of next story, if applicable.}}</pre>
 +
 
 +
==Example==
 +
<pre>{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}</pre>
 +
 
 +
==Example in use==
 +
<table class="storytable">
 +
{{Story Nav|returnto=[[Event Story]]|next=Boy Alice in Wonderland/Episode 2}}
 +
</table>
 
</noinclude>
 
</noinclude>

Latest revision as of 14:20, 18 December 2023


Code[edit]

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

How to use[edit]

{{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[edit]

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

Example in use[edit]

Event Story Next