Template:Character: Difference between revisions

From The Reed and Rite
m Removed background color to allow dynamic color shift in dark mode.
 
(17 intermediate revisions by the same user not shown)
Line 14: Line 14:
-->{{#if: {{{monikers|}}} |<tr class="infobox-data-row"><th>Monikers</th><td>{{{monikers}}}</td></tr>}}<!--
-->{{#if: {{{monikers|}}} |<tr class="infobox-data-row"><th>Monikers</th><td>{{{monikers}}}</td></tr>}}<!--
-->{{#if: {{{groups|}}} |<tr class="infobox-data-row"><th>Groups</th><td>{{{groups}}}</td></tr>}}<!--
-->{{#if: {{{groups|}}} |<tr class="infobox-data-row"><th>Groups</th><td>{{{groups}}}</td></tr>}}<!--
-->{{#if: {{{residence|}}} |<tr class="infobox-data-row"><th>Residence</th><td>{{{residence}}}</td></tr>}}<!--
-->{{#if: {{{introduced|}}} |<tr class="infobox-data-row"><th>Introduced</th><td>{{{introduced}}}</td></tr>}}<!--
-->{{#if: {{{introduced|}}} |<tr class="infobox-data-row"><th>Introduced</th><td>{{{introduced}}}</td></tr>}}<!--
-->{{#if: {{{first_mentioned|}}} |<tr class="infobox-data-row"><th>First Mentioned</th><td>{{{first_mentioned}}}</td></tr>}}<!--
-->{{#if: {{{first_mentioned|}}} |<tr class="infobox-data-row"><th>First Mentioned</th><td>{{{first_mentioned}}}</td></tr>}}<!--
Line 20: Line 21:
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude>
== Description ==
== Description ==
This template should be used on character pages to add an infobox in the upper right hand corner the article.
This template should be used on character pages to add an infobox in the upper right hand corner of the article.


== Usage ==
== Usage ==
The template has several [[:Template:Character#Parameters|parameters]] that can be used.  
This template has several [[:Template:Character#Parameters|parameters]] that can be used.  
: '''Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each character.'''
: '''Note: Only parameters that are provided will appear in the infobox. Not all parameters are required for each character.'''


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
Line 31: Line 32:
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white; vertical-align: top;" |<pre>
| style="text-align: left; vertical-align: top;" |<pre>
{{Character
{{character
| name = Character Name
|name=Character Name
| image = FILENAME.EXTENSION
|image=FILENAME.EXTENSION
| caption = Caption Here
|caption=Caption Here
| born = Date of Birth
|born=Date of Birth
| died = Date of Death
|died=Date of Death
| spouse = Spouse's Name
|spouse=Spouse's Name
| parents = Parent Names
|parents=Parent Names
| children = Children Names
|children=Children Names
| relatives = Relatives Names
|relatives=Relatives Names
| profession = Profession Here
|profession=Profession Here
| titles = Titles Here
|titles=Titles Here
| monikers = Monikers Here
|monikers=Monikers Here
| groups = Group Affiliations
|groups=Group Affiliations
| introduced = First Appearance
|residence=Residence Here
| first_mentioned = First Mentioned
|introduced=First Appearance
| last_mentioned = Last Mentioned
|first_mentioned=First Mentioned
|last_mentioned=Last Mentioned
}}
}}
</pre>
</pre>
| style="background-color: white;" |{{Character
|<br>{{character
| name = Example Character Infobox
| name = Example Character Infobox
| image = Beth Brower.jpg
| image = Beth Brower.jpg
Line 65: Line 67:
| monikers = Monikers Here
| monikers = Monikers Here
| groups = Group Affiliations
| groups = Group Affiliations
|residence=Residence Here
| introduced = First Appearance
| introduced = First Appearance
| first_mentioned = First Mentioned
| first_mentioned = First Mentioned
Line 77: Line 80:
| style="text-align: center;" | <code>name</code> || The character's name.
| style="text-align: center;" | <code>name</code> || The character's name.
|-
|-
| style="text-align: center;" | <code>image</code> || Filename of the character's image (e.g., `File:Example.jpg`).
| style="text-align: center;" | <code>image</code> || Filename of the character's image (e.g., "Example.jpg").
|-
|-
| style="text-align: center;" | <code>caption</code> || Caption for the image.
| style="text-align: center;" | <code>caption</code> || Caption for the image.
Line 109: Line 112:


== Articles using Template ==
== Articles using Template ==
:{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}


[[Category:Infoboxes]]
[[Category:Infoboxes]]

Latest revision as of 22:40, 27 May 2025

Description

This template should be used on character pages to add an infobox in the upper right hand corner of the article.

Usage

This template has several parameters that can be used.

Note: Only parameters that are provided will appear in the infobox. Not all parameters are required for each character.
You Type You Get
{{character
|name=Character Name
|image=FILENAME.EXTENSION
|caption=Caption Here
|born=Date of Birth
|died=Date of Death
|spouse=Spouse's Name
|parents=Parent Names
|children=Children Names
|relatives=Relatives Names
|profession=Profession Here
|titles=Titles Here
|monikers=Monikers Here
|groups=Group Affiliations
|residence=Residence Here
|introduced=First Appearance
|first_mentioned=First Mentioned
|last_mentioned=Last Mentioned
}}

Example Character Infobox
Caption Here
Caption Here
Caption Here
BornDate of Birth
DiedDate of Death
SpouseSpouse's Name
ParentsParent Names
ChildrenChildren Names
RelativesRelatives Names
ProfessionProfession Here
TitlesTitles Here
MonikersMonikers Here
GroupsGroup Affiliations
ResidenceResidence Here
IntroducedFirst Appearance
First MentionedFirst Mentioned
Last MentionedLast Mentioned

Parameters

Parameter Description
name The character's name.
image Filename of the character's image (e.g., "Example.jpg").
caption Caption for the image.
born The character's date of birth.
died The character's date of death (if applicable).
spouse The character's spouse (if applicable).
parents The character's parents.
children The character's children.
relatives Other relatives of the character.
profession The character's profession.
titles Titles or honorifics the character holds.
monikers Alternate names or nicknames for the character.
groups Groups or affiliations the character belongs to.
introduced Where the character was first introduced (e.g., book, chapter, etc.).
first_mentioned Where the character was first mentioned (e.g., book, chapter, etc.).
last_mentioned Where the character was last mentioned (e.g., book, chapter, etc.).

Articles using Template