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
Line 105: Line 105:
|- 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>
|}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly><noinclude>
<noinclude>
= Documentation =
= Documentation =
This template is used to place character info on a Battlestar Wiki article.
This template is used for character articles.


== Genealogy Extension Features ==
== General Fields ==
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).
* '''title''': Displayed title. Defaults to page name.
* '''photo / photo 2''': Filenames for images.
* '''caption / caption 2''': Image captions.
* '''age''': Approximate age.
* '''colony''': Home colony (e.g., Caprica).
* '''birthplace''': Use if born outside the Twelve Colonies.
* '''birthname''': Full birth name.
* '''birthdate''': Visual display of birth date.
* '''callsign''': Pilot callsign.
* '''nickname''': Other aliases.
* '''seen''': First episode appearance (do not wikify).
* '''pseen''': Custom display text for the "seen" episode link.
* '''lastseen''': Last known episode appearance.
* '''death''': Circumstances/Date of death.
* '''parents / siblings / children''': Family members. Use `<br/>` for lists.
* '''marital status''': Single, Married, etc.
* '''role''': Current occupation.
* '''rank''': Military rank.
* '''serial''': Military serial number.
* '''actor''': Portraying actor. Wikify.


* '''gender''': M or F. Required for correct tree rendering.
== Genealogy Extension (Required for Family Trees) ==
* '''gen_parents''': A comma-separated list of exact Page Names for the parents (e.g. <code>Joseph Adama, Shannon Adama</code>).
To enable automated family trees via `<genealogy />`, use these "gen_" parameters:
* '''gen_birthdate / gen_death''': A clean year or date (e.g. <code>69 BCH</code>) without extra text like "approx" or "(31YR)".
* '''gender''': '''M''' or '''F'''. (Crucial for icons).
* '''gen_parents''': Clean comma-separated list of exact Page Names (e.g., <code>Joseph Adama, Shannon Adama</code>).
* '''gen_birthdate''': Clean year/date for database (e.g., <code>69 BCH</code>).
* '''gen_death''': Clean year/date of death.
* '''familytree''': Set to '''Y''' to show the "View" link in the infobox.


== Usage ==
== Cylon Toggles ==
<pre>
Set these to '''Y''' to display specific banners:
{{Character Data
* '''cylon''': Standard Cylon indicator (changes "Name" label to "Human Name").
| title=
* '''5cylon''': Final Five indicator.
| photo=
* '''hcylon''': Human/Cylon Hybrid indicator.
| photo 2=
* '''mcylon''': Original Series Cylon indicator.
| caption=
| caption 2=
| 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=
| name=
| sortkey=
}}
</pre>


=== Optional parameters ===
== Continuity Fields ==
* '''title''': If different from the article name.
* '''sepcon / primecon''': Set to '''Y''' if the character exists in an alternate or primary continuity.
* '''photo''': The filename of the photo.
* '''sepcon title / primecon title''': The exact title of the related article.
* '''gender''': '''M''' or '''F'''. Critical for Genealogy extension icons.
* '''series''': Acronym (TOS, 1980, RDM).
* '''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 155:
"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", "description": "M or F. Required for Genealogy.", "suggested": true },
"label": "Gender",
"description": "M or F. Required for Genealogy extension trees.",
"type": "string",
"suggested": true
},
"age": {},
"age": {},
"colony": {},
"colony": {},
"birthplace": {},
"birthplace": {},
"birthname": {},
"birthname": {},
"birthdate": {
"birthdate": {},
"description": "Visual birthdate display."
"gen_birthdate": { "label": "Clean Birth Date" },
},
"gen_birthdate": {
"label": "Clean Birthdate",
"description": "Clean year/date for Genealogy engine (e.g. 69 BCH).",
"type": "string"
},
"callsign": {},
"callsign": {},
"nickname": {},
"nickname": {},
Line 211: Line 172:
"lastseen": {},
"lastseen": {},
"plastseen": {},
"plastseen": {},
"death": {
"death": {},
"description": "Visual death info display."
"gen_death": { "label": "Clean Death Date" },
},
"parents": {},
"gen_death": {
"gen_parents": { "label": "Clean Parents List" },
"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": {},
"description": "Set to Y to show the 'View' link."
},
"role": {},
"role": {},
"rank": {},
"rank": {},
"serial": {},
"serial": {},
"actor": {
"actor": {},
"type": "string"
},
"cylon": {},
"cylon": {},
"5cylon": {},
"5cylon": {},
Line 248: Line 193:
"sortkey": {},
"sortkey": {},
"spoilers": {}
"spoilers": {}
},
}
"description": "Infobox for character data with integrated Genealogy extension 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 19:20, 27 December 2025

Documentation

This template is used for character articles.

General Fields

  • title: Displayed title. Defaults to page name.
  • photo / photo 2: Filenames for images.
  • caption / caption 2: Image captions.
  • age: Approximate age.
  • colony: Home colony (e.g., Caprica).
  • birthplace: Use if born outside the Twelve Colonies.
  • birthname: Full birth name.
  • birthdate: Visual display of birth date.
  • callsign: Pilot callsign.
  • nickname: Other aliases.
  • seen: First episode appearance (do not wikify).
  • pseen: Custom display text for the "seen" episode link.
  • lastseen: Last known episode appearance.
  • death: Circumstances/Date of death.
  • parents / siblings / children: Family members. Use `
    ` for lists.
  • marital status: Single, Married, etc.
  • role: Current occupation.
  • rank: Military rank.
  • serial: Military serial number.
  • actor: Portraying actor. Wikify.

Genealogy Extension (Required for Family Trees)

To enable automated family trees via `<genealogy />`, use these "gen_" parameters:

  • gender: M or F. (Crucial for icons).
  • gen_parents: Clean comma-separated list of exact Page Names (e.g., Joseph Adama, Shannon Adama).
  • gen_birthdate: Clean year/date for database (e.g., 69 BCH).
  • gen_death: Clean year/date of death.
  • familytree: Set to Y to show the "View" link in the infobox.

Cylon Toggles

Set these to Y to display specific banners:

  • cylon: Standard Cylon indicator (changes "Name" label to "Human Name").
  • 5cylon: Final Five indicator.
  • hcylon: Human/Cylon Hybrid indicator.
  • mcylon: Original Series Cylon indicator.

Continuity Fields

  • sepcon / primecon: Set to Y if the character exists in an alternate or primary continuity.
  • sepcon title / primecon title: The exact title of the related article.
  • series: Acronym (TOS, 1980, RDM).

No description.

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
Gendergender

M or F. Required for Genealogy.

Unknownsuggested
ageage

no description

Unknownoptional
colonycolony

no description

Unknownoptional
birthplacebirthplace

no description

Unknownoptional
birthnamebirthname

no description

Unknownoptional
birthdatebirthdate

no description

Unknownoptional
Clean Birth Dategen_birthdate

no description

Unknownoptional
callsigncallsign

no description

Unknownoptional
nicknamenickname

no description

Unknownoptional
seenseen

no description

Unknownoptional
pseenpseen

no description

Unknownoptional
lastseenlastseen

no description

Unknownoptional
plastseenplastseen

no description

Unknownoptional
deathdeath

no description

Unknownoptional
Clean Death Dategen_death

no description

Unknownoptional
parentsparents

no description

Unknownoptional
Clean Parents Listgen_parents

no description

Unknownoptional
siblingssiblings

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
marital statusmarital status

no description

Unknownoptional
familytreefamilytree

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
sortkeysortkey

no description

Unknownoptional
spoilersspoilers

no description

Unknownoptional