Template:Character Data
More languages
More actions
Documentation
This template is used to place character info on a Battlestar Wiki article. It provides lower case parameters only.
Usage
{{Character Data
| title=
| photo=
| photo 2=
| caption=
| caption 2=
| age=
| colony=
| birthplace=
| birthname=
| birthdate=
| callsign=
| nickname=
| seen=
| pseen=
| seenref=
| lastseen=
| plastseen=
| lastseenref=
| death=
| parents=
| siblings=
| children=
| marital status=
| familytree=
| role=
| rank=
| serial=
| actor=
| cylon=
| 5cylon=
| hcylon=
| mcylon=
| archives=
| media=
| sepcon=
| primecon=
| sepcon title=
| primecon title=
| series=
| series 2=
| series 3=
| name=
| sortkey=
| spoilers=
}}
Required parameters
None. All parameters are optional.
Optional parameters
- title: If different from the article name.
- photo: The filename of the photo (without File: prefix).
- photo 2: The file name for a second photo, which goes on the bottom of the infobox.
- caption: The caption of the first photo.
- caption 2: The caption of the second photo.
- age: The approximate age of the character.
- colony: The character's home colony.
- birthplace: If the character was not born on one of The Twelve Colonies, then use this parameter instead of "colony".
- birthname: The full birthname of the character.
- birthdate: The date of birth. Approximate. Link to a Timeline page if needed.
- callsign: The character's "callsign" if he or she is a pilot.
- nickname: The character's "nickname" if applicable.
- seen: The episode in which the character first appears. Do not wikify.
- pseen: If the episode name is different than the article name, this is what will displayed. Do not wikify.
- seenref: Custom reference for first appearance (overrides seen/pseen).
- lastseen: The episode in which the character last appears. Do not wikify.
- plastseen: If the last seen episode name is different than the article name, this is what will displayed. Do not wikify.
- lastseenref: Custom reference for last appearance (overrides lastseen/plastseen).
- death: When, Where, and How they died. Please wikify the episode.
- parents: Who are their parents.
- siblings: Who is related to them.
- children: How many children does this character have.
- marital status: What's their current marital status.
- familytree: Set this to Y if they have a family tree. The section in the article should be
Family tree. - role: Current job or position.
- rank: Current rank if in the military.
- serial: Serial number, if in the military.
- actor: Actor/actress who plays this character. Please wikify.
- name: If the character is a Cylon, this is their human name. For example, "Sharon Valerii" for Number Eight.
- sortkey: This tells the category system where this entry should go. (For William Adama, the sortkey would be "Adama, William"—without quotes—thus telling the software to alphabetize by his last name.)
- spoilers: Set to Y to enable spoiler mode for sensitive information.
Series Icons
- series: Insert the series acronym for the primary series. Values are TOS, 1980, and RDM.
- series 2: Insert the series acronym for a secondary series icon.
- series 3: Insert the series acronym for a tertiary series icon.
RDM
- cylon: Insert Y to indicate that this character is a Cylon.
- 5cylon: Insert Y to indicate that this character is a member of the Final Five.
- hcylon: Insert Y to indicate that this character is a Cylon Hybrid.
TOS
- mcylon: Insert Y to indicate that this character is a Cylon.
Media Parameters
- archives: Insert Y to show link to photo gallery.
- media: Insert media identifier to show link to BW Media.
Separate Continuity
- sepcon: Insert Y to indicate that a separate continuity article is available on the subject.
- sepcon title: The name of the article on the subject in the separate continuity. Do not encase in any link syntax.
- Note: Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example:
Vella (TOS alternate reality)will only printVella. It will not affect the actual link itself, only the printed output in the template.
- Note: Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example:
Primary Continuity
- This is meant for articles on separate continuity characters, i.e. Daniel Novacek.
- primecon: Insert Y to indicate that a primary continuity article is available on the subject.
- primecon title: The name of the article on the subject in the primary continuity. Do not encase in any link syntax.
- Note: Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example:
Adama (TOS)will only printAdama. It will not affect the actual link itself, only the printed output in the template.
- Note: Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example:
Changes Made
This improved version includes:
- **Fixed table structure** - Proper opening and closing tags
- **Improved error handling** - Template existence checks with fallbacks
- **Better accessibility** - Added alt attributes for images
- **Cleaner conditional logic** - Simplified spoiler and collapsible handling
- **Standardized parameters** - Consistent use of parameter defaults
- **Enhanced documentation** - Clearer parameter descriptions and relationships
- **Added CSS classes** - For better styling control
- **Improved link generation** - Better handling of episode links with display names
Creates an infobox for Battlestar Galactica characters with improved error handling and accessibility.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | Character name if different from article name | Unknown | optional |
| photo | photo | Main character image filename | File | optional |
| caption | caption | Caption for main photo | Unknown | optional |
| photo 2 | photo 2 | Secondary character image filename | File | optional |
| caption 2 | caption 2 | Caption for secondary photo | Unknown | optional |
| name | name | Human name if character is a Cylon | Unknown | optional |
| cylon | cylon | Set to Y if character is a Cylon | Boolean | optional |
| 5cylon | 5cylon | Set to Y if character is a Final Five Cylon | Boolean | optional |
| hcylon | hcylon | Set to Y if character is a Human/Cylon Hybrid | Boolean | optional |
| mcylon | mcylon | Set to Y if character is an Original Series Cylon | Boolean | optional |
| age | age | Character's age | Unknown | optional |
| colony | colony | Home colony | Unknown | optional |
| birthplace | birthplace | Birth location if not from the Twelve Colonies | Unknown | optional |
| birthname | birthname | Full birth name | Unknown | optional |
| birthdate | birthdate | Date of birth | Unknown | optional |
| callsign | callsign | Pilot callsign | Unknown | optional |
| nickname | nickname | Character nickname | Unknown | optional |
| seen | seen | First appearance episode | Unknown | optional |
| pseen | pseen | Display name for first appearance if different from episode title | Unknown | optional |
| seenref | seenref | Custom reference for first appearance (overrides seen/pseen) | Unknown | optional |
| lastseen | lastseen | Last appearance episode | Unknown | optional |
| plastseen | plastseen | Display name for last appearance if different from episode title | Unknown | optional |
| lastseenref | lastseenref | Custom reference for last appearance (overrides lastseen/plastseen) | Unknown | optional |
| death | death | Information about character's death | Unknown | optional |
| parents | parents | Character's parents | Unknown | optional |
| siblings | siblings | Character's siblings | Unknown | optional |
| children | children | Character's children | Unknown | optional |
| marital status | marital status | Current marital status | Unknown | optional |
| familytree | familytree | Set to Y if article has a family tree section | Boolean | optional |
| role | role | Current job or position | Unknown | optional |
| rank | rank | Military rank | Unknown | optional |
| serial | serial | Military serial number | Unknown | optional |
| actor | actor | Actor who portrays the character | Unknown | optional |
| series | series | Primary series (TOS, 1980, RDM) | Unknown | optional |
| series 2 | series 2 | Secondary series icon | Unknown | optional |
| series 3 | series 3 | Tertiary series icon | Unknown | optional |
| archives | archives | Set to Y to show photo gallery link | Boolean | optional |
| media | media | Media identifier for BW Media link | Unknown | optional |
| sepcon | sepcon | Set to Y if separate continuity article exists | Boolean | optional |
| sepcon title | sepcon title | Title of separate continuity article | Unknown | optional |
| primecon | primecon | Set to Y if primary continuity article exists | Boolean | optional |
| primecon title | primecon title | Title of primary continuity article | Unknown | optional |
| sortkey | sortkey | Category sort key (Last, First format) | Unknown | optional |
| spoilers | spoilers | Set to Y to enable spoiler hiding functionality | Boolean | optional |