Actions

Template

Infobox character: Difference between revisions

From The Canon of Nora Wiki

No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 300px; font-size: 90%; float: right; clear: right; margin: 0 0 1em 1em;"
<noinclude>
|-
{{#cargo_declare:
! colspan="2" style="text-align:center; font-size: 150%;" | {{{name|{{PAGENAME}}}}}
_table=Characters
|-
|Name=String
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|200px]]|''No image available''}}
|Aliases=Text
|-
|Occupation=String
! colspan="2" style="background:#cccccc;" | Overview
|HomeLocation=Page
|-
|FirstAppearance=Page
| '''Aliases''' || {{{aliases|}}}
|Series=Page
|-
|Books=Text
| '''Occupation''' || {{{occupation|}}}
|Partner=List (,) of Page
|-
|Family=List (,) of Page
| '''First appearance''' || {{{first_appearance|}}}
|Allies=List (,) of Page
|-
}}
! colspan="2" style="background:#cccccc;" | Appearances
</noinclude><includeonly>
|-
{{#cargo_store:
| '''Series''' || {{{series|}}}
_table=Characters
|-
|Name={{{name|{{PAGENAME}}}}}
| '''Books''' || {{{books|}}}
|Aliases={{{aliases|}}}
|-
|Occupation={{{occupation|}}}
! colspan="2" style="background:#cccccc;" | Relationships
|HomeLocation={{{home_location|}}}
|-
|FirstAppearance={{{first_appearance|}}}
| '''Romantic partner(s)''' || {{{partner|}}}
|Series={{{series|}}}
|-
|Books={{{books|}}}
| '''Family''' || {{{family|}}}
|Partner={{{partner|}}}
|-
|Family={{{family|}}}
| '''Friends/Allies''' || {{{allies|}}}
|Allies={{{allies|}}}
|}
}}
[[Category:Characters]]{{#if:{{{series|}}}|[[Category:{{{series}}} characters]]|}}</includeonly><noinclude>
 
== Usage ==
<table class="infobox character-infobox">
<pre>
<tr>
{{Infobox character
<th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th>
| name            = Eve Dallas
</tr>
| image           =
 
| aliases          = Lieutenant Dallas
{{#if:{{{image|}}}|
| occupation      = NYPSD Lieutenant, Homicide
<tr>
| first_appearance = Naked in Death
<td colspan="2" class="infobox-image">[[File:{{{image}}}|250px]]</td>
| series          = In Death
</tr>
| books            = In Death #1–present
| partner          = [[Roarke]] (husband)
| family          =
| allies          = [[Delia Peabody]], [[Ian McNab]]
}}
}}
</pre>
<noinclude>Like the book infobox, this uses ParserFunctions (`{{#if:}}`). If that
extension isn't enabled, delete the auto-categorization line and
add the category "Characters" manually to each character page instead.


This is meant to grow loosely -- not every field will apply to every
{{#if:{{{aliases|}}}|
character (a one-book side character won't have much under
<tr>
"Appearances," for instance). Leave fields blank rather than guessing;
<th>Aliases</th>
this is exactly the kind of page where community/manual editing is the
<td>{{{aliases}}}</td>
point, not automation.
</tr>
</noinclude>
}}
 
{{#if:{{{occupation|}}}|
<tr>
<th>Occupation</th>
<td>{{{occupation}}}</td>
</tr>
}}
 
{{#if:{{{home_location|}}}|
<tr>
<th>Home location</th>
<td>[[{{{home_location}}}]]</td>
</tr>
}}
 
{{#if:{{{first_appearance|}}}|
<tr>
<th>First appearance</th>
<td>[[{{{first_appearance}}}]]</td>
</tr>
}}
 
{{#if:{{{series|}}}|
<tr>
<th>Series</th>
<td>[[{{{series}}}]]</td>
</tr>
}}
 
{{#if:{{{books|}}}|
<tr>
<th>Books</th>
<td>{{{books}}}</td>
</tr>
}}
 
{{#if:{{{partner|}}}|
<tr>
<th>Partner</th>
<td>{{{partner}}}</td>
</tr>
}}
 
{{#if:{{{family|}}}|
<tr>
<th>Family</th>
<td>{{{family}}}</td>
</tr>
}}
 
{{#if:{{{allies|}}}|
<tr>
<th>Allies</th>
<td>{{{allies}}}</td>
</tr>
}}
</table>
</includeonly>

Latest revision as of 15:41, 6 July 2026

This template defines the table "Characters". This table has not been created yet.