Template:Character Data: Difference between revisions
More actions
mNo edit summary |
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. | * '''title''': If different from the article name. | ||
* '''parents''': | * '''photo''': The filename of the photo. | ||
* ''' | * '''gender''': '''M''' or '''F'''. Critical for Genealogy extension icons. | ||
* '''familytree''': Set to '''Y''' if a family tree | * '''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 164: | Line 180: | ||
"title": {}, | "title": {}, | ||
"photo": { | "photo": { | ||
"type": "wiki-file-name" | |||
}, | |||
"photo 2": { | |||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"caption": {}, | "caption": {}, | ||
" | "caption 2": {}, | ||
"gender": { | "gender": { | ||
"label": "Gender", | "label": "Gender", | ||
"description": "Required for Genealogy extension | "description": "M or F. Required for Genealogy extension trees.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"age": {}, | "age": {}, | ||
"colony": {}, | "colony": {}, | ||
| Line 180: | Line 198: | ||
"birthname": {}, | "birthname": {}, | ||
"birthdate": { | "birthdate": { | ||
"description": " | "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": {}, | ||
"pseen": {}, | "pseen": {}, | ||
"lastseen": {}, | "lastseen": {}, | ||
"plastseen": {}, | "plastseen": {}, | ||
"death": { | "death": { | ||
"description": "Date/ | "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 | "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 | "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": {}, | ||
"sepcon": {}, | "sepcon": {}, | ||
"primecon": {}, | "primecon": {}, | ||
"series": {}, | "series": {}, | ||
"sortkey": {}, | "sortkey": {}, | ||
"spoilers": {} | "spoilers": {} | ||
}, | }, | ||
"description": " | "description": "Infobox for character data with integrated Genealogy extension support.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"title", | "title", | ||
"photo", | "photo", | ||
"caption", | "caption", | ||
"gender", | "gender", | ||
"age", | "age", | ||
"colony", | "colony", | ||
| Line 236: | Line 260: | ||
"birthname", | "birthname", | ||
"birthdate", | "birthdate", | ||
"gen_birthdate", | |||
"callsign", | "callsign", | ||
"nickname", | "nickname", | ||
"seen", | "seen", | ||
"pseen", | "pseen", | ||
"lastseen", | "lastseen", | ||
"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", | ||
"sepcon", | "sepcon", | ||
"primecon", | "primecon", | ||
"series", | "series", | ||
"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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | no description | Unknown | optional |
| photo | photo | no description | File | optional |
| caption | caption | no description | Unknown | optional |
| Gender | gender | M or F. Required for Genealogy extension trees. | String | suggested |
| age | age | no description | Unknown | optional |
| colony | colony | no description | Unknown | optional |
| birthplace | birthplace | no description | Unknown | optional |
| birthname | birthname | no description | Unknown | optional |
| birthdate | birthdate | Visual birthdate display. | Unknown | optional |
| Clean Birthdate | gen_birthdate | Clean year/date for Genealogy engine (e.g. 69 BCH). | String | 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 |
| plastseen | plastseen | no description | Unknown | optional |
| death | death | Visual death info display. | Unknown | optional |
| Clean Death Date | gen_death | Clean year/date for Genealogy engine. | String | optional |
| parents | parents | Visual parents display (allows tags/icons). | Unknown | optional |
| Clean Parents List | gen_parents | Comma-separated page names for Genealogy engine (e.g. Joseph Adama, Shannon Adama). | String | optional |
| siblings | siblings | no description | Unknown | optional |
| children | children | no description | Unknown | optional |
| marital status | marital status | no description | Unknown | optional |
| familytree | familytree | Set to Y to show the 'View' link. | Unknown | optional |
| role | role | no description | Unknown | optional |
| rank | rank | no description | Unknown | optional |
| serial | serial | no description | Unknown | optional |
| actor | actor | no description | String | 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 2 | photo 2 | no description | File | optional |
| caption 2 | caption 2 | no description | Unknown | optional |
| sortkey | sortkey | no description | Unknown | optional |
| spoilers | spoilers | no description | Unknown | optional |