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 1: | Line 1: | ||
<includeonly | <includeonly>{{#if:{{{gender|}}}|{{#genealogy:person|gender={{{gender}}}}}}} | ||
{{#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="infobox" cellspacing="5" | {| class="infobox" cellspacing="5" | ||
|- class="infoboxheader" | |- class="infoboxheader" | ||
| Line 10: | Line 19: | ||
| style="text-align: center;" | '''{{{title|{{PAGENAME}}}}}''' | | style="text-align: center;" | '''{{{title|{{PAGENAME}}}}}''' | ||
|} | |} | ||
{{#if:{{{photo|}}}| | |- | ||
{{!}} colspan="2" style="text-align: center;" {{!}} | {{#if:{{{photo|}}}| | ||
{{!}} colspan="2" style="text-align: center;" {{!}} [[File:{{{photo}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption|}}}|<br/> {{{caption}}}|}} | |||
}} | |||
|- {{#if:{{{spoilers|}}}||style="display:none;"}} | |- {{#if:{{{spoilers|}}}||style="display:none;"}} | ||
| colspan="2" style="text-align:center;" | <span class="mw-customtoggle-infobox" style="color: var(--color-link); cursor: pointer;">[show/hide spoilers]</span><br/><small>Spoilers hidden in infobox by default.</small> | | colspan="2" style="text-align:center;" | <span class="mw-customtoggle-infobox" style="color: var(--color-link); cursor: pointer;">[show/hide spoilers]</span><br/><small>Spoilers hidden in infobox by default.</small> | ||
| Line 41: | Line 52: | ||
| {{{nickname}}} | | {{{nickname}}} | ||
|- style="vertical-align: top; text-align: left;" {{#if:{{{seen|}}}{{{seenref|}}}||style="display:none;"}} | |- style="vertical-align: top; text-align: left;" {{#if:{{{seen|}}}{{{seenref|}}}||style="display:none;"}} | ||
| style="white-space: nowrap;" | ''' | | style="white-space: nowrap;" | '''Introduced''' | ||
| {{#if:{{{seenref|}}}|{{{seenref}}}|{{#if:{{{pseen|}}}|[[{{{seen}}}|{{{pseen}}}]]|[[{{{seen}}}]]}}}} | | {{#if:{{{seenref|}}}|{{{seenref}}}|{{#if:{{{pseen|}}}|[[{{{seen}}}|{{{pseen}}}]]|[[{{{seen}}}]]}}}} | ||
|- style="vertical-align: top; text-align: left;" {{#if: | |- style="vertical-align: top; text-align: left;" {{#if:{{{lastseen|}}}{{{lastseenref|}}}|id="mw-customcollapsible-infobox" class="{{#if:{{{spoilers|}}}|mw-collapsible mw-collapsed|}}"|style="display:none;"}} | ||
| '''Last Appearance''' | | '''Last Appearance''' | ||
| {{#if:{{{lastseenref|}}}|{{{lastseenref}}}|{{#if:{{{plastseen|}}}|[[{{{lastseen}}}|{{{plastseen}}}]]|[[{{{lastseen}}}]]}}}} | | {{#if:{{{lastseenref|}}}|{{{lastseenref}}}|{{#if:{{{plastseen|}}}|[[{{{lastseen}}}|{{{plastseen}}}]]|[[{{{lastseen}}}]]}}}} | ||
| Line 105: | Line 116: | ||
{{#if:{{{primecon|}}}| | {{#if:{{{primecon|}}}| | ||
{{!}} colspan="2" {{!}} [[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]] | {{!}} colspan="2" {{!}} [[{{{primecon title|{{{title|{{PAGENAME}}}}} {{#if:{{{series|}}}|({{{series|}}})|}}}}}|{{#if:{{{primecon title|}}}|{{#explode:{{{primecon title}}}|(|0}}|{{{title|{{PAGENAME}}}}}}} in the primary continuity]] | ||
}} | |||
|- | |||
{{#if:{{{photo 2|}}}| | |||
{{!}} colspan="2" style="text-align: center;" {{!}} [[File:{{{photo 2}}}|300px|{{{title|{{PAGENAME}}}}}]] {{#if:{{{caption 2|}}}|<br/> {{{caption 2}}}|}} | |||
}} | }} | ||
|- | |- | ||
| Line 111: | Line 126: | ||
}} | }} | ||
|}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly><noinclude> | |}{{#if:{{{sortkey|}}}|{{DEFAULTSORT:{{{sortkey}}}}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
= Documentation = | = Documentation = | ||
| Line 120: | Line 136: | ||
* '''title''': The name displayed at the top. Defaults to the page name. | * '''title''': The name displayed at the top. Defaults to the page name. | ||
* '''series / series 2 / series 3''': Determines which series icons (e.g., RDM, TOS, CAP) appear in the header. Supports up to three icons for characters appearing across multiple continuities. | * '''series / series 2 / series 3''': Determines which series icons (e.g., RDM, TOS, CAP) appear in the header. Supports up to three icons for characters appearing across multiple continuities. | ||
* '''photo / photo 2 | * '''photo / photo 2''': The filename of the character image(s). | ||
* '''caption / caption 2''': The text displayed directly beneath the photo(s). | |||
* '''caption / caption 2 | |||
* '''sortkey''': Used for category alphabetization (e.g., <code>Adama, William</code>). | * '''sortkey''': Used for category alphabetization (e.g., <code>Adama, William</code>). | ||
* '''spoilers''': Set to **Y** to wrap sensitive rows (Death, Last Appearance, etc.) in a collapsible spoiler toggle. | * '''spoilers''': Set to **Y** to wrap sensitive rows (Death, Last Appearance, etc.) in a collapsible spoiler toggle. | ||
| Line 170: | Line 185: | ||
These fields populate the database for <code><nowiki>{{#genealogy:tree}}</nowiki></code>. | These fields populate the database for <code><nowiki>{{#genealogy:tree}}</nowiki></code>. | ||
* '''gender''': **M** or **F**. Required for icons. | * '''gender''': **M** or **F**. Required for icons. | ||
* '''parent 1 / parent 2''': Exact page names of biological parents. | * '''parent 1 / parent 2''': Exact page names of biological parents. | ||
* '''step_parent 1 / step_parent 2''': Exact page names of step-parents. | * '''step_parent 1 / step_parent 2''': Exact page names of step-parents. | ||
| Line 182: | Line 196: | ||
"title": { "label": "Title", "description": "Defaults to PAGENAME" }, | "title": { "label": "Title", "description": "Defaults to PAGENAME" }, | ||
"photo": { "type": "wiki-file-name", "label": "Main Image" }, | "photo": { "type": "wiki-file-name", "label": "Main Image" }, | ||
"photo 2": { "type": "wiki-file-name", "label": "Secondary Image" }, | |||
"caption": { "label": "Caption" }, | "caption": { "label": "Caption" }, | ||
"caption 2": { "label": "Secondary Caption" }, | |||
"caption 2": { "label": " | |||
"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": { "type": "wiki-page-name", "label": "Genealogy Parent 1" }, | "parent 1": { "type": "wiki-page-name", "label": "Genealogy Parent 1" }, | ||
| Line 218: | Line 223: | ||
"lastseenref": { "label": "Last Appearance Custom Ref" }, | "lastseenref": { "label": "Last Appearance Custom Ref" }, | ||
"death": { "label": "Death" }, | "death": { "label": "Death" }, | ||
"parents": { "label": "Visual Parents List" }, | "parents": { "label": "Visual Parents List" }, | ||
"step_parents": { "label": "Visual Step-Parents List" }, | "step_parents": { "label": "Visual Step-Parents List" }, | ||