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 1: Line 1:
<includeonly>{| class="infobox" cellspacing="5"
<includeonly>{{#if:{{{gender|}}}|{{#genealogy:gender={{{gender}}}}}}}|}}{{| class="infobox" cellspacing="5"
|-class="infoboxheader"
|-class="infoboxheader"
| colspan="2"|
| colspan="2"|
Line 5: Line 5:
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
|- style="text-align: left; font-size: larger;" cellpadding="0" cellspacing="0" width="100%"
| width="27" | {{Series Icon|series={{{series|}}}}}
| width="27" | {{Series Icon|series={{{series|}}}}}
| width="{{#if:{{{series 2|}}}|27|0}}" | {{#if:{{{series 2|}}}|{{Series Icon|series={{{series 2|}}}}}|<!--null-->}}
| width="{{#if:{{{series 2|}}}|27|0}}" | {{#if:{{{series 2|}}}|{{Series Icon|series={{{series 2|}}}}}|}}
| width="{{#if:{{{series 3|}}}|27|0}}" | {{#if:{{{series 3|}}}|{{Series Icon|series={{{series 3|}}}}}|<!--null-->}}
| width="{{#if:{{{series 3|}}}|27|0}}" | {{#if:{{{series 3|}}}|{{Series Icon|series={{{series 3|}}}}}|}}
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
| style="text-align: center;" width="95%" | '''{{{title|{{PAGENAME}}}}}'''
|}
|}
Line 38: Line 38:
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthdate|}}}|Y|}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{birthdate|}}}|Y|}}"
| style="white-space: nowrap;" | '''Birth Date'''  
| style="white-space: nowrap;" | '''Birth Date'''  
| {{{birthdate}}}
| {{#if:{{{birthdate|}}}|{{#genealogy:birth_date={{{birthdate}}}}}|{{{birthdate|}}}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{callsign|}}}|Y|}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{callsign|}}}|Y|}}"
| '''Callsign'''
| '''Callsign'''
Line 53: Line 53:
|- style="vertical-align: top; text-align: left;" {{#if:{{{death|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{death|}}}|Y|}}"
|- style="vertical-align: top; text-align: left;" {{#if:{{{death|}}}|id="mw-customcollapsible-infobox"|}} class="{{#if:{{{spoilers|}}}|{{void}}|mw-collapsible mw-collapsed}} hiddenStructure{{#if:{{{death|}}}|Y|}}"
| '''Death'''
| '''Death'''
| {{{death}}}
| {{#if:{{{death|}}}|{{#genealogy:death_date={{{death}}}}}|{{{death|}}}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{parents|}}}|Y|}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{#if:{{{parents|}}}|Y|}}"
| '''Parents'''
| '''Parents'''
| {{{parents}}}
| {{#if:{{{parents|}}}|{{#genealogy:parents={{{parents}}}}}|{{{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 97: Line 97:
! class="infoboxheader"  colspan="2" | Additional Information
! class="infoboxheader"  colspan="2" | Additional Information
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{sepcon|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{sepcon|}}}|Y|}}"
| colspan="2"| {{#if:{{{sepcon|}}}|[[{{{sepcon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}} alternate)|(alternate)}}}}}|{{#if:{{{sepcon title|}}}|{{#explode:{{{sepcon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the separate continuity]]|{{void}}}}
| colspan="2"| {{#if:{{{sepcon|}}}|[[{{{sepcon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{{series|}}} alternate)|(alternate)}}}}}|{{#if:{{{sepcon title|}}}|{{#explode:{{{sepcon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the separate continuity]]|{{void}}}}
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{primecon|}}}|Y|}}"
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{#if:{{{primecon|}}}|Y|}}"
| colspan="2"| {{#if:{{{primecon|}}}|[[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]]|{{void}}}}
| colspan="2"| {{#if:{{{primecon|}}}|[[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]]|{{void}}}}
|- 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. It provides lower case parameters only.
This template is used to place character info on a Battlestar Wiki article.


== Usage ==
== Usage ==
Line 116: Line 115:
  | caption=
  | caption=
  | caption 2=
  | caption 2=
| gender=
  | age=
  | age=
  | colony=
  | colony=
Line 150: Line 150:


=== Optional parameters ===
=== Optional parameters ===
* '''title''': If different from the article name.
* '''gender''': M or F. Required for correct Genealogy tree rendering.
* '''photo''': The filename of the photo.
* '''parents''': List of parent page names, comma-separated (e.g., Joseph Adama, Evelyn Adama).
* '''photo 2''': The file name for a second photo, which goes on the bottom of the infobox.
* '''birthdate''': Use YYYY-MM-DD for best results with Extension:Genealogy.
* '''caption''': The caption of the first photo.
* '''familytree''': Set to '''Y''' if a family tree section exists. Use <code><genealogy /></code> in that section.
* '''caption 2''': The caption of the second photo.
* '''age''': The approximate age of the character.
* '''[[Colonies|colony]]''': The character's home colony.
* '''birthplace''': If the character was not born on one of [[The Twelve Colonies]], then use this parameter instead of "colony".
* '''birthname''': The full birthname of the character.
* '''birthdate''': The date of birth. Approximate. Link to a [[Timeline]] page if needed.
* '''callsign''': The character's "callsign" if he or she is a pilot.
* '''nickname''': The character's "nickname" if applicable.
* '''seen''': The episode in which the character first appears. Do not wikify.
* '''pseen''': If the episode name is different than the article name, this is what will displayed. Do not wikify.
* '''death''': When, Where, and How they died. Please wikify the episode.
* '''parents''': Who are their parents.
* '''siblings''': Who is related to them.
* '''children''': How many children does this character have.
* '''marital status''': What's their current marital status.
* '''familytree''': Set this to '''Y''' if they have a family tree. The section in the article should be <code>Family tree</code>.
* '''role''': Current job or position.
* '''rank''': Current rank if in the military.
* '''serial''': Serial number, if in the military.
* '''actor''': Actor/actress who plays this character. Please wikify.
* '''name''': If the character is a Cylon, this is their human name. For example, "[[Sharon Valerii]]" for [[Number Eight]].
* '''sortkey''': This tells the category system where this entry should go. (For [[William Adama]], the sortkey would be "Adama, William"—without quotes—thus telling the software to alphabetize by his last name.)
 
==== RDM ====
* '''cylon''': Insert '''Y''' to indicate that this character is a Cylon.
* '''5cylon''': Insert '''Y''' to indicate that this character is a member of the [[Final Five]].
* '''hcylon''': Insert '''Y''' to indicate that this character is a Cylon Hybrid.
 
==== TOS ====
* '''mcylon''': Insert '''Y''' to indicate that this character is a Cylon.
 
==== Separate Continuity ====
 
* '''sepcon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Separate continuity|separate continuity]] article is available on the subject.
* '''sepcon title''': The name of the article on the subject in the separate continuity. Do not encase in any link syntax.
** ''Note:'' Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example: <code>Vella (TOS alternate reality)</code> will only print <code>Vella</code>. It will '''not affect''' the actual link itself, only the '''printed output''' in the template.
* '''series''': Insert the series acronym that the separate continuity is a part of.  Values are '''TOS''', '''1980''', and '''RDM'''.
: '''Note:''' This is only for articles where the name crosses more than one continuity. For instance, "Boxey" is both a character in the Original Series as well as the Re-imagined Series. So an article on Boxey in the separate continuity material for the Original Series would use the "TOS" acronym, and thus would facilitate a link to [[Boxey (TOS alternate)]].
 
==== Primary Continuity ====
 
: ''This is meant for articles on ''separate continuity'' characters, i.e. {{alt|Daniel Novacek}}.''
 
* '''primecon''': Insert '''Y''' to indicate that a [[Battlestar Wiki:Canon|primary continuity]] article is available on the subject.
* '''primecon title''': The name of the article on the subject in the primary continuity. Do not encase in any link syntax.
** ''Note:'' Anything encased in parentheses will be "piped," thus anything including or after the "(" will be ignored when outputting a name, just like an automatically piped link. Example: <code>Adama (TOS)</code> will only print <code>Adama</code>. It will '''not affect''' the actual link itself, only the '''printed output''' in the template.
* '''series''': Insert the series acronym that the primary continuity is a part of.  Values are '''TOS''', '''1980''', and '''RDM'''.
: '''Note:''' This is only for articles where the name crosses more than one continuity. For instance, "Boxey" is both a character in the Original Series as well as the Re-imagined Series. So an article on Boxey in the primary continuity material for the Original Series would use the "TOS" acronym, and thus would facilitate a link to [[Boxey (TOS)]].
 
[[Category:Infobox|Character]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[de:Vorlage:Charakterdaten]]
 
[[fr:Modèle:Infobox Personnage]]


... [Rest of your documentation here] ...


<templatedata>
<templatedata>
Line 220: Line 166:
"caption": {},
"caption": {},
"name": {},
"name": {},
"gender": {
"label": "Gender",
"description": "Required for Genealogy extension (M or F).",
"type": "string",
"suggested": true
},
"cylon": {},
"cylon": {},
"age": {},
"age": {},
Line 225: Line 177:
"birthplace": {},
"birthplace": {},
"birthname": {},
"birthname": {},
"birthdate": {},
"birthdate": {
"description": "Format: YYYY-MM-DD for genealogy indexing."
},
"callsign": {},
"callsign": {},
"nickname": {},
"nickname": {},
Line 231: Line 185:
"seenref": {},
"seenref": {},
"pseen": {},
"pseen": {},
"death": {},
"lastseen": {},
"parents": {},
"lastseenref": {},
"plastseen": {},
"death": {
"description": "Date/Episode of death."
},
"parents": {
"description": "Comma-separated list of parent page names."
},
"siblings": {},
"siblings": {},
"children": {},
"children": {},
"marital status": {},
"marital status": {},
"familytree": {},
"familytree": {
"description": "Set to Y to enable genealogy tree features."
},
"role": {},
"role": {},
"rank": {},
"rank": {},
Line 256: Line 219:
"caption 2": {},
"caption 2": {},
"sortkey": {},
"sortkey": {},
"lastseen": {},
"lastseenref": {},
"plastseen": {},
"spoilers": {}
"spoilers": {}
},
},
"description": "Creates an infobox for characters.",
"description": "Creates an infobox for characters with Genealogy extension support.",
"paramOrder": [
"paramOrder": [
"title",
"title",
Line 267: Line 227:
"caption",
"caption",
"name",
"name",
"gender",
"cylon",
"cylon",
"age",
"age",

Revision as of 18:58, 27 December 2025


Documentation

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

Usage

{{Character Data
 | title=
 | photo=
 | photo 2=
 | caption=
 | caption 2=
 | gender=
 | age=
 | colony=
 | birthplace=
 | birthname=
 | birthdate=
 | callsign=
 | nickname=
 | seen=
 | pseen=
 | lastseen=
 | plastseen= 
 | death=
 | parents=
 | siblings=
 | children=
 | marital status=
 | familytree=
 | role=
 | rank=
 | serial=
 | actor=
 | cylon=
 | 5cylon=
 | hcylon=
 | mcylon=
 | sepcon=
 | primecon=
 | series=
 | name=
 | sortkey=
}}

Optional parameters

  • gender: M or F. Required for correct Genealogy tree rendering.
  • parents: List of parent page names, comma-separated (e.g., Joseph Adama, Evelyn Adama).
  • birthdate: Use YYYY-MM-DD for best results with Extension:Genealogy.
  • familytree: Set to Y if a family tree section exists. Use <genealogy /> in that section.

... [Rest of your documentation here] ...

Creates an infobox for characters with Genealogy extension support.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

no description

Unknownoptional
photophoto

no description

Fileoptional
captioncaption

no description

Unknownoptional
namename

no description

Unknownoptional
Gendergender

Required for Genealogy extension (M or F).

Stringsuggested
cyloncylon

no description

Unknownoptional
ageage

no description

Unknownoptional
colonycolony

no description

Unknownoptional
birthplacebirthplace

no description

Unknownoptional
birthnamebirthname

no description

Unknownoptional
birthdatebirthdate

Format: YYYY-MM-DD for genealogy indexing.

Unknownoptional
callsigncallsign

no description

Unknownoptional
nicknamenickname

no description

Unknownoptional
seenseen

no description

Unknownoptional
seenrefseenref

no description

Unknownoptional
pseenpseen

no description

Unknownoptional
lastseenlastseen

no description

Unknownoptional
lastseenreflastseenref

no description

Unknownoptional
plastseenplastseen

no description

Unknownoptional
deathdeath

Date/Episode of death.

Unknownoptional
parentsparents

Comma-separated list of parent page names.

Unknownoptional
siblingssiblings

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
marital statusmarital status

no description

Unknownoptional
familytreefamilytree

Set to Y to enable genealogy tree features.

Unknownoptional
rolerole

no description

Unknownoptional
rankrank

no description

Unknownoptional
serialserial

no description

Unknownoptional
actoractor

no description

Unknownoptional
5cylon5cylon

no description

Unknownoptional
hcylonhcylon

no description

Unknownoptional
mcylonmcylon

no description

Unknownoptional
archivesarchives

no description

Unknownoptional
mediamedia

no description

Unknownoptional
sepconsepcon

no description

Unknownoptional
primeconprimecon

no description

Unknownoptional
sepcon titlesepcon title

no description

Unknownoptional
seriesseries

no description

Unknownoptional
primecon titleprimecon title

no description

Unknownoptional
photo 2photo 2

no description

Fileoptional
caption 2caption 2

no description

Unknownoptional
sortkeysortkey

no description

Unknownoptional
spoilersspoilers

no description

Unknownoptional