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

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox character-infobox" cellspacing="5"
<includeonly>{| class="infobox" cellspacing="5"
|-class="infoboxheader"
|-
| colspan="2" style="display:none;" |
{{#if:{{{gender|}}}|{{#genealogy:person|gender={{{gender}}}}}}}{{#if:{{{gen_birthdate|{{{birthdate|}}}}}}|{{#genealogy:description|{{{gen_birthdate|{{{birthdate}}}}}}}}}}{{#if:{{{spouse|}}}|{{#genealogy:partner|{{{spouse}}}}}}}{{#if:{{{parent 1|}}}|{{#genealogy:parent|{{{parent 1}}}}}}}{{#if:{{{parent 2|}}}|{{#genealogy:parent|{{{parent 2}}}}}}}
|- class="infoboxheader"
| colspan="2"|
| colspan="2"|
{|  
{|  
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
| width="27" | {{#ifexist:Template:Series Icon|{{Series Icon|series={{{series|}}}}}|<span class="series-icon-placeholder">{{#if:{{{series|}}}|{{{series}}}|}}</span>}}
| width="27" | {{Series Icon|series={{{series|}}}}}
| width="{{#if:{{{series 2|}}}|27|0}}" | {{#if:{{{series 2|}}}|{{#ifexist:Template:Series Icon|{{Series Icon|series={{{series 2|}}}}}|<span class="series-icon-placeholder">{{{series 2}}}</span>}}|}}
| width="{{#if:{{{series 2|}}}|27|0}}" | {{#if:{{{series 2|}}}|{{Series Icon|series={{{series 2|}}}}}|}}
| width="{{#if:{{{series 3|}}}|27|0}}" | {{#if:{{{series 3|}}}|{{#ifexist:Template:Series Icon|{{Series Icon|series={{{series 3|}}}}}|<span class="series-icon-placeholder">{{{series 3}}}</span>}}|}}
| width="{{#if:{{{series 3|}}}|27|0}}" | {{#if:{{{series 3|}}}|{{Series Icon|series={{{series 3|}}}}}|}}
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
|}
|}
|-
|-
{{#if:{{{photo|}}}|
|- class="hiddenStructure{{#if:{{{photo|}}}|Y|}}"
|- class="character-photo"
| colspan="2" style="text-align: center;" | [[File:{{{photo|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption|}}}|<br/> {{{caption|}}}|}}
| colspan="2" style="text-align: center;" | [[File:{{{photo}}}|300px|alt={{{title|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]{{#if:{{{caption|}}}|<br/><small>{{{caption}}}</small>|}}
|- {{#if:{{{spoilers|}}}|class="hiddenStructure{{void}}"}}
|}}
| colspan="2" style="text-align:center;" | <span class="mw-customtoggle-infobox" style="color: var(--color-link);">[show/hide spoilers]</span><br/><small>Spoilers hidden in infobox by default only.</small>
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{name|}}}|Y|}}"
|-
| colspan="2" style="text-align:center;" | <div class="spoiler-toggle-container"><span class="mw-customtoggle-infobox spoiler-toggle" style="color: var(--color-link);">[show/hide spoilers]</span><br/><small>Spoilers hidden in infobox by default only.</small></div>
|}}
{{#if:{{{name|}}}|
|- style="vertical-align: top; text-align: left;"
| style="white-space: nowrap;" |  
| style="white-space: nowrap;" |  
{{#switch:{{{cylon|}}}
{{#switch:{{{cylon}}}
  | Y | y | Yes | yes = '''Human Name'''
| Y | y | Yes | yes = '''Human Name'''
  | #default = '''Name'''
| #default='''Name'''
}}
}}
| {{{name}}}
| {{{name}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{age|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{age|}}}|Y|}}"
{{#if:{{{age|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Age'''
| '''Age'''
| {{{age}}}
| {{{age}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{colony|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{colony|}}}|Y|}}"
{{#if:{{{colony|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Colony'''
| '''Colony'''
| {{{colony}}}
| {{{colony}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{birthplace|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{birthplace|}}}|Y|}}"
{{#if:{{{birthplace|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Birth place'''
| '''Birth place'''
| {{{birthplace}}}
| {{{birthplace}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthname|}}}|Y|}}"
{{#if:{{{birthname|}}}|
|- style="vertical-align: top; text-align: left;"
| style="white-space: nowrap;" | '''Birth Name'''  
| style="white-space: nowrap;" | '''Birth Name'''  
| {{{birthname}}}
| {{{birthname}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthdate|}}}|Y|}}"
{{#if:{{{birthdate|}}}|
|- style="vertical-align: top; text-align: left;"
| style="white-space: nowrap;" | '''Birth Date'''  
| style="white-space: nowrap;" | '''Birth Date'''  
| {{{birthdate}}}
| {{{birthdate}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{callsign|}}}|Y|}}"
{{#if:{{{callsign|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Callsign'''
| '''Callsign'''
| {{{callsign}}}
| {{{callsign}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{nickname|}}}|Y|}}"
{{#if:{{{nickname|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Nickname'''
| '''Nickname'''
| {{{nickname}}}
| {{{nickname}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{seen|}}}{{{seenref|}}}|Y|}}"
{{#if:{{{seen|}}}{{{seenref|}}}|
| style="white-space: nowrap;" | '''Introduced'''
|- style="vertical-align: top; text-align: left;"
| {{#if:{{{seenref|}}}|{{{seenref|}}}|{{#if:{{{pseen|}}}|[[{{{seen}}}|{{{pseen}}}]]|[[{{{seen}}}]]}}}}
| style="white-space: nowrap;" |'''Introduced'''
|- style="vertical-align: top; text-align: left;" {{#if:{{{lastseen|}}}{{{lastseenref|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{lastseen|}}}{{{lastseenref|}}}|Y|}}"
| {{#if:{{{seenref|}}}|{{{seenref}}}|{{#if:{{{seen|}}}|[[{{{seen}}}{{#if:{{{pseen|}}}|{{!}}{{{pseen}}}|}}]]|}}}}
|}}
{{#if:{{{lastseen|}}}{{{lastseenref|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Last Known Appearance'''
| '''Last Known Appearance'''
| {{#if:{{{lastseenref|}}}|{{{lastseenref}}}|{{#if:{{{lastseen|}}}|[[{{{lastseen}}}{{#if:{{{plastseen|}}}|{{!}}{{{plastseen}}}|}}]]|}}}}
| {{#if:{{{lastseenref|}}}|{{{lastseenref|}}}|{{#if:{{{plastseen|}}}|[[{{{lastseen}}}|{{{plastseen}}}]]|[[{{{lastseen}}}]]}}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{death|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{death|}}}|Y|}}"
{{#if:{{{death|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Death'''
| '''Death'''
| {{{death}}}
| {{{death}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{parents|}}}|Y|}}"
{{#if:{{{parents|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Parents'''
| '''Parents'''
| {{{parents}}}
| {{{parents}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{siblings|}}}|Y|}}"
{{#if:{{{siblings|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Siblings'''
| '''Siblings'''
| {{{siblings}}}
| {{{siblings}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{children|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{children|}}}|Y|}}"
{{#if:{{{children|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Children'''
| '''Children'''
| {{{children}}}
| {{{children}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{marital status|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{marital status|}}}|Y|}}"
{{#if:{{{marital status|}}}|
| style="white-space: nowrap;" | '''Marital Status'''
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| style="white-space: nowrap;"|'''Marital Status'''
| {{{marital status}}}
| {{{marital status}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{familytree|}}}|Y|}}"
{{#if:{{{familytree|}}}|
| style="white-space: nowrap;" | '''Family Tree'''
|- style="vertical-align: top; text-align: left;"
| style="white-space: nowrap;"|'''Family Tree'''
| [[#Family tree|View]]
| [[#Family tree|View]]
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{role|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{role|}}}|Y|}}"
{{#if:{{{role|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Role'''
| '''Role'''
| {{{role}}}
| {{{role}}}
|}}
|- style="vertical-align: top; text-align: left;" {{#if:{{{rank|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{rank|}}}|Y|}}"
{{#if:{{{rank|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: left;" class="spoiler-content"
|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed"
}}
| '''Rank'''
| '''Rank'''
| {{{rank}}}
| {{{rank}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{serial|}}}|Y|}}"
{{#if:{{{serial|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Serial Number'''
| '''Serial Number'''
| {{{serial}}}
| {{{serial}}}
|}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{actor|}}}|Y|}}"
{{#if:{{{actor|}}}|
| style="white-space: nowrap;" | '''Portrayed by'''
|- style="vertical-align: top; text-align: left;"
| style="white-space: nowrap;" |'''Portrayed by'''
| style="white-space: nowrap;" | {{{actor}}}
| style="white-space: nowrap;" | {{{actor}}}
|}}
|- style="vertical-align: top; text-align: center;" {{#if:{{{cylon|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{cylon|}}}|Y|}}"
{{#if:{{{cylon|}}}|
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Humanoid Cylon|Cylon]]
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: center;" {{#if:{{{5cylon|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{5cylon|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;" class="spoiler-content cylon-indicator"
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Final Five]] [[Humanoid Cylon|Cylon]]
|
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{hcylon|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed cylon-indicator"
}}
| colspan="2"| {{{title|{{PAGENAME}}}}} is a [[Humanoid Cylon|Cylon]]
|}}
{{#if:{{{5cylon|}}}|
{{#if:{{{spoilers|}}}|
|- style="vertical-align: top; text-align: center;" class="spoiler-content cylon-indicator"
|
|- style="vertical-align: top; text-align: center;" id="mw-customcollapsible-infobox" class="mw-collapsible mw-collapsed cylon-indicator"
}}
| colspan="2"| {{{title|{{PAGENAME}}}}} is a [[Final Five]] [[Humanoid Cylon|Cylon]]
|}}
{{#if:{{{hcylon|}}}|
|- style="vertical-align: top; text-align: center;" class="cylon-indicator"
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Humanoid_Cylon#Human.2FCylon_Hybrids|Human/Cylon Hybrid]]
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Humanoid_Cylon#Human.2FCylon_Hybrids|Human/Cylon Hybrid]]
|}}
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{mcylon|}}}|Y|}}"
{{#if:{{{mcylon|}}}|
| colspan="2" | {{{title|{{PAGENAME}}}}} is an Original Series Cylon
|- style="vertical-align: top; text-align: center;" class="cylon-indicator"
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{archives|}}}{{{media|}}}|Y|}}"
| colspan="2"| {{{title|{{PAGENAME}}}}} is an Original Series Cylon
|}}
{{#if:{{{archives|}}}{{{media|}}}|
|-
! class="infoboxheader" colspan="2" | Related Media
! class="infoboxheader" colspan="2" | Related Media
{{#if:{{{archives|}}}|
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{archives|}}}{{{media|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;"
| {{#if:{{{media|}}}||colspan="2"}} style="white-space: nowrap;" class="hiddenStructure{{#if:{{{archives|}}}|Y|}}" | {{#if:{{{archives|}}}|[[Gallery:{{PAGENAME}}|Photo Gallery]]}}
| {{#if:{{{media|}}}||colspan="2"}} style="white-space: nowrap;" | [[Gallery:{{PAGENAME}}|Photo Gallery]]
| {{#if:{{{archives|}}}||colspan="2"}} style="white-space: nowrap;" class="hiddenStructure{{#if:{{{media|}}}|Y|}}" | {{#if:{{{media|}}}|[[md:{{{media|}}}|@ BW Media]]}}
|}}
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{sepcon|}}}{{{primecon|}}}|Y|}}"
{{#if:{{{media|}}}|
|- style="vertical-align: top; text-align: center;"
| {{#if:{{{archives|}}}||colspan="2"}} style="white-space: nowrap;" | [[md:{{{media}}}|@ BW Media]]
|}}
|}}
{{#if:{{{sepcon|}}}{{{primecon|}}}|
|-
! class="infoboxheader" colspan="2" | Additional Information
! class="infoboxheader" colspan="2" | Additional Information
{{#if:{{{sepcon|}}}|
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{sepcon|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;"
| colspan="2" | {{#if:{{{sepcon|}}}|[[{{{sepcon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}} alternate)|(alternate)}}}}}|{{#if:{{{sepcon title|}}}|{{#explode:{{{sepcon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the separate continuity]]}}
| colspan="2"| [[{{{sepcon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series}}} alternate)|(alternate)}}}}}|{{#if:{{{sepcon title|}}}|{{#explode:{{{sepcon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the separate continuity]]
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{primecon|}}}|Y|}}"
|}}
| colspan="2" | {{#if:{{{primecon|}}}|[[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]]}}
{{#if:{{{primecon|}}}|
|- class="hiddenStructure{{#if:{{{photo 2|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;"
| colspan="2" style="text-align: center;" | [[File:{{{photo 2|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/> {{{caption 2|}}}|}}
| colspan="2"| [[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]]
|- class="hiddenStructure{{#if:{{{debug|}}}|Y|}}"
|}}
| colspan="2" style="font-size: 0.8em; background: #fee; border: 1px solid #faa; padding: 5px;" | '''Genealogy Debug:'''<br/>Partners: {{#genealogy:partners}}<br/>Children: {{#genealogy:children}}
|}}
|}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly><noinclude>
{{#if:{{{photo 2|}}}|
|- class="character-photo-secondary"
| colspan="2" style="text-align: center;" | [[File:{{{photo 2}}}|300px|alt={{{title|{{PAGENAME}}}}} - Additional Image|{{{title|{{PAGENAME}}}}}]]{{#if:{{{caption 2|}}}|<br/><small>{{{caption 2}}}</small>|}}
|}}
|}
{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}|}}</includeonly>
 
<noinclude>
= Documentation =
= Documentation =
This template is used to place character info on a Battlestar Wiki article. It provides lower case parameters only.
This template is the primary infobox for character articles. It provides a standard layout for character stats, media links, and continuity data, with integrated support for automated genealogy trees.


== Usage ==
== Parameter Descriptions ==
<pre>
{{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=
}}
</pre>


=== Required parameters ===
=== Header & Display ===
None. All parameters are optional.
* '''title''': The name displayed at the top. Defaults to the page name.
* '''series / series 2 / series 3''': Determines which series icons (e.g., RDM, TOS, CAP) appear in the header.
* '''photo / photo 2''': The filename of the character image(s).
* '''caption / caption 2''': The text displayed directly beneath the photo(s).
* '''sortkey''': Used for category alphabetization (e.g., <code>Adama, William</code>).


=== Optional parameters ===
=== Biography ===
* '''title''': If different from the article name.
* '''name''': For Cylons, this is their human alias (e.g., <code>Sharon Valerii</code>).
* '''photo''': The filename of the photo (without File: prefix).
* '''age''': Approximate age of the character.
* '''photo 2''': The file name for a second photo, which goes on the bottom of the infobox.
* '''colony''': The character's home colony (e.g., <code>Caprica</code>).
* '''caption''': The caption of the first photo.
* '''birthplace''': Used if the character was born outside of the Twelve Colonies.
* '''caption 2''': The caption of the second photo.
* '''birthname''': The full name given at birth.
* '''age''': The approximate age of the character.
* '''birthdate''': The visual display of their birth date.
* '''[[Colonies|colony]]''': The character's home colony.
* '''death''': Circumstances of death. Wikify the episode title if applicable.
* '''birthplace''': If the character was not born on one of [[The Twelve Colonies]], then use this parameter instead of "colony".
* '''callsign''': The pilot's tactical name (e.g., <code>Starbuck</code>).
* '''birthname''': The full birthname of the character.
* '''nickname''': Other casual names.
* '''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 <code>Family tree</code>.
* '''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 ====
=== Relationships ===
* '''series''': Insert the series acronym for the primary series. Values are '''TOS''', '''1980''', and '''RDM'''.
* '''parents / siblings / children''': General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g., <code>†</code>).
* '''series 2''': Insert the series acronym for a secondary series icon.
* '''marital status''': Marital condition (Single, Married, Widowed).
* '''series 3''': Insert the series acronym for a tertiary series icon.
* '''familytree''': Set to '''Y''' to add a "View" link that jumps to the article's <code>#Family tree</code> section.


==== RDM ====
=== Military & Professional ===
* '''cylon''': Insert '''Y''' to indicate that this character is a Cylon.
* '''role''': The character's primary job or function in the story.
* '''5cylon''': Insert '''Y''' to indicate that this character is a member of the [[Final Five]].
* '''rank''': Military rank (e.g., <code>Commander</code>).
* '''hcylon''': Insert '''Y''' to indicate that this character is a Cylon Hybrid.
* '''serial''': Colonial military serial number.
* '''actor''': The actor or actress who portrayed the character.


==== TOS ====
=== Cylon Toggles (Set to Y) ===
* '''mcylon''': Insert '''Y''' to indicate that this character is a Cylon.
* '''cylon''': Character is a Re-imagined Series Cylon.
* '''5cylon''': Character is a member of the Final Five.
* '''hcylon''': Character is a Human/Cylon Hybrid (e.g., Hera Agathon).
* '''mcylon''': Character is an Original Series Cylon.


==== Media Parameters ====
=== Related Media ===
* '''archives''': Insert '''Y''' to show link to photo gallery.
* '''archives''': Set to '''Y''' to link to a <code>Gallery:{{PAGENAME}}</code> photo gallery.
* '''media''': Insert media identifier to show link to BW Media.
* '''media''': The key for linking to external media collections (e.g., <code>willie-adama</code>).


==== Separate Continuity ====
=== Continuity Support ===
* '''sepcon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Separate continuity|separate continuity]] article is available on the subject.
* '''sepcon / primecon''': Set to '''Y''' to enable cross-continuity links.
* '''sepcon title''': The name of the article on the subject in the separate continuity. Do not encase in any link syntax.
* '''sepcon title / primecon title''': The exact page title for the character in the other continuity.
** ''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: <code>Vella (TOS alternate reality)</code> will only print <code>Vella</code>. It will '''not affect''' the actual link itself, only the '''printed output''' in the template.


==== Primary Continuity ====
=== Genealogy Extension (Automated Trees) ===
: ''This is meant for articles on ''separate continuity'' characters, i.e. {{alt|Daniel Novacek}}.''
These fields are invisible in the infobox but populate the database for <code>{{#genealogy:tree ...}}</code>.
* '''gender''': '''M''' or '''F'''. Critical for tree logic and icons.
* '''parent 1 / parent 2''': Exact page name of biological parents.
* '''spouse''': Exact page name of a partner for marriage lines.
* '''gen_birthdate''': A clean year/date (e.g., <code>31 BCH</code>) to appear inside tree nodes.


* '''primecon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Canon|primary continuity]] article is available on the subject.
== Example ==
* '''primecon title''': The name of the article on the subject in the primary continuity. Do not encase in any link syntax.
<pre>
** ''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: <code>Adama (TOS)</code> will only print <code>Adama</code>. It will '''not affect''' the actual link itself, only the '''printed output''' in the template.
{{Character Data
 
| series    = TOS
== Changes Made ==
| photo      = Apollo.jpg
This improved version includes:
| gender    = M
 
| parent 1  = Adama (TOS)
* **Fixed table structure** - Proper opening and closing tags
| parent 2  = Ila
* **Improved error handling** - Template existence checks with fallbacks
| spouse    = Serina
* **Better accessibility** - Added alt attributes for images
| rank      = Captain
* **Cleaner conditional logic** - Simplified spoiler and collapsible handling
| actor      = [[Richard Hatch]]
* **Standardized parameters** - Consistent use of parameter defaults
}}
* **Enhanced documentation** - Clearer parameter descriptions and relationships
</pre>
* **Added CSS classes** - For better styling control
* **Improved link generation** - Better handling of episode links with display names
 
[[Category:Infobox|Character]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[de:Vorlage:Charakterdaten]]
[[fr:Modèle:Infobox Personnage]]


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"title": {
"title": {},
"description": "Character name if different from article name"
"photo": { "type": "wiki-file-name" },
},
"photo 2": { "type": "wiki-file-name" },
"photo": {
"caption": {},
"type": "wiki-file-name",
"caption 2": {},
"description": "Main character image filename"
"gender": { "label": "Gender (M/F)", "description": "M or F. Required for Genealogy.", "suggested": true },
},
"parent 1": { "label": "Genealogy Parent 1", "description": "Exact page name." },
"caption": {
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name." },
"description": "Caption for main photo"
"spouse": { "label": "Genealogy Spouse", "description": "Exact page name." },
},
"gen_birthdate": { "label": "Clean Birth Date" },
"photo 2": {
"age": {},
"type": "wiki-file-name",
"colony": {},
"description": "Secondary character image filename"
"birthplace": {},
},
"birthname": {},
"caption 2": {
"birthdate": { "label": "Visual Birth Date" },
"description": "Caption for secondary photo"
"callsign": {},
},
"nickname": {},
"name": {
"seen": {},
"description": "Human name if character is a Cylon"
"pseen": {},
},
"lastseen": {},
"cylon": {
"death": {},
"type": "boolean",
"parents": { "label": "Visual Parents List" },
"description": "Set to Y if character is a Cylon"
"siblings": {},
},
"children": {},
"5cylon": {
"marital status": {},
"type": "boolean",
"familytree": { "label": "Show 'View' Link (Y)" },
"description": "Set to Y if character is a Final Five Cylon"
"role": {},
},
"rank": {},
"hcylon": {
"serial": {},
"type": "boolean",
"actor": {},
"description": "Set to Y if character is a Human/Cylon Hybrid"
"cylon": {},
},
"5cylon": {},
"mcylon": {
"hcylon": {},
"type": "boolean",
"mcylon": {},
"description": "Set to Y if character is an Original Series Cylon"
"sepcon": {},
},
"primecon": {},
"age": {
"series": {},
"description": "Character's age"
"archives": { "label": "Photo Gallery (Y)" },
},
"media": { "label": "Media Key" },
"colony": {
"sortkey": {},
"description": "Home colony"
"spoilers": { "description": "Set to Y to hide spoiler rows." }
},
"birthplace": {
"description": "Birth location if not from the Twelve Colonies"
},
"birthname": {
"description": "Full birth name"
},
"birthdate": {
"description": "Date of birth"
},
"callsign": {
"description": "Pilot callsign"
},
"nickname": {
"description": "Character nickname"
},
"seen": {
"description": "First appearance episode"
},
"pseen": {
"description": "Display name for first appearance if different from episode title"
},
"seenref": {
"description": "Custom reference for first appearance (overrides seen/pseen)"
},
"lastseen": {
"description": "Last appearance episode"
},
"plastseen": {
"description": "Display name for last appearance if different from episode title"
},
"lastseenref": {
"description": "Custom reference for last appearance (overrides lastseen/plastseen)"
},
"death": {
"description": "Information about character's death"
},
"parents": {
"description": "Character's parents"
},
"siblings": {
"description": "Character's siblings"
},
"children": {
"description": "Character's children"
},
"marital status": {
"description": "Current marital status"
},
"familytree": {
"type": "boolean",
"description": "Set to Y if article has a family tree section"
},
"role": {
"description": "Current job or position"
},
"rank": {
"description": "Military rank"
},
"serial": {
"description": "Military serial number"
},
"actor": {
"description": "Actor who portrays the character"
},
"series": {
"description": "Primary series (TOS, 1980, RDM)"
},
"series 2": {
"description": "Secondary series icon"
},
"series 3": {
"description": "Tertiary series icon"
},
"archives": {
"type": "boolean",
"description": "Set to Y to show photo gallery link"
},
"media": {
"description": "Media identifier for BW Media link"
},
"sepcon": {
"type": "boolean",
"description": "Set to Y if separate continuity article exists"
},
"sepcon title": {
"description": "Title of separate continuity article"
},
"primecon": {
"type": "boolean",
"description": "Set to Y if primary continuity article exists"
},
"primecon title": {
"description": "Title of primary continuity article"
},
"sortkey": {
"description": "Category sort key (Last, First format)"
},
"spoilers": {
"type": "boolean",
"description": "Set to Y to enable spoiler hiding functionality"
}
},
},
"description": "Creates an infobox for Battlestar Galactica characters with improved error handling and accessibility.",
"description": "Comprehensive character infobox with Extension:Genealogy support."
"paramOrder": [
"title",
"photo",
"caption",
"photo 2",
"caption 2",
"name",
"cylon",
"5cylon",
"hcylon",
"mcylon",
"age",
"colony",
"birthplace",
"birthname",
"birthdate",
"callsign",
"nickname",
"seen",
"pseen",
"seenref",
"lastseen",
"plastseen",
"lastseenref",
"death",
"parents",
"siblings",
"children",
"marital status",
"familytree",
"role",
"rank",
"serial",
"actor",
"series",
"series 2",
"series 3",
"archives",
"media",
"sepcon",
"sepcon title",
"primecon",
"primecon title",
"sortkey",
"spoilers"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 21:14, 27 December 2025

Documentation

This template is the primary infobox for character articles. It provides a standard layout for character stats, media links, and continuity data, with integrated support for automated genealogy trees.

Parameter Descriptions

Header & Display

  • title: The name displayed at the top. Defaults to the page name.
  • series / series 2 / series 3: Determines which series icons (e.g., RDM, TOS, CAP) appear in the header.
  • photo / photo 2: The filename of the character image(s).
  • caption / caption 2: The text displayed directly beneath the photo(s).
  • sortkey: Used for category alphabetization (e.g., Adama, William).

Biography

  • name: For Cylons, this is their human alias (e.g., Sharon Valerii).
  • age: Approximate age of the character.
  • colony: The character's home colony (e.g., Caprica).
  • birthplace: Used if the character was born outside of the Twelve Colonies.
  • birthname: The full name given at birth.
  • birthdate: The visual display of their birth date.
  • death: Circumstances of death. Wikify the episode title if applicable.
  • callsign: The pilot's tactical name (e.g., Starbuck).
  • nickname: Other casual names.

Relationships

  • parents / siblings / children: General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g., ).
  • marital status: Marital condition (Single, Married, Widowed).
  • familytree: Set to Y to add a "View" link that jumps to the article's #Family tree section.

Military & Professional

  • role: The character's primary job or function in the story.
  • rank: Military rank (e.g., Commander).
  • serial: Colonial military serial number.
  • actor: The actor or actress who portrayed the character.

Cylon Toggles (Set to Y)

  • cylon: Character is a Re-imagined Series Cylon.
  • 5cylon: Character is a member of the Final Five.
  • hcylon: Character is a Human/Cylon Hybrid (e.g., Hera Agathon).
  • mcylon: Character is an Original Series Cylon.
  • archives: Set to Y to link to a Gallery:Character Data photo gallery.
  • media: The key for linking to external media collections (e.g., willie-adama).

Continuity Support

  • sepcon / primecon: Set to Y to enable cross-continuity links.
  • sepcon title / primecon title: The exact page title for the character in the other continuity.

Genealogy Extension (Automated Trees)

These fields are invisible in the infobox but populate the database for Genealogy parser function type not recognised: tree ....

  • gender: M or F. Critical for tree logic and icons.
  • parent 1 / parent 2: Exact page name of biological parents.
  • spouse: Exact page name of a partner for marriage lines.
  • gen_birthdate: A clean year/date (e.g., 31 BCH) to appear inside tree nodes.

Example

{{Character Data
| series     = TOS
| photo      = Apollo.jpg
| gender     = M
| parent 1   = Adama (TOS)
| parent 2   = Ila
| spouse     = Serina
| rank       = Captain
| actor      = [[Richard Hatch]]
}}

Comprehensive character infobox with Extension:Genealogy support.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

no description

Unknownoptional
photophoto

no description

Fileoptional
photo 2photo 2

no description

Fileoptional
captioncaption

no description

Unknownoptional
caption 2caption 2

no description

Unknownoptional
Gender (M/F)gender

M or F. Required for Genealogy.

Unknownsuggested
Genealogy Parent 1parent 1

Exact page name.

Unknownoptional
Genealogy Parent 2parent 2

Exact page name.

Unknownoptional
Genealogy Spousespouse

Exact page name.

Unknownoptional
Clean Birth Dategen_birthdate

no description

Unknownoptional
ageage

no description

Unknownoptional
colonycolony

no description

Unknownoptional
birthplacebirthplace

no description

Unknownoptional
birthnamebirthname

no description

Unknownoptional
Visual Birth Datebirthdate

no description

Unknownoptional
callsigncallsign

no description

Unknownoptional
nicknamenickname

no description

Unknownoptional
seenseen

no description

Unknownoptional
pseenpseen

no description

Unknownoptional
lastseenlastseen

no description

Unknownoptional
deathdeath

no description

Unknownoptional
Visual Parents Listparents

no description

Unknownoptional
siblingssiblings

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
marital statusmarital status

no description

Unknownoptional
Show 'View' Link (Y)familytree

no description

Unknownoptional
rolerole

no description

Unknownoptional
rankrank

no description

Unknownoptional
serialserial

no description

Unknownoptional
actoractor

no description

Unknownoptional
cyloncylon

no description

Unknownoptional
5cylon5cylon

no description

Unknownoptional
hcylonhcylon

no description

Unknownoptional
mcylonmcylon

no description

Unknownoptional
sepconsepcon

no description

Unknownoptional
primeconprimecon

no description

Unknownoptional
seriesseries

no description

Unknownoptional
Photo Gallery (Y)archives

no description

Unknownoptional
Media Keymedia

no description

Unknownoptional
sortkeysortkey

no description

Unknownoptional
spoilersspoilers

Set to Y to hide spoiler rows.

Unknownoptional