Template:Series box: Difference between revisions

From Shifti
Jump to navigation Jump to search
mNo edit summary
close table rows, remove unneeded defaults
Line 2: Line 2:
|-
|-
| colspan="2" | '''{{{series|This story is part of a series}}}'''
| colspan="2" | '''{{{series|This story is part of a series}}}'''
{{#if:{{{previous|}}}|<tr>
{{#if:{{{previous|}}}|<tr><td style="text-align:left; font-size:x-small;>Preceded&nbsp;by:</td><td>'''{{{previous}}}'''</td></tr>}}<!--
<td style="text-align:left; font-size:x-small;>Preceded&nbsp;by:</td>
-->{{#if:{{{next|}}}|<tr><td style="text-align:left; font-size:x-small;> Succeeded&nbsp;by:</td><td>'''{{{next}}}'''</td></tr>}}
<td>'''{{{previous|None}}}'''</td>}}<!--
-->{{#if:{{{next|}}}|<tr>
<td style="text-align:left; font-size:x-small;> Succeeded&nbsp;by:</td>
<td>'''{{{next|None}}}'''</td>}}
|}<noinclude>
|}<noinclude>



Revision as of 20:23, 9 August 2007

}}{{#if:|}}
This story is part of a series {{#if:|
Preceded by:{{{previous}}}
Succeeded by:{{{next}}}

This template is meant to provide a standard, tidy way of linking together stories that form a series that's meant to be read in a particular order. It takes three parameters, all optional: series, previous, and next. "series" is very freeform; it's the text that's inserted at the top of the template (defaults to "This story is part of a series"). "previous" and "next" are meant to be links to the previous and next stories. For example, the following template call:

{{series box
|previous= [[User:Joe Bloe/Cheesy Menace|Cheesy Menace]]
|series= The Magic Cheese Saga
|next= [[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]
}}

results in:

The Magic Cheese Saga
Preceded by: Cheesy Menace
Succeeded by: Electric Boogaloo


Omitting parameters results in their defaults being used or rows being omitted. For example, the following template call:

{{series box| next= [[[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]}}

Results in:

This story is part of a series
Succeeded by: Electric Boogaloo