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
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" cellspacing="5"
<includeonly>{| class="infobox" cellspacing="5"
|-
| 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"
|- 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" | {{Series Icon|series={{{series|}}}}}
| width="27" | {{Series Icon|series={{{series|}}}}}
Line 9: Line 12:
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
|}
|}
{{#if:{{{photo|}}}|
|-
|- class="hiddenStructure"
|- class="hiddenStructure{{#if:{{{photo|}}}|Y|}}"
| colspan="2" style="text-align: center;" | [[File:{{{photo}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption|}}}|<br/>{{{caption}}}}}
| colspan="2" style="text-align: center;" | [[File:{{{photo|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption|}}}|<br/> {{{caption|}}}|}}
}}
|- {{#if:{{{spoilers|}}}|class="hiddenStructure{{void}}"}}
 
{{#if:{{{spoilers|}}}|
|- class="hiddenStructure"
| 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>
| 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>
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{name|}}}|Y|}}"
| style="white-space: nowrap;" |
{{#switch:{{{cylon}}}
| Y | y | Yes | yes = '''Human Name'''
| #default='''Name'''
}}
}}
 
| {{{name}}}
{{#switch:{{{cylon|}}}
|- 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|}}"
| Y =
| y =
| Yes =
| yes =
  |- style="vertical-align: top; text-align: left;"
  | '''Human Name'''
  | {{{name|}}}
| #default =
  |- style="vertical-align: top; text-align: left;"
  | '''Name'''
  | {{{name|}}}
}}
 
{{#if:{{{age|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}}"
| '''Birth place'''
| '''Birth place'''
| {{{birthplace}}}
| {{{birthplace}}}
}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthname|}}}|Y|}}"
 
| style="white-space: nowrap;" | '''Birth Name'''  
{{#if:{{{birthname|}}}|
|- style="vertical-align: top; text-align: left;"
| '''Birth Name'''
| {{{birthname}}}
| {{{birthname}}}
}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthdate|}}}|Y|}}"
 
| style="white-space: nowrap;" | '''Birth Date'''  
{{#if:{{{birthdate|}}}|
|- style="vertical-align: top; text-align: left;"
| '''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|}}"
 
| style="white-space: nowrap;" | '''Introduced'''
{{#if:{{{seen|}}}|
| {{#if:{{{seenref|}}}|{{{seenref|}}}|{{#if:{{{pseen|}}}|[[{{{seen}}}|{{{pseen}}}]]|[[{{{seen}}}]]}}}}
|- style="vertical-align: top; text-align: left;"
|- 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|}}"
| '''Introduced'''
| {{#if:{{{seenref|}}}|{{{seenref}}}|{{#if:{{{pseen|}}}|[[{{{seen}}}|{{{pseen}}}]]|[[{{{seen}}}]]}}}
}}
 
{{#if:{{{lastseen|}}}{{{lastseenref|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}}"
| '''Last Known Appearance'''
| '''Last Known Appearance'''
| {{#if:{{{lastseenref|}}}|{{{lastseenref}}}|{{#if:{{{plastseen|}}}|[[{{{lastseen}}}|{{{plastseen}}}]]|[[{{{lastseen}}}]]}}}
| {{#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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}"
 
| style="white-space: nowrap;" | '''Marital Status'''
{{#if:{{{marital status|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}}"
| '''Marital Status'''
| {{{marital status}}}
| {{{marital status}}}
}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{familytree|}}}|Y|}}"
 
| style="white-space: nowrap;" | '''Family Tree'''
{{#if:{{{familytree|}}}|
|- style="vertical-align: top; text-align: left;"
| '''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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}}|
|- style="vertical-align: top; text-align: left;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|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|}}"
 
| style="white-space: nowrap;" | '''Portrayed by'''
{{#if:{{{actor|}}}|
| style="white-space: nowrap;" | {{{actor}}}
|- style="vertical-align: top; text-align: left;"
|- 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|}}"
| '''Portrayed by'''
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Humanoid Cylon|Cylon]]
| {{{actor}}}
|- 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|}}"
}}
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Final Five]] [[Humanoid Cylon|Cylon]]
 
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{hcylon|}}}|Y|}}"
{{#if:{{{cylon|}}}|
| colspan="2" | {{{title|{{PAGENAME}}}}} is a [[Humanoid_Cylon#Human.2FCylon_Hybrids|Human/Cylon Hybrid]]
|- style="vertical-align: top; text-align: center;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}}"
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{mcylon|}}}|Y|}}"
| colspan="2"| {{{title|{{PAGENAME}}}}} is a [[Humanoid Cylon|Cylon]]
| colspan="2" | {{{title|{{PAGENAME}}}}} is an Original Series Cylon
}}
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{archives|}}}{{{media|}}}|Y|}}"
 
