Editing Template:Character Data
Template page
More actions
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:{{{parent 1|}}}|{{#genealogy:parent|{{{parent 1}}}}}}} | |||
{{#if:{{{parent 2|}}}|{{#genealogy:parent|{{{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:{{{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>). | ||
* '''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 | 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. | ||
* '''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. | ||
== | == Example == | ||
<pre> | <pre> | ||
{{Character Data | {{Character Data | ||
| Line 187: | Line 171: | ||
| rank = Captain | | rank = Captain | ||
| actor = [[Richard Hatch]] | | actor = [[Richard Hatch]] | ||
}} | }} | ||
</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 | "parent 1": { "label": "Genealogy Parent 1", "description": "Exact page name." }, | ||
"parent 2": { "label": "Genealogy Parent 2", "description": "Exact page name." }, | |||
" | |||
"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" }, | ||
"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 | "description": "Comprehensive character infobox with Extension:Genealogy support." | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||