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>Orne
(create navigation pane for Spoiler pages)
 
imported>Ryangibsonstewart
(standard image format)
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{#ifeq: {{{aired|}}} | no | {{unairedspoiler}} | }}
 
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; background-color: #F4D5CC; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #E18F77; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
 
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; background-color: #F4D5CC; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #E18F77; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
 
|-
 
|-
! style="background: {{{color|#f2dfce}}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #E18F77; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{{title}}}
+
! style="background: {{{color|#8B0000}}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #E18F77; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | <font color="white">{{{title}}}</font>
{{#if: {{{season|}}} | <tr> <th>Season</th> <td>[[Season {{{season}}}|{{{season}}}]]</td> </tr>}}<!--
+
{{#if: {{{season|}}} | <tr> <th>Season:</th> <td>[[Season {{{season}}}|{{{season}}}]]</td> </tr>}}<!--
-->{{#if: {{{number|}}} | <tr> <th>Episode number </th> <td>{{{number}}}</td> </tr>}}<!--
+
-->{{#if: {{{number|}}} | <tr> <th>Episode number: </th> <td>{{{number}}}</td> </tr>}}<!--
-->{{#if: {{{airdate|}}} | <tr> <th>First aired:</th> <td>{{{airdate}}}</td> </tr>}}<!--
+
-->{{#if: {{{airdate|}}} | <tr> <th>{{#ifeq: {{{aired|}}} | no | Planned airdate: | First aired: }}</th> <td>{{{airdate}}}</td> </tr>}}<!--
-->{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">{{{image}}} | <tr> <td align="center" colspan="2">[[Image:unaired_episode.jpg]] }}<!--
+
-->{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}]] | <tr> <td align="center" colspan="2">[[Image:unaired_episode.jpg]] }}<!--
 
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
 
-->{{#if: {{{caption|}}} | <br>{{{caption}}}</td> </tr>}}
 
|-
 
|-
Line 11: Line 12:
 
-->{{#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>{{{last}}}</td> </tr>}}<!--
+
{{#if: {{{last|}}} | <tr> <th>Previous spoiler:</th> <td>''{{#if: {{#pos:{{{last}}}|poiler:}} |{{{last}}}|{{#ifexist: {{{last}}} | [[Spoiler:{{{last}}}|{{{last}}}]] | {{{last}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{next|}}} | <tr> <th>Next episode:</th> <td>{{{next}}}</td> </tr>}}
+
-->{{#if: {{{next|}}} | <tr> <th>Next spoiler:</th> <td>''{{#if: {{#pos:{{{next}}}|poiler:}} |{{{next}}}|{{#ifexist: {{{next}}} | [[Spoiler:{{{next}}}|{{{next}}}]] | {{{next}}} }}}}''</td> </tr>}}
|}<noinclude>
+
|}
 +
<includeonly>{{#ifeq: {{{aired|}}} | no | {{spoilermain}} | {{archivedspoiler}} }} For general spoilers about upcoming episodes, see [[Spoiler:Heroes]].</includeonly><noinclude>
  
 
== Usage ==
 
== Usage ==
Line 32: Line 34:
 
| last = <!-- Link to previous episode -->
 
| last = <!-- Link to previous episode -->
 
| next = <!-- Link to next episode -->
 
| next = <!-- Link to next episode -->
 +
| aired = <!-- "no" if the episode has not yet aired -->
 
}}</pre>
 
}}</pre>
 
|}
 
|}
[[Category: Sidebars]]
+
{{Nousercat|Sidebars}}
[[Category:Templates]]
+
{{Nousercat|Subtemplates}}
 
</noinclude>
 
</noinclude>

Latest revision as of 22:47, 15 April 2009

{{{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 -->
| aired = <!-- "no" if the episode has not yet aired -->
}}