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

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Ohmyn0
No edit summary
imported>Ryangibsonstewart
trying out some new colors...feel free to discuss
 
(57 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{castandcrew|}}} | |{{#ifeq:{{NAMESPACE}}|User|| {{#if: {{{Image|}}}||{{nocastimage}}}} }}{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}}}</includeonly>{{#ifeq: {{{spoiler|}}} | true | {{unairedspoiler}} | }}
<div style="width:250px;float:right;clear:right;margin:1em 0 1em 1em;border:1px solid #B5B7CF;background:#EEE8AA;-moz-border-radius:10px;padding:10px 10px 10px 10px;">
{| class="infobox" style="{{#if: {{{castandcrew|}}} | display: none;}} width: 250px; text-align: left; font-size: 70%; background-color:#{{#ifeq: {{{spoiler|}}} | true | F4D5CC | F8E7FE}}; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq: {{{spoiler|}}} | true |E18F77|8F65A0}}; padding: 2px; -moz-border-radius:10px;" cellspacing="2"
<div style="text-align:center;font-size:16px;font-weight:900;line-height:1.5em;">{{{Name}}}
|-
<div class="hiddenStructure{{{Image|}}}">[[Image:{{{Image}}}|200px|center]]</div></div>
! style="background-color:#{{#ifeq: {{{spoiler|}}} | true |8B0000|E6BFFF}}; font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #{{#ifeq: {{{spoiler|}}} | true |E18F77|8F65A0}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | {{#ifeq: {{{spoiler|}}} | true |<FONT COLOR=white>{{{Name}}}</FONT>|{{{Name}}}}}
<div style="clear:left;font-size:10px;text-align:center">
{{#if: {{{Image|}}} | <tr> <td align="center" colspan="2">[[Image:{{{Image}}}]] | <tr> <td align="center" colspan="2">[[Image:blankperson.jpg]] }}<!--
<div style="width:80px;float:left;text-align:left;">Character</div>
-->{{#if: {{{ImageCaption|}}} | <br>{{{ImageCaption}}}</td> </tr>}}
<div style="width:170px;float:left;text-align:right;">[[{{{character}}}]]</div>
|-
</div>
! style="background: #{{#ifeq: {{{spoiler|}}} | true |f2dfce|E6BFFF}}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; border: 1px solid #{{#ifeq: {{{spoiler|}}} | true |E18F77|8F65A0}}; padding: 2px; -moz-border-radius:10px;" align="center" colspan="2" | About
<div style="clear:left;font-size:10px;text-align:center;border-top:2px solid #B5B7CF;">
|-
<div style="width:80px;float:left;text-align:left;">Date of Birth</div>
{{#if:{{{AKA|}}} | <tr> <th>Also known as</th> <td>{{{AKA}}}</td></tr>}}<!--
<div style="width:170px;float:left;text-align:right;">{{{DOB}}}</div>
-->{{#if: {{{character|}}} | <tr> <th>{{#if: {{#pos:{{{character}}}|,}} | Characters | Character}}</th> <td>{{#ifexist:{{{character|}}}|[[{{{character}}}]]|{{{character}}}}}</td> </tr>}}<!--
</div>
-->{{#if: {{{DOB|}}} | <tr> <th>Date of birth</th> <td>{{{DOB}}}</td> </tr>}}<!--
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
-->{{#if: {{{DOD|}}} | <tr> <th>Date of death</th> <td>{{{DOD}}}</td> </tr>}}<!--
<div style="width:80px;float:left;text-align:left;">Origin</div>
-->{{#if: {{{birthplace|}}} | <tr> <th>Origin</th> <td>{{{birthplace}}}</td> </tr>}}<!--
<div style="width:170px;float:left;text-align:right;">{{{birthplace}}}</div>
-->{{#if: {{{gender|}}} | <tr> <th style="vertical-align:middle">Gender</th> <td>{{#switch:{{lc:{{{gender|}}}}} | f | female=[[Image:Venus_symbol_red.png|Female]] | m | male=[[Image:Mars_symbol_blue.png|Male]] | {{{gender}}} }}</td> </tr>}}<!--
</div>
-->{{#if: {{{website|}}} | <tr> <td colspan=2 align=center> [{{{website}}} Website] </td> </tr>}}<!--
<div class="hiddenStructure{{{imdb_id|}}}" style="width:250px;clear:left;font-size:10px;text-align:center;border-top:2px solid #B5B7CF;">
[http://www.imdb.com/name/nm{{{imdb_id}}} IMDb profile]
-->{{#if: {{{imdb_id|}}} | <tr> <td colspan=2 align=center> [http://www.imdb.com/name/nm{{{imdb_id}}} IMDb profile] </td> </tr>}}<!--
-->{{#ifeq: {{{spoiler|}}} | true | <tr><td colspan="2"><center>''[[Heroes spoilers]]''</center></td></tr>}}
</div>
|}
<div class="hiddenStructure{{{website|}}}" style="width:250px;clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
[{{{website}}} Website]
</div>
</div>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Produces a formatted sidebar for cast members. Will automatically add <nowiki>{{nocastimage}}</nowiki> and default image if <tt>image=</tt> is left blank.


Blank Infobox for easy copying and pasting.
Blank Infobox for easy copying and pasting:


{| style="background: transparent;"
{| style="background: transparent;"
|<pre>{{Infobox cast|
|<pre>{{Infobox cast
| Name=
| Name=
| sort=
| AKA=
| Image=
| Image=
| ImageCaption=
| ImageCaption=
| DOB=
| DOB=
| DOD=
| birthplace=
| birthplace=
| gender=
| character=
| character=
| website=
| website=
| imdb_id=
| imdb_id=
| spoiler =
}}</pre>
}}</pre>
Line 44: Line 47:
|-
|-
| '''Name'''
| '''Name'''
| The actor or actress' full name.
| The actor or actress's full name
|-
| '''sort'''
| Last name, First name (for category sorting)
|-
| '''AKA'''
| Also known as; use for formal names or other stagenames/credited names
|-
|-
| '''Image'''
| '''Image'''
| An image relevant to the actor or actress. It will be automatically resized.
| An image relevant to the actor or actress; will be automatically resized
|-
|-
| '''ImageCaption'''
| '''ImageCaption'''
| A caption explaining the image.
| A caption explaining the image
|-
|-
| '''DOB'''
| '''DOB'''
| Date of birth.
| Date of birth
|-
| '''DOD'''
| Date of death
|-
|-
| '''birthplace'''
| '''birthplace'''
| Place of birth; for US cities, should be in City, State Abbreviation, USA format. ([http://www.usps.com/ncsc/lookups/usps_abbreviations.html See here for list of US state abbreviations.]) For international cities, the format should be City, Country.
| Place of birth.
|-
| '''gender'''
| Actor's gender; "Male" or "Female" will produce a symbol
|-
|-
| '''character'''
| '''character'''
| The ''Heroes'' character portrayed by the actor or actress.
| The ''Heroes'' character portrayed by the actor or actress
|-
|-
| '''website'''
| '''website'''
| Official website. Use http://
| Official website; use http://
|-
|-
| '''imdb_id'''
| '''imdb_id'''
| The actor or actresses ID on IMDb. The seven digit number that appears after "name/nm" in the URL. For example, 0015382.
| The actor or actresses ID on IMDb--the seven digit number that appears after "name/nm" in the URL; for example, 0015382
|-
| '''spoiler'''
| <tt>true</tt> adds the <tt><nowiki>{{unairedspoiler}}</nowiki></tt> template and changes the colors to spoiler colors
|}
|}

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

Latest revision as of 01:53, 24 September 2009

{{{Name}}}
About

Usage

Produces a formatted sidebar for cast members. Will automatically add {{nocastimage}} and default image if image= is left blank.

Blank Infobox for easy copying and pasting:

{{Infobox cast
| Name=
| sort=
| AKA=
| Image=
| ImageCaption=
| DOB=
| DOD=
| birthplace=
| gender=
| character=
| website=
| imdb_id=
| spoiler = 
}}


Parameter Explanation
Name The actor or actress's full name
sort Last name, First name (for category sorting)
AKA Also known as; use for formal names or other stagenames/credited names
Image An image relevant to the actor or actress; will be automatically resized
ImageCaption A caption explaining the image
DOB Date of birth
DOD Date of death
birthplace Place of birth; for US cities, should be in City, State Abbreviation, USA format. (See here for list of US state abbreviations.) For international cities, the format should be City, Country.
gender Actor's gender; "Male" or "Female" will produce a symbol
character The Heroes character portrayed by the actor or actress
website Official website; use http://
imdb_id The actor or actresses ID on IMDb--the seven digit number that appears after "name/nm" in the URL; for example, 0015382
spoiler true adds the {{unairedspoiler}} template and changes the colors to spoiler colors