Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Template:Character Data

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
|-
|-
| colspan="2" style="display:none;" |  
| colspan="2" style="display:none;" |  
{{#if:{{{gender|}}}|{{#genealogy:person|gender={{{gender}}}}}}}
{{#if:{{{no_genealogy|}}}||{{#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:{{{gen_birthdate|{{{birthdate|}}}}}}|{{#genealogy:description|{{{gen_birthdate|{{{birthdate}}}}}}}}}}
{{#if:{{{spouse|}}}|{{#genealogy:partner|{{{spouse}}}}}}}
{{#if:{{{spouse1|}}}|{{#genealogy:partner|{{{spouse1}}}}}}}
{{#if:{{{spouse2|}}}|{{#genealogy:partner|{{{spouse2}}}}}}}
{{#if:{{{spouse3|}}}|{{#genealogy:partner|{{{spouse3}}}}}}}
{{#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}}}}}}}
|- class="infoboxheader"
|- class="infoboxheader"
| colspan="2"|
| colspan="2"|
Line 66: Line 57:
| '''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 142: Line 130:
=== Relationships ===
=== Relationships ===
* '''parents / siblings / children''': General lists for the infobox. These allow wikilinks, line breaks, and notes (e.g., <code>†</code>).
* '''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).
* '''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.
* '''familytree''': Set to '''Y''' to add a "View" link that jumps to the article's <code>#Family tree</code> section.
Line 167: Line 154:


=== Genealogy Extension (Automated Trees) ===
=== Genealogy Extension (Automated Trees) ===
These fields are invisible in the infobox but populate the database for <code><nowiki>{{#genealogy:tree ...}}</nowiki></code>.
These fields are invisible in the infobox but populate the database for <code>{{#genealogy:tree ...}}</code>.
* '''gender''': '''M''' or '''F'''. Critical for tree logic and icons.
* '''gender''': '''M''' or '''F'''. Critical for tree logic and icons.
* '''parent 1 / parent 2''': Exact page name of biological parents.
* '''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.
* '''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.
* '''gen_birthdate''': A clean year/date (e.g., <code>31 BCH</code>) to appear inside tree nodes.


== Examples ==
== Example ==
 
=== Basic Character ===
<pre>
<pre>
{{Character Data
{{Character Data
Line 187: Line 171:
| rank      = Captain
| rank      = Captain
| actor      = [[Richard Hatch]]
| actor      = [[Richard Hatch]]
}}
</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>
</pre>
Line 211: Line 183:
"caption 2": {},
"caption 2": {},
"gender": { "label": "Gender (M/F)", "description": "M or F. Required for Genealogy.", "suggested": true },
"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 1": { "label": "Genealogy Parent 1", "description": "Exact page name." },
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name of biological parent." },
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name." },
"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." },
"spouse": { "label": "Genealogy Spouse", "description": "Exact page name." },
"gen_birthdate": { "label": "Clean Birth Date" },
"gen_birthdate": { "label": "Clean Birth Date" },
Line 229: Line 199:
"death": {},
"death": {},
"parents": { "label": "Visual Parents List" },
"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": {},
Line 250: Line 219:
"spoilers": { "description": "Set to Y to hide spoiler rows." }
"spoilers": { "description": "Set to Y to hide spoiler rows." }
},
},
"description": "Comprehensive character infobox with Extension:Genealogy support, including step-relationship tracking."
"description": "Comprehensive character infobox with Extension:Genealogy support."
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).