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
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
|-
|-
| colspan="2" style="display:none;" |  
| colspan="2" style="display:none;" |  
{{#if:{{{gender|}}}|{{#genealogy:gender|{{{gender}}}}}}}
{{#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}}}}}}}
{{#if:{{{gen_birthdate|{{{birthdate|}}}}}}|{{#genealogy:birth_date|{{{gen_birthdate|{{{birthdate}}}}}}}}}}
{{#if:{{{gen_death|{{{death|}}}}}}|{{#genealogy:death_date|{{{gen_death|{{{death}}}}}}}}}}
{{#if:{{{gen_parents|{{{parents|}}}}}}|{{#genealogy:parents|{{{gen_parents|{{{parents}}}}}}}}}}
|- class="infoboxheader"
|- class="infoboxheader"
| colspan="2"|
| colspan="2"|
Line 105: Line 102:
|- class="hiddenStructure{{#if:{{{photo 2|}}}|Y|}}"
|- class="hiddenStructure{{#if:{{{photo 2|}}}|Y|}}"
| colspan="2" style="text-align: center;" | [[File:{{{photo 2|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/> {{{caption 2|}}}|}}
| colspan="2" style="text-align: center;" | [[File:{{{photo 2|}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/> {{{caption 2|}}}|}}
|}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly>
|- class="hiddenStructure{{#if:{{{debug|}}}|Y|}}"
<noinclude>
| 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 =
= Documentation =
This template is used to place character info on a Battlestar Wiki article.
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.


== Genealogy Extension Features ==
== Parameter Descriptions ==
This template integrates with '''[[Extension:Genealogy]]'''. To ensure family trees work correctly, use the "gen_" parameters to provide "clean" data (page names only, no icons or extra text).


* '''gender''': M or F. Required for correct tree rendering.
=== Header & Display ===
* '''gen_parents''': A comma-separated list of exact Page Names for the parents (e.g. <code>Joseph Adama, Shannon Adama</code>).
* '''title''': The name displayed at the top. Defaults to the page name.
* '''gen_birthdate / gen_death''': A clean year or date (e.g. <code>69 BCH</code>) without extra text like "approx" or "(31YR)".
* '''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>).


== Usage ==
=== Biography ===
* '''name''': For Cylons, this is their human alias (e.g., <code>Sharon Valerii</code>).
* '''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.
 
=== Relationships ===
* '''parents / siblings / children''': General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g., <code>†</code>).
* '''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.
 
=== Military & Professional ===
* '''role''': The character's primary job or function in the story.
* '''rank''': Military rank (e.g., <code>Commander</code>).
* '''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.
 
=== Related Media ===
* '''archives''': Set to '''Y''' to link to a <code>Gallery:{{PAGENAME}}</code> photo gallery.
* '''media''': The key for linking to external media collections (e.g., <code>willie-adama</code>).
 
=== 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 <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.
 
== 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
| gender=
| spouse    = Serina
| age=
| rank       = Captain
| colony=
| actor     = [[Richard Hatch]]
| birthplace=
| birthname=
| birthdate=
| gen_birthdate=
| callsign=
| nickname=
| seen=
| pseen=
| lastseen=
| plastseen=
| death=
| gen_death=
| parents=
| gen_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.
* '''gender''': '''M''' or '''F'''. Critical for Genealogy extension icons.
* '''birthdate''': The date as it should appear in the infobox (e.g. <code>c. {{YR|31}}</code>).
* '''gen_birthdate''': The clean date for the database (e.g. <code>31 BCH</code>).
* '''parents''': The parents as they appear in the infobox (e.g. <code>[[Joseph Adama]] (father)</code>).
* '''gen_parents''': Clean comma-separated list of page names for the tree engine.
* '''familytree''': Set this to '''Y''' if they have a family tree. Use the <code><genealogy /></code> tag in the article's Family Tree section.
[[Category:Infobox|Character]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]


<templatedata>
<templatedata>
Line 179: Line 178:
"params": {
"params": {
"title": {},
"title": {},
"photo": {
"photo": { "type": "wiki-file-name" },
"type": "wiki-file-name"
"photo 2": { "type": "wiki-file-name" },
},
"photo 2": {
"type": "wiki-file-name"
},
"caption": {},
"caption": {},
"caption 2": {},
"caption 2": {},
"gender": {
"gender": { "label": "Gender (M/F)", "description": "M or F. Required for Genealogy.", "suggested": true },
"label": "Gender",
"parent 1": { "label": "Genealogy Parent 1", "description": "Exact page name." },
"description": "M or F. Required for Genealogy extension trees.",
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name." },
"type": "string",
"spouse": { "label": "Genealogy Spouse", "description": "Exact page name." },
"suggested": true
"gen_birthdate": { "label": "Clean Birth Date" },
},
"age": {},
"age": {},
"colony": {},
"colony": {},
"birthplace": {},
"birthplace": {},
"birthname": {},
"birthname": {},
"birthdate": {
"birthdate": { "label": "Visual Birth Date" },
"description": "Visual birthdate display."
},
"gen_birthdate": {
"label": "Clean Birthdate",
"description": "Clean year/date for Genealogy engine (e.g. 69 BCH).",
"type": "string"
},
"callsign": {},
"callsign": {},
"nickname": {},
"nickname": {},
Line 210: Line 197:
"pseen": {},
"pseen": {},
"lastseen": {},
"lastseen": {},
"plastseen": {},
"death": {},
"death": {
"parents": { "label": "Visual Parents List" },
"description": "Visual death info display."
},
"gen_death": {
"label": "Clean Death Date",
"description": "Clean year/date for Genealogy engine.",
"type": "string"
},
"parents": {
"description": "Visual parents display (allows tags/icons)."
},
"gen_parents": {
"label": "Clean Parents List",
"description": "Comma-separated page names for Genealogy engine (e.g. Joseph Adama, Shannon Adama).",
"type": "string"
},
"siblings": {},
"siblings": {},
"children": {},
"children": {},
"marital status": {},
"marital status": {},
"familytree": {
"familytree": { "label": "Show 'View' Link (Y)" },
"description": "Set to Y to show the 'View' link."
},
"role": {},
"role": {},
"rank": {},
"rank": {},
"serial": {},
"serial": {},
"actor": {
"actor": {},
"type": "string"
},
"cylon": {},
"cylon": {},
"5cylon": {},
"5cylon": {},
Line 246: Line 214:
"primecon": {},
"primecon": {},
"series": {},
"series": {},
"archives": { "label": "Photo Gallery (Y)" },
"media": { "label": "Media Key" },
"sortkey": {},
"sortkey": {},
"spoilers": {}
"spoilers": { "description": "Set to Y to hide spoiler rows." }
},
},
"description": "Infobox for character data with integrated Genealogy extension support.",
"description": "Comprehensive character infobox with Extension:Genealogy support."
"paramOrder": [
"title",
"photo",
"caption",
"gender",
"age",
"colony",
"birthplace",
"birthname",
"birthdate",
"gen_birthdate",
"callsign",
"nickname",
"seen",
"pseen",
"lastseen",
"plastseen",
"death",
"gen_death",
"parents",
"gen_parents",
"siblings",
"children",
"marital status",
"familytree",
"role",
"rank",
"serial",
"actor",
"cylon",
"5cylon",
"hcylon",
"mcylon",
"sepcon",
"primecon",
"series",
"photo 2",
"caption 2",
"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