Template:Series box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
wrapping table in a div so I don't have to worry about redoing parts of the TOC styling |
||
| Line 1: | Line 1: | ||
<table class="toc | <div class="floatright"><table class="toc" style="width:300px; text-align:center;"><!-- | ||
--><tr><td colspan="2">'''{{{series|This story is part of a series}}}'''</td></tr><!-- | --><tr><td colspan="2">'''{{{series|This story is part of a series}}}'''</td></tr><!-- | ||
-->{{#if:{{{previous|}}}| <tr><td style="text-align:left; font-size:x-small;">Preceded by:</td> <td>'''{{{previous}}}'''</td></tr>}}<!-- | -->{{#if:{{{previous|}}}| <tr><td style="text-align:left; font-size:x-small;">Preceded by:</td> <td>'''{{{previous}}}'''</td></tr>}}<!-- | ||
-->{{#if:{{{next|}}}| <tr><td style="text-align:left; font-size:x-small;"> Succeeded by:</td> <td>'''{{{next}}}'''</td></tr>}}<!-- | -->{{#if:{{{next|}}}| <tr><td style="text-align:left; font-size:x-small;"> Succeeded by:</td> <td>'''{{{next}}}'''</td></tr>}}<!-- | ||
--></table><noinclude> | --></table></div><noinclude> | ||
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: | 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: | ||
| Line 17: | Line 17: | ||
results in: | results in: | ||
{| class="toc | <div class="floatright"> | ||
{| class="toc" style="width:300px; text-align:center;" | |||
|- | |- | ||
| colspan="2" | '''The Magic Cheese Saga''' | | colspan="2" | '''The Magic Cheese Saga''' | ||
| Line 27: | Line 28: | ||
|'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]''' | |'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]''' | ||
|} | |} | ||
</div> | |||
<br clear="all"/> | <br clear="all"/> | ||
| Line 38: | Line 40: | ||
Results in: | Results in: | ||
{| class="toc | <div class="floatright"> | ||
{| class="toc" style="width:300px; text-align:center;" | |||
|- | |- | ||
| colspan="2" | '''This story is part of a series''' | | colspan="2" | '''This story is part of a series''' | ||
| Line 45: | Line 48: | ||
|'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]''' | |'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]''' | ||
|} | |} | ||
</div> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:58, 11 August 2007
{{#if:| }}{{#if:| }}
| This story is part of a series | |
| 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 |