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.

Template:Episode sidebar: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
(test as switch)
imported>Ryangibsonstewart
(adding heroes interactive link (no need to document in the usage area since this is basically a workaround that will be used once and that's it))
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#if: {{#pos: {{PAGENAME}}|pisode:}} | {{Episode sidebar/full}} | {{Episode sidebar/aotw}}}}
{{#if: {{#pos: {{FULLPAGENAME}}|pisode:}}{{#pos: {{FULLPAGENAME}}|poiler:}} |
{{Episode sidebar/full
|title={{#if:{{{title|}}}|{{{title|}}}}}
|image={{#if:{{{image}}}|{{{image|}}}}}
|season={{#if:{{{season}}}|{{{season|}}}}}
|number={{#if:{{{number}}}|{{{number|}}}}}
|airdate={{#if:{{{airdate}}}|{{{airdate|}}}}}
|writtenby={{#if:{{{writtenby}}}|{{{writtenby|}}}}}
|directedby={{#if:{{{directedby}}}|{{{directedby|}}}}}
|last={{#if:{{{last}}}|{{{last|}}}}}
|lastpart={{#if:{{{lastpart}}}|{{{lastpart|}}}}}
|nextpart={{#if:{{{nextpart}}}|{{{nextpart|}}}}}
|next={{#if:{{{next}}}|{{{next|}}}}}
|spoiler={{#if:{{{spoiler}}}|{{{spoiler|}}}}}
|HI={{#if:{{{HI}}}|{{{HI|}}}}}
}}
| {{Episode sidebar/aotw
|title={{#if:{{{title|}}}|{{{title|}}}}}
|image={{#if:{{{image}}}|{{{image|}}}}}
|season={{#if:{{{season}}}|{{{season|}}}}}
|number={{#if:{{{number}}}|{{{number|}}}}}
|airdate={{#if:{{{airdate}}}|{{{airdate|}}}}}
|writtenby={{#if:{{{writtenby}}}|{{{writtenby|}}}}}
|directedby={{#if:{{{directedby}}}|{{{directedby|}}}}}
|last={{#if:{{{last}}}|{{{last|}}}}}
|next={{#if:{{{next}}}|{{{next|}}}}}
|spoiler={{#if:{{{spoiler}}}|{{{spoiler|}}}}}
}}
}}
<noinclude>
<noinclude>


== Usage ==
== Usage ==
Produces a formatted sidebar for use on episode pages, floated to the right.
Produces a formatted sidebar for use on episode pages, floated to the right.
On the main episode page, the full-sized, fully labeled sidebar will appear.  When the episode page is transcluded (for example, in [[Template:aotw]]), a smaller-sized, less detailed sidebar will appear instead.


For unaired episodes, the template will auto-add the default ''Heroes'' image if <tt>image=</tt> is left blank.
For unaired episodes, the template will auto-add the default ''Heroes'' image if <tt>image=</tt> is left blank.
Line 11: Line 41:
| title = <!-- Episode title -->
| title = <!-- Episode title -->
| image = <!-- Image from the episode -->
| image = <!-- Image from the episode -->
| caption = <!-- Caption for the image. -->
| season = <!-- Season number (One, Two Three, etc.) -->
| season = <!-- Season number (One, Two Three, etc.) -->
| number = <!-- Episode number (101, 102, etc.) -->
| number = <!-- Episode number (101, 102, etc.) -->
Line 23: Line 52:
|}
|}
[[Category: Sidebars]]
[[Category: Sidebars]]
[[Category:Templates]]
 
</noinclude>
</noinclude>

Latest revision as of 07:18, 25 September 2015

[[Episode:|]]
[[|     ]]
[[Image:|150px|]]
[[Episode talk:|checklist]]


Usage

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

On the main episode page, the full-sized, fully labeled sidebar will appear. When the episode page is transcluded (for example, in Template:aotw), a smaller-sized, less detailed sidebar will appear instead.

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

{{Episode sidebar
| title = <!-- Episode title -->
| image = <!-- Image from the episode -->
| 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 -->
| spoiler = <!-- "true" for spoiler warning and colors -->
}}