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)
mNo 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><noinclude>
|}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly>
<noinclude>
= Documentation =
= Documentation =
This template is used to place character info on a Battlestar Wiki article.
This template is used to place character info on a Battlestar Wiki article.
== Genealogy Extension Features ==
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.
* '''gen_parents''': A comma-separated list of exact Page Names for the parents (e.g. <code>Joseph Adama, Shannon Adama</code>).
* '''gen_birthdate / gen_death''': A clean year or date (e.g. <code>69 BCH</code>) without extra text like "approx" or "(31YR)".


== Usage ==
== Usage ==
Line 123: Line 131:
  | birthname=
  | birthname=
  | birthdate=
  | birthdate=
| gen_birthdate=
  | callsign=
  | callsign=
  | nickname=
  | nickname=
Line 130: Line 139:
  | plastseen=  
  | plastseen=  
  | death=
  | death=
| gen_death=
  | parents=
  | parents=
| gen_parents=
  | siblings=
  | siblings=
  | children=
  | children=
Line 152: Line 163:


=== Optional parameters ===
=== Optional parameters ===
* '''gender''': M or F. Required for correct Genealogy tree rendering.
* '''title''': If different from the article name.
* '''parents''': List of parent page names, comma-separated (e.g., Joseph Adama, Evelyn Adama).
* '''photo''': The filename of the photo.
* '''birthdate''': Use YYYY-MM-DD for best results with Extension:Genealogy.
* '''gender''': '''M''' or '''F'''. Critical for Genealogy extension icons.
* '''familytree''': Set to '''Y''' if a family tree section exists. Use <code><genealogy /></code> in that section.
* '''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.


... [Rest of your documentation here] ...
[[Category:Infobox|Character]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]


<templatedata>
<templatedata>
Line 164: Line 180:
"title": {},
"title": {},
"photo": {
"photo": {
"type": "wiki-file-name"
},
"photo 2": {
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"caption": {},
"caption": {},
"name": {},
"caption 2": {},
"gender": {
"gender": {
"label": "Gender",
"label": "Gender",
"description": "Required for Genealogy extension (M or F).",
"description": "M or F. Required for Genealogy extension trees.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"cylon": {},
"age": {},
"age": {},
"colony": {},
"colony": {},
Line 180: Line 198:
"birthname": {},
"birthname": {},
"birthdate": {
"birthdate": {
"description": "Format: YYYY-MM-DD for genealogy indexing."
"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": {},
"seen": {},
"seen": {},
"seenref": {},
"pseen": {},
"pseen": {},
"lastseen": {},
"lastseen": {},
"lastseenref": {},
"plastseen": {},
"plastseen": {},
"death": {
"death": {
"description": "Date/Episode of death."
"description": "Visual death info display."
},
"gen_death": {
"label": "Clean Death Date",
"description": "Clean year/date for Genealogy engine.",
"type": "string"
},
},
"parents": {
"parents": {
"description": "Comma-separated list of parent page names."
"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": {},
Line 200: Line 231:
"marital status": {},
"marital status": {},
"familytree": {
"familytree": {
"description": "Set to Y to enable genealogy tree features."
"description": "Set to Y to show the 'View' link."
},
},
"role": {},
"role": {},
"rank": {},
"rank": {},
"serial": {},
"serial": {},
"actor": {},
"actor": {
"type": "string"
},
"cylon": {},
"5cylon": {},
"5cylon": {},
"hcylon": {},
"hcylon": {},
"mcylon": {},
"mcylon": {},
"archives": {},
"media": {},
"sepcon": {},
"sepcon": {},
"primecon": {},
"primecon": {},
"sepcon title": {},
"series": {},
"series": {},
"primecon title": {},
"photo 2": {
"type": "wiki-file-name"
},
"caption 2": {},
"sortkey": {},
"sortkey": {},
"spoilers": {}
"spoilers": {}
},
},
"description": "Creates an infobox for characters with Genealogy extension support.",
"description": "Infobox for character data with integrated Genealogy extension support.",
"paramOrder": [
"paramOrder": [
"title",
"title",
"photo",
"photo",
"caption",
"caption",
"name",
"gender",
"gender",
"cylon",
"age",
"age",
"colony",
"colony",
Line 236: Line 260:
"birthname",
"birthname",
"birthdate",
"birthdate",
"gen_birthdate",
"callsign",
"callsign",
"nickname",
"nickname",
"seen",
"seen",
"seenref",
"pseen",
"pseen",
"lastseen",
"lastseen",
"lastseenref",
"plastseen",
"plastseen",
"death",
"death",
"gen_death",
"parents",
"parents",
"gen_parents",
"siblings",
"siblings",
"children",
"children",
Line 254: Line 279:
"serial",
"serial",
"actor",
"actor",
"cylon",
"5cylon",
"5cylon",
"hcylon",
"hcylon",
"mcylon",
"mcylon",
"archives",
"media",
"sepcon",
"sepcon",
"primecon",
"primecon",
"sepcon title",
"series",
"series",
"primecon title",
"photo 2",
"photo 2",
"caption 2",
"caption 2",
Line 270: Line 292:
]
]
}
}
</templatedata></noinclude>
</templatedata>
</noinclude>

Revision as of 19:18, 27 December 2025


Documentation

This template is used to place character info on a Battlestar Wiki article.

Genealogy Extension Features

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.
  • gen_parents: A comma-separated list of exact Page Names for the parents (e.g. Joseph Adama, Shannon Adama).
  • gen_birthdate / gen_death: A clean year or date (e.g. 69 BCH) without extra text like "approx" or "(31YR)".

Usage

{{Character Data
 | title=
 | photo=
 | photo 2=
 | 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=
}}

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. c. 69 BCH (31YR)).
  • gen_birthdate: The clean date for the database (e.g. 31 BCH).
  • parents: The parents as they appear in the infobox (e.g. Joseph Adama (father)).
  • 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 <genealogy /> tag in the article's Family Tree section.

Infobox for character data with integrated Genealogy extension support.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

no description

Unknownoptional
photophoto

no description

Fileoptional
captioncaption

no description

Unknownoptional
Gendergender

M or F. Required for Genealogy extension trees.

Stringsuggested
ageage

no description

Unknownoptional
colonycolony

no description

Unknownoptional
birthplacebirthplace

no description

Unknownoptional
birthnamebirthname

no description

Unknownoptional
birthdatebirthdate

Visual birthdate display.

Unknownoptional
Clean Birthdategen_birthdate

Clean year/date for Genealogy engine (e.g. 69 BCH).

Stringoptional
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

Visual death info display.

Unknownoptional
Clean Death Dategen_death

Clean year/date for Genealogy engine.

Stringoptional
parentsparents

Visual parents display (allows tags/icons).

Unknownoptional
Clean Parents Listgen_parents

Comma-separated page names for Genealogy engine (e.g. Joseph Adama, Shannon Adama).

Stringoptional
siblingssiblings

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
marital statusmarital status

no description

Unknownoptional
familytreefamilytree

Set to Y to show the 'View' link.

Unknownoptional
rolerole

no description

Unknownoptional
rankrank

no description

Unknownoptional
serialserial

no description

Unknownoptional
actoractor

no description

Stringoptional
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 2photo 2

no description

Fileoptional
caption 2caption 2

no description

Unknownoptional
sortkeysortkey

no description

Unknownoptional
spoilersspoilers

no description

Unknownoptional