Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Data

Template page
Revision as of 03:51, 24 August 2025 by Joe Beaudoin Jr. (talk | contribs)


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 print Vella. It will not affect the actual link itself, only the printed output in the template.

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 print Adama. It will not affect the actual link itself, only the printed output in the template.

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

Character name if different from article name

Unknownoptional
photophoto

Main character image filename

Fileoptional
captioncaption

Caption for main photo

Unknownoptional
photo 2photo 2

Secondary character image filename

Fileoptional
caption 2caption 2

Caption for secondary photo

Unknownoptional
namename

Human name if character is a Cylon

Unknownoptional
cyloncylon

Set to Y if character is a Cylon

Booleanoptional
5cylon5cylon

Set to Y if character is a Final Five Cylon

Booleanoptional
hcylonhcylon

Set to Y if character is a Human/Cylon Hybrid

Booleanoptional
mcylonmcylon

Set to Y if character is an Original Series Cylon

Booleanoptional
ageage

Character's age

Unknownoptional
colonycolony

Home colony

Unknownoptional
birthplacebirthplace

Birth location if not from the Twelve Colonies

Unknownoptional
birthnamebirthname

Full birth name

Unknownoptional
birthdatebirthdate

Date of birth

Unknownoptional
callsigncallsign

Pilot callsign

Unknownoptional
nicknamenickname

Character nickname

Unknownoptional
seenseen

First appearance episode

Unknownoptional
pseenpseen

Display name for first appearance if different from episode title

Unknownoptional
seenrefseenref

Custom reference for first appearance (overrides seen/pseen)

Unknownoptional
lastseenlastseen

Last appearance episode

Unknownoptional
plastseenplastseen

Display name for last appearance if different from episode title

Unknownoptional
lastseenreflastseenref

Custom reference for last appearance (overrides lastseen/plastseen)

Unknownoptional
deathdeath

Information about character's death

Unknownoptional
parentsparents

Character's parents

Unknownoptional
siblingssiblings

Character's siblings

Unknownoptional
childrenchildren

Character's children

Unknownoptional
marital statusmarital status

Current marital status

Unknownoptional
familytreefamilytree

Set to Y if article has a family tree section

Booleanoptional
rolerole

Current job or position

Unknownoptional
rankrank

Military rank

Unknownoptional
serialserial

Military serial number

Unknownoptional
actoractor

Actor who portrays the character

Unknownoptional
seriesseries

Primary series (TOS, 1980, RDM)

Unknownoptional
series 2series 2

Secondary series icon

Unknownoptional
series 3series 3

Tertiary series icon

Unknownoptional
archivesarchives

Set to Y to show photo gallery link

Booleanoptional
mediamedia

Media identifier for BW Media link

Unknownoptional
sepconsepcon

Set to Y if separate continuity article exists

Booleanoptional
sepcon titlesepcon title

Title of separate continuity article

Unknownoptional
primeconprimecon

Set to Y if primary continuity article exists

Booleanoptional
primecon titleprimecon title

Title of primary continuity article

Unknownoptional
sortkeysortkey

Category sort key (Last, First format)

Unknownoptional
spoilersspoilers

Set to Y to enable spoiler hiding functionality

Booleanoptional