This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Difference between revisions of "Template:Episode sidebar/Spoiler"

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
(modernize: make namespaces optional on last and next, ital ep titles)
imported>Hardvice
(episode --> spoiler)
Line 11: Line 11:
 
-->{{#if: {{{directedby|}}} | <tr> <th>Directed by:</th> <td>{{{directedby}}}</td> </tr>}}
 
-->{{#if: {{{directedby|}}} | <tr> <th>Directed by:</th> <td>{{{directedby}}}</td> </tr>}}
 
|-
 
|-
{{#if: {{{last|}}} | <tr> <th>Previous episode:</th> <td>''{{#if: {{#pos:{{{last}}}|pisode:}} |{{{last}}}|{{#ifexist: {{{last}}} | [[Episode:{{{last}}}|{{{last}}}]] | {{{last}}} }}}}''</td> </tr>}}<!--
+
{{#if: {{{last|}}} | <tr> <th>Previous episode:</th> <td>''{{#if: {{#pos:{{{last}}}|poiler:}} |{{{last}}}|{{#ifexist: {{{last}}} | [[Spoiler:{{{last}}}|{{{last}}}]] | {{{last}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{next|}}} | <tr> <th>Next episode:</th> <td>''{{#if: {{#pos:{{{next}}}|pisode:}} |{{{next}}}|{{#ifexist: {{{next}}} | [[Episode:{{{next}}}|{{{next}}}]] | {{{next}}} }}}}''</td> </tr>}}
+
-->{{#if: {{{next|}}} | <tr> <th>Next episode:</th> <td>''{{#if: {{#pos:{{{next}}}|poiler:}} |{{{next}}}|{{#ifexist: {{{next}}} | [[Spoiler:{{{next}}}|{{{next}}}]] | {{{next}}} }}}}''</td> </tr>}}
 
|}<noinclude>
 
|}<noinclude>
  

Revision as of 21:25, 16 February 2007

{{{title}}}
Unaired episode.jpg

Usage

Produces a formatted sidebar for use on the Spoiler version of episode pages, floated to the right.

For unaired episodes, the template will auto-add the default Heroes image if image= is left blank.

{{Episode sidebar/Spoiler
| title = <!-- Episode title -->
| image = <!-- Image from the episode -->
| caption = <!-- Caption for the image. -->
| season = <!-- Season number (One, Two Three, etc.) -->
| number = <!-- Episode number (101, 102, etc.) -->
| airdate = <!-- Date first aired (October 2, 2006, etc.) -->
| writtenby = <!-- Episode's writer(s) -->
| directedby = <!-- Episode's director --> 
| last = <!-- Link to previous episode -->
| next = <!-- Link to next episode -->
}}