Template:Cast Data: Difference between revisions

Template page
No edit summary
(updated! read the new fields!)
Line 2: Line 2:
{| class="infobox" cellspacing="5"
{| class="infobox" cellspacing="5"
|-
|-
! class="infoboxheader" colspan="2" style="text-align: center; font-size: larger;" | '''{{PAGENAME}}'''
! class="infoboxheader" colspan="2" style="text-align: center; font-size: larger;" | '''{{{name|{{PAGENAME}}}}}'''
|-
|-
|- style="text-align: center;" class="hiddenStructure{{{image|}}}"
|- style="text-align: center;" class="hiddenStructure{{{image|}}}"
| colspan="3" | [[Image:{{{image}}}|200px]]
| colspan="3" | [[Image:{{{image}}}|200px|{{{name|{{PAGENAME}}}}}]]
|-
|-
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{character|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{character|}}}"
| '''Portrays:'''
| '''Portrays:'''
| {{{character}}}
| {{{character}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{dob|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{born_month|}}}{{{born_day|}}}{{{born_year|}}}"
| '''Date of Birth:'''
| '''Date of Birth:'''
| {{{dob}}}
| {{MONTHNAME|{{{born_month|}}}}} {{{born_day|}}}, {{{born_year|}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{death|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{death_month|}}}{{{death_day|}}}{{{death_year|}}}"
| '''Date of Death:'''
| '''Date of Death:'''
| {{{death}}}
| {{MONTHNAME|{{{death_month|}}}}} {{{death_day|}}}, {{{death_year|}}}
<!--- AGE --->
{{#ifeq:
  {{#expr:({{#if:{{{born_month|}}}|1|0}}+
            {{#if:{{{born_day|}}}|1|0}}+
            {{#if:{{{born_year|}}}|1|0}})=3}}
  | 1
  | <!-- THEN: -->
    {{#ifeq:
      {{#expr:({{#if:{{{death_month|}}}|1|0}}+
                {{#if:{{{death_day|}}}|1|0}}+
                {{#if:{{{death_year|}}}|1|0}})=3}}
      | 1
      | <!-- THEN: --> {{!}}-style="vertical-align: top; text-align: left;"
{{!}} '''Age at Death:'''
{{!}} {{age|{{{born_year|}}}|{{{born_month|}}}|{{{born_day|}}}|{{{death_year|}}}|{{{death_month|}}}|{{{death_day|}}}}}
      | <!-- ELSE: --> {{!}}-style="vertical-align: top; text-align: left;"
{{!}} '''Age:'''
{{!}} {{age|{{{born_year|}}}|{{{born_month|}}}|{{{born_day|}}}}}
}}
| <!-- ELSE: -->
}}
<!--- AGE --->
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{nationality|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{nationality|}}}"
| '''Nationality:'''
| '''Nationality:'''
Line 22: Line 44:
| style="text-align: center" colspan="2" | <div class="plainlinks">[{{{site}}} Official Site]</div>
| style="text-align: center" colspan="2" | <div class="plainlinks">[{{{site}}} Official Site]</div>
|- class="hiddenStructure{{{imdb|}}}"
|- class="hiddenStructure{{{imdb|}}}"
| style="text-align: center" colspan="2" | <div class="plainlinks">[http://www.imdb.com/name/nm{{{imdb}}} IMDb profile]</div>
| style="text-align: center" colspan="2" | <div class="plainlinks">[http://us.imdb.com/name/nm{{{imdb}}} IMDb profile]</div>
|}
|}
</includeonly>
</includeonly><noinclude>
<noinclude>
= Documentation =
= Documentation =
This template is used to place an Actor/Actress info on a ''Battlestar Wiki'' articles. It provides lower case parameters only.
This template is used to place an Actor/Actress info on a ''Battlestar Wiki'' articles. It provides lower case parameters only.
Line 47: Line 68:
=== Optional parameters ===
=== Optional parameters ===
* '''image''': The filename of the image. Do not include the '''Image:''' prefix.
* '''image''': The filename of the image. Do not include the '''Image:''' prefix.
* '''dob''': The date of birth of the actor
* '''born_month''': The month number that the actor was born.
* '''death''': The date the actor died
* '''born_day''': The day number that the actor was born.
* '''born_year''': The full year that the actor was born. (e.x. <code>1971</code>)
* '''death_month''': The month number that the actor died.
* '''death_day''': The day number that the actor died.
* '''death_year''': The full year that the actor died. (e.x. <code>1971</code>)
* '''nationality''': Uses the ''flag'' template.
* '''nationality''': Uses the ''flag'' template.
** <code>US</code>, <code>UK</code>, or others. For a full listing of possible country codes please visit [http://www.iana.org/cctld/cctld-whois.htm IANA's Root-Zone Index]
** <code>US</code>, <code>UK</code>, or others. For a full listing of possible country codes please visit [http://www.iana.org/cctld/cctld-whois.htm IANA's Root-Zone Index]

Revision as of 03:33, 19 April 2007

Documentation

This template is used to place an Actor/Actress info on a Battlestar Wiki articles. It provides lower case parameters only.

Usage

{{Star Data
| image= 
| character=
| dob=
| nationality= 
| death=
| site=
| imdb= 
}}

Required parameters

  • character: The character this person plays. Use <br /> to insert more than one. Please wikify the character.

Optional parameters

  • image: The filename of the image. Do not include the Image: prefix.
  • born_month: The month number that the actor was born.
  • born_day: The day number that the actor was born.
  • born_year: The full year that the actor was born. (e.x. 1971)
  • death_month: The month number that the actor died.
  • death_day: The day number that the actor died.
  • death_year: The full year that the actor died. (e.x. 1971)
  • nationality: Uses the flag template.
    • US, UK, or others. For a full listing of possible country codes please visit IANA's Root-Zone Index
    • Earth as to indicate from the planet Earth
  • site: The official website of the actor. This field is not for fan websites or other unofficial websites. Any unofficial websites using this parameter should be removed and placed in an External links section in the article itself.
  • imdb: The ID number on their IMDB page. Include only the numbers, not the two letter prefix. (i.e. 123456 instead of nm123456)