! class="infoboxheader" colspan="2" | Related Media
{{#if:{{{5cylon|}}}|
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{archives|}}}{{{media|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;" id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}}"
| {{#if:{{{media|}}}||colspan="2"}} style="white-space: nowrap;" class="hiddenStructure{{#if:{{{archives|}}}|Y|}}" | {{#if:{{{archives|}}}|[[Gallery:{{PAGENAME}}|Photo Gallery]]}}
| colspan="2"| {{{title|{{PAGENAME}}}}} is a [[Final Five]] [[Humanoid Cylon|Cylon]]
| {{#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|}}"
 
! class="infoboxheader" colspan="2" | Additional Information
{{#if:{{{hcylon|}}}|
|- 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"| {{{title|{{PAGENAME}}}}} is a [[Humanoid_Cylon#Human.2FCylon_Hybrids|Human/Cylon Hybrid]]
|- 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]]}}
|- class="hiddenStructure{{#if:{{{photo 2|}}}|Y|}}"
| colspan="2" style="text-align: center;" | [[File:{{{photo 2|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/> {{{caption 2|}}}|}}
|- 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>
= 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.


{{#if:{{{mcylon|}}}|
== Parameter Descriptions ==
|- style="vertical-align: top; text-align: center;"
| colspan="2"| {{{title|{{PAGENAME}}}}} is an Original Series Cylon
}}


{{#if:{{{archives|}}}{{{media|}}}|
=== Header & Display ===
|- style="vertical-align: top; text-align: center;"
* '''title''': The name displayed at the top. Defaults to the page name.
! class="infoboxheader" colspan="2" | Related Media
* '''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>).


{{#if:{{{archives|}}}|
=== Biography ===
|- style="vertical-align: top; text-align: center;"
* '''name''': For Cylons, this is their human alias (e.g., <code>Sharon Valerii</code>).
| colspan="2" style="white-space: nowrap;" | [[Gallery:{{PAGENAME}}|Photo Gallery]]
* '''age''': Approximate age of the character.
}}
* '''colony''': The character's home colony (e.g., <code>Caprica</code>).
* '''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., <code>Starbuck</code>).
* '''nickname''': Other casual names.


{{#if:{{{media|}}}|
=== Relationships ===
|- style="vertical-align: top; text-align: center;"
* '''parents / siblings / children''': General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g., <code>†</code>).
| colspan="2" style="white-space: nowrap;" | [[md:{{{media}}}|@ BW Media]]
* '''marital status''': Marital condition (Single, Married, Widowed).
}}
* '''familytree''': Set to '''Y''' to add a "View" link that jumps to the article's <code>#Family tree</code> section.


{{#if:{{{sepcon|}}}{{{primecon|}}}|
=== Military & Professional ===
|- style="vertical-align: top; text-align: center;"
* '''role''': The character's primary job or function in the story.
! class="infoboxheader" colspan="2" | Additional Information
* '''rank''': Military rank (e.g., <code>Commander</code>).
}}
* '''serial''': Colonial military serial number.
* '''actor''': The actor or actress who portrayed the character.


{{#if:{{{sepcon|}}}|
=== Cylon Toggles (Set to Y) ===
|- style="vertical-align: top; text-align: center;"
* '''cylon''': Character is a Re-imagined Series Cylon.
| colspan="2"| [[{{{sepcon title|{{{title|{{PAGENAME}}}}} ({{{series|}}} alternate)}}}|{{#if:{{{sepcon title|}}}|{{#explode:{{{sepcon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the separate continuity]]
* '''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.


{{#if:{{{primecon|}}}|
=== Related Media ===
|- style="vertical-align: top; text-align: center;"
* '''archives''': Set to '''Y''' to link to a <code>Gallery:{{PAGENAME}}</code> photo gallery.
| colspan="2"| [[{{{primecon title|{{{title|{{PAGENAME}}}}} ({{{series|}}})}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]]
* '''media''': The key for linking to external media collections (e.g., <code>willie-adama</code>).
}}


{{#if:{{{photo 2|}}}|
=== Continuity Support ===
|- class="hiddenStructure"
* '''sepcon / primecon''': Set to '''Y''' to enable cross-continuity links.
| colspan="2" style="text-align: center;" | [[File:{{{photo 2}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/>{{{caption 2}}}}}
* '''sepcon title / primecon title''': The exact page title for the character in the other continuity.
|}
{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly>


<noinclude>
=== Genealogy Extension (Automated Trees) ===
= Documentation =
These fields are invisible in the infobox but populate the database for <code>{{#genealogy:tree ...}}</code>.
This template is used to place character info on a Battlestar Wiki article. It provides lower case parameters only.
* '''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.


== Usage ==
== Example ==
<pre>
<pre>
{{Character Data
{{Character Data
| title=
| series    = TOS
| photo=
| photo     = Apollo.jpg
| photo 2=
| gender    = M
| caption=
| parent 1  = Adama (TOS)
| caption 2=
| parent 2   = Ila
| age=
| spouse    = Serina
| colony=
| rank       = Captain
| birthplace=
| actor     = [[Richard Hatch]]
| birthname=
| birthdate=
| callsign=
| nickname=
| seen=
| pseen=
| lastseen=
| plastseen=
| death=
| parents=
| siblings=
| children=
| marital status=
| familytree=
| role=
| rank=
| serial=
| actor=
| cylon=
| 5cylon=
| hcylon=
| mcylon=
| sepcon=
| primecon=
| series=
| name=
| sortkey=
}}
}}
</pre>
</pre>
=== Optional parameters ===
* '''title''': If different from the article name.
* '''photo''': The filename of the photo.
* '''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.
* '''[[Colonies|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.
* '''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.)
==== 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.
==== Separate Continuity ====
* '''sepcon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Separate continuity|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: <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.
* '''series''': Insert the series acronym that the separate continuity is a part of.  Values are '''TOS''', '''1980''', and '''RDM'''.
: '''Note:''' This is only for articles where the name crosses more than one continuity. For instance, "Boxey" is both a character in the Original Series as well as the Re-imagined Series. So an article on Boxey in the separate continuity material for the Original Series would use the "TOS" acronym, and thus would facilitate a link to [[Boxey (TOS alternate)]].
==== Primary Continuity ====
: ''This is meant for articles on ''separate continuity'' characters, i.e. {{alt|Daniel Novacek}}.''
* '''primecon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Canon|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: <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.
* '''series''': Insert the series acronym that the primary continuity is a part of.  Values are '''TOS''', '''1980''', and '''RDM'''.
: '''Note:''' This is only for articles where the name crosses more than one continuity. For instance, "Boxey" is both a character in the Original Series as well as the Re-imagined Series. So an article on Boxey in the primary continuity material for the Original Series would use the "TOS" acronym, and thus would facilitate a link to [[Boxey (TOS)]].
[[Category:Infobox|Character]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[de:Vorlage:Charakterdaten]]
[[fr:Modèle:Infobox Personnage]]


<templatedata>
<templatedata>
Line 314: Line 178:
"params": {
"params": {
"title": {},
"title": {},
"photo": {
"photo": { "type": "wiki-file-name" },
"type": "wiki-file-name"
"photo 2": { "type": "wiki-file-name" },
},
"caption": {},
"caption": {},
"name": {},
"caption 2": {},
"cylon": {},
"gender": { "label": "Gender (M/F)", "description": "M or F. Required for Genealogy.", "suggested": true },
"parent 1": { "label": "Genealogy Parent 1", "description": "Exact page name." },
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name." },
"spouse": { "label": "Genealogy Spouse", "description": "Exact page name." },
"gen_birthdate": { "label": "Clean Birth Date" },
"age": {},
"age": {},
"colony": {},
"colony": {},
"birthplace": {},
"birthplace": {},
"birthname": {},
"birthname": {},
"birthdate": {},
"birthdate": { "label": "Visual Birth Date" },
"callsign": {},
"callsign": {},
"nickname": {},
"nickname": {},
"seen": {},
"seen": {},
"seenref": {},
"pseen": {},
"pseen": {},
"lastseen": {},
"death": {},
"death": {},
"parents": {},
"parents": { "label": "Visual Parents List" },
"siblings": {},
"siblings": {},
"children": {},
"children": {},
"marital status": {},
"marital status": {},
"familytree": {},
"familytree": { "label": "Show 'View' Link (Y)" },
"role": {},
"role": {},
"rank": {},
"rank": {},
"serial": {},
"serial": {},
"actor": {},
"actor": {},
"cylon": {},
"5cylon": {},
"5cylon": {},
"hcylon": {},
"hcylon": {},
"mcylon": {},
"mcylon": {},
"archives": {},
"media": {},
"sepcon": {},
"sepcon": {},
"primecon": {},
"primecon": {},
"sepcon title": {},
"series": {},
"series": {},
"primecon title": {},
"archives": { "label": "Photo Gallery (Y)" },
"photo 2": {
"media": { "label": "Media Key" },
"type": "wiki-file-name"
},
"caption 2": {},
"sortkey": {},
"sortkey": {},
"lastseen": {},
"spoilers": { "description": "Set to Y to hide spoiler rows." }
"lastseenref": {},
"plastseen": {},
"spoilers": {}
},
},
"description": "Creates an infobox for characters.",
"description": "Comprehensive character infobox with Extension:Genealogy support."
"paramOrder": [
"title",
"photo",
"caption",
"name",
"cylon",
"age",
"colony",
"birthplace",
"birthname",
"birthdate",
"callsign",
"nickname",
"seen",
"seenref",
"pseen",
"lastseen",
"lastseenref",
"plastseen",
"death",
"parents",
"siblings",
"children",
"marital status",
"familytree",
"role",
"rank",
"serial",
"actor",
"5cylon",
"hcylon",
"mcylon",
"archives",
"media",
"sepcon",
"primecon",
"sepcon title",
"series",
"primecon title",
"photo 2",
"caption 2",
"sortkey",
"spoilers"
]
}
}
</templatedata></noinclude>
</templatedata>
</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