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:Infobox things"

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
(add first mention)
imported>Ryangibsonstewart
(update "first" code)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{image|}}}| |{{noimage}}}}</includeonly>
<includeonly>{{#if: {{{image|}}}| |{{noimage}}}}</includeonly>
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; background-color: #CCCCFF; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #0000FF; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
{| class="infobox" style="width: 270px; text-align: left; font-size: 90%; background-color: #CCCCFF; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #0000FF; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
|-
|-
! style="background: #9999CC; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #0000FF; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{PAGENAME}}
! style="background: #9999CC; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #0000FF; padding: 2px; -moz-border-radius:10px; text-align: center; font-size: 120%;" align="center" colspan="2" | {{SUBPAGENAME}}
|-
|-
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}|250px]] {{#if: {{{caption|}}} | <br>{{{caption}}}}}</td> </tr>}}
{{#if: {{{image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{image}}}|250px]] {{#if: {{{caption|}}} | <br>{{{caption}}}}}</td> </tr>}}
| colspan="2" | <hr style="background-color:#0000FF;">
| colspan="2" | <hr style="background-color:#0000FF;">
|-
|-
{{#if: {{{first|}}} | <tr> <th>First appearance:</th> <td>''[[Episode:{{{first}}}|{{{first}}}]]''</td> </tr>}}<!--
{{#if: {{{first|}}} | <tr> <th>First appearance:</th> <td>''{{#if: {{#pos:{{{first}}}|pisode:}} |{{{first}}}|{{#ifexist: {{{first}}} | [[{{{first}}}]] | {{{first}}} }}}}''</td> </tr>}}<!--
-->{{#if: {{{first|}}} | <tr> <th>First appearance:</th> <td>''[[Episode:{{{first}}}|{{{first}}}]]''</td> </tr>}}
-->{{#if: {{{mention|}}} | <tr> <th>First mentioned:</th> <td>''[[Episode:{{{mention}}}|{{{mention}}}]]''</td> </tr>}}
|}
|}
<noinclude>
<noinclude>


==Usage==
==Usage==
Produces a right-floated infobox for [[:Category:Symbols|Symbols]].  Will auto-add <nowiki>{{noimage}}</nowiki> if <tt>image=</tt> is left blank.
Produces a right-floated infobox for [[:Category:Things|Things]].  Will auto-add <nowiki>{{noimage}}</nowiki> if <tt>image=</tt> is left blank.


<pre>{{Infobox symbol
<pre>{{Infobox things
| image = <!--Image link-->
| image = <!--Image link-->
| caption = <!-- OPTIONAL Caption for image -->
| caption = <!-- OPTIONAL Caption for image -->
Line 23: Line 23:
</pre>
</pre>


[[Category: Templates]]
 
[[Category: Sidebars]]
[[Category: Sidebars]]
</noinclude>
</noinclude>

Latest revision as of 21:53, 28 April 2010

Infobox things


Usage

Produces a right-floated infobox for Things. Will auto-add {{noimage}} if image= is left blank.

{{Infobox things
| image = <!--Image link-->
| caption = <!-- OPTIONAL Caption for image -->
| first = <!-- OPTIONAL Episode in which subject first appeared; title only, e.g. Genesis-->
| mention = <!-- OPTIONAL Episode in which subject was first mentioned (if unseen); title only, e.g. Genesis-->
}}