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:Infobox event: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Hardvice
m color
imported>Catalyst
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{image|}}}| |{{noimage}}}}</includeonly>
<includeonly>{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}{{#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;">
{{#if: {{{date|}}} | <tr> <th>Date of event:</th> <td>[[Timeline|{{{date}}}]]</td> </tr>}}
|-
{{#if: {{{location|}}}| <tr> <th>Location:</th> <td>[[{{{location}}}]]</td> </tr>}}
{{#if: {{{first|}}} | <tr> <th>First mentioned:</th> <td>''{{#ifexist: {{{first}}} | [[{{{first}}}]] | {{{first}}} }}''</td> </tr>}}<!--
-->{{#if: {{{date|}}} | <tr> <th>Date of event:</th> <td> <!-- [[Timeline#{{{date}}}|{{{date}}}]] -->{{{date}}}</td> </tr>}}
{{#if: {{{location|}}}| <tr> <th>Location:</th> <td>{{#ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }}</td> </tr>}}
|}<noinclude>
|}<noinclude>


Line 14: Line 17:
<pre>{{Infobox event
<pre>{{Infobox event
| image = <!--Image link-->
| image = <!--Image link-->
| sort= <!-- OPTIONAL default cat sort -->
| caption = <!-- OPTIONAL Caption for image -->
| caption = <!-- OPTIONAL Caption for image -->
| first = <!-- OPTIONAL Episode in which item first appeared; title only, e.g. Genesis-->
| date = <!-- OPTIONAL Date of the event -->
| date = <!-- OPTIONAL Date of the event -->
| location = <!-- OPTIONAL Location or Place where event takes place -->
| location = <!-- OPTIONAL Location or Place where event takes place -->
Line 20: Line 25:
</pre>
</pre>



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

Latest revision as of 22:37, 3 October 2009

Infobox event

Usage

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

{{Infobox event
| image = <!--Image link-->
| sort= <!-- OPTIONAL default cat sort -->
| caption = <!-- OPTIONAL Caption for image -->
| first = <!-- OPTIONAL Episode in which item first appeared; title only, e.g. Genesis-->
| date = <!-- OPTIONAL Date of the event -->
| location = <!-- OPTIONAL Location or Place where event takes place -->
}}