Template:Character Data: Difference between revisions
More actions
No edit summary |
|||
| (9 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;" | | | 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}}}}}}} {{#if:{{{step_parent 1|}}}|{{#genealogy:step_parent|{{{step_parent 1}}}}}}} {{#if:{{{step_parent 2|}}}|{{#genealogy:step_parent|{{{step_parent 2}}}}}}} | ||
{{#if:{{{gender|}}}|{{#genealogy:gender | |||
{{#if:{{{gen_birthdate|{{{birthdate|}}}}}}|{{#genealogy: | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
|- class="infoboxheader" | |- class="infoboxheader" | ||
| colspan="2"| | | colspan="2"| | ||
| Line 60: | Line 56: | ||
| '''Parents''' | | '''Parents''' | ||
| {{{parents}}} | | {{{parents}}} | ||
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{step_parents|}}}|Y|}}" | |||
| '''Step-Parents''' | |||
| {{{step_parents}}} | |||
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{siblings|}}}|Y|}}" | |- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{siblings|}}}|Y|}}" | ||
| '''Siblings''' | | '''Siblings''' | ||
| Line 105: | Line 104: | ||
|- 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><noinclude> | |- 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 = | = Documentation = | ||
This template is | 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., <code>Adama, William</code>). | |||
=== 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>). | |||
* '''step_parents''': Visual display of step-parents in the infobox (supports wikilinks and line breaks). | |||
* '''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><nowiki>{{#genealogy:tree ...}}</nowiki></code>. | |||
* '''gender''': '''M''' or '''F'''. Critical for tree logic and icons. | |||
* '''parent 1 / parent 2''': Exact page name of biological parents. | |||
* '''step_parent 1 / step_parent 2''': Exact page name of step-parents. These will be shown with dotted lines in genealogy trees. | |||
* '''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. | |||
== Examples == | |||
=== Basic Character === | |||
<pre> | <pre> | ||
{{Character Data | {{Character Data | ||
| series = TOS | |||
| photo = Apollo.jpg | |||
| gender = M | |||
| parent 1 = Adama (TOS) | |||
| parent 2 = Ila | |||
| spouse = Serina | |||
| rank = Captain | |||
| actor = [[Richard Hatch]] | |||
}} | }} | ||
</pre> | </pre> | ||
=== | === Character with Step-Parent === | ||
<pre> | |||
{{Character Data | |||
| series = TOS | |||
| photo = Boxey.jpg | |||
| gender = M | |||
| parent 1 = Serina | |||
| step_parent 1 = Apollo (TOS) | |||
| step_parents = [[Apollo (TOS)]] (stepfather) | |||
}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
| Line 163: | Line 196: | ||
"params": { | "params": { | ||
"title": {}, | "title": {}, | ||
"photo": { | "photo": { "type": "wiki-file-name" }, | ||
"photo 2": { "type": "wiki-file-name" }, | |||
}, | |||
"caption": {}, | "caption": {}, | ||
" | "caption 2": {}, | ||
"gender": { | "gender": { "label": "Gender (M/F)", "description": "M or F. Required for Genealogy.", "suggested": true }, | ||
"parent 1": { "label": "Genealogy Parent 1", "description": "Exact page name of biological parent." }, | |||
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name of biological parent." }, | |||
"step_parent 1": { "label": "Genealogy Step-Parent 1", "description": "Exact page name of step-parent. Will show as dotted line in tree." }, | |||
"step_parent 2": { "label": "Genealogy Step-Parent 2", "description": "Exact page name of step-parent. Will show as dotted line in tree." }, | |||
}, | "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": {}, | ||
"pseen": {}, | "pseen": {}, | ||
"lastseen": {}, | "lastseen": {}, | ||
" | "death": {}, | ||
" | "parents": { "label": "Visual Parents List" }, | ||
" | "step_parents": { "label": "Visual Step-Parents List", "description": "Display text for step-parents in infobox (supports wikilinks)" }, | ||
"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": {}, | ||
"sepcon": {}, | "sepcon": {}, | ||
"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": " | "description": "Comprehensive character infobox with Extension:Genealogy support, including step-relationship tracking." | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 00:24, 28 December 2025
Documentation
editThis 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
editHeader & Display
edit- 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
edit- 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
edit- parents / siblings / children: General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g.,
†). - step_parents: Visual display of step-parents in the infobox (supports wikilinks and line breaks).
- marital status: Marital condition (Single, Married, Widowed).
- familytree: Set to Y to add a "View" link that jumps to the article's
#Family treesection.
Military & Professional
edit- 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)
edit- 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
edit- archives: Set to Y to link to a
Gallery:Character Dataphoto gallery. - media: The key for linking to external media collections (e.g.,
willie-adama).
Continuity Support
edit- 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)
editThese fields are invisible in the infobox but populate the database for {{#genealogy:tree ...}}.
- gender: M or F. Critical for tree logic and icons.
- parent 1 / parent 2: Exact page name of biological parents.
- step_parent 1 / step_parent 2: Exact page name of step-parents. These will be shown with dotted lines in genealogy trees.
- 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.
Examples
editBasic Character
edit{{Character Data
| series = TOS
| photo = Apollo.jpg
| gender = M
| parent 1 = Adama (TOS)
| parent 2 = Ila
| spouse = Serina
| rank = Captain
| actor = [[Richard Hatch]]
}}
Character with Step-Parent
edit{{Character Data
| series = TOS
| photo = Boxey.jpg
| gender = M
| parent 1 = Serina
| step_parent 1 = Apollo (TOS)
| step_parents = [[Apollo (TOS)]] (stepfather)
}}
Comprehensive character infobox with Extension:Genealogy support, including step-relationship tracking.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | no description | Unknown | optional |
| photo | photo | no description | File | optional |
| photo 2 | photo 2 | no description | File | optional |
| caption | caption | no description | Unknown | optional |
| caption 2 | caption 2 | no description | Unknown | optional |
| Gender (M/F) | gender | M or F. Required for Genealogy. | Unknown | suggested |
| Genealogy Parent 1 | parent 1 | Exact page name of biological parent. | Unknown | optional |
| Genealogy Parent 2 | parent 2 | Exact page name of biological parent. | Unknown | optional |
| Genealogy Step-Parent 1 | step_parent 1 | Exact page name of step-parent. Will show as dotted line in tree. | Unknown | optional |
| Genealogy Step-Parent 2 | step_parent 2 | Exact page name of step-parent. Will show as dotted line in tree. | Unknown | optional |
| Genealogy Spouse | spouse | Exact page name. | Unknown | optional |
| Clean Birth Date | gen_birthdate | no description | Unknown | optional |
| age | age | no description | Unknown | optional |
| colony | colony | no description | Unknown | optional |
| birthplace | birthplace | no description | Unknown | optional |
| birthname | birthname | no description | Unknown | optional |
| Visual Birth Date | birthdate | no description | Unknown | optional |
| callsign | callsign | no description | Unknown | optional |
| nickname | nickname | no description | Unknown | optional |
| seen | seen | no description | Unknown | optional |
| pseen | pseen | no description | Unknown | optional |
| lastseen | lastseen | no description | Unknown | optional |
| death | death | no description | Unknown | optional |
| Visual Parents List | parents | no description | Unknown | optional |
| Visual Step-Parents List | step_parents | Display text for step-parents in infobox (supports wikilinks) | Unknown | optional |
| siblings | siblings | no description | Unknown | optional |
| children | children | no description | Unknown | optional |
| marital status | marital status | no description | Unknown | optional |
| Show 'View' Link (Y) | familytree | no description | Unknown | optional |
| role | role | no description | Unknown | optional |
| rank | rank | no description | Unknown | optional |
| serial | serial | no description | Unknown | optional |
| actor | actor | no description | Unknown | optional |
| cylon | cylon | no description | Unknown | optional |
| 5cylon | 5cylon | no description | Unknown | optional |
| hcylon | hcylon | no description | Unknown | optional |
| mcylon | mcylon | no description | Unknown | optional |
| sepcon | sepcon | no description | Unknown | optional |
| primecon | primecon | no description | Unknown | optional |
| series | series | no description | Unknown | optional |
| Photo Gallery (Y) | archives | no description | Unknown | optional |
| Media Key | media | no description | Unknown | optional |
| sortkey | sortkey | no description | Unknown | optional |
| spoilers | spoilers | Set to Y to hide spoiler rows. | Unknown | optional |