Template:Character: Difference between revisions
No edit summary |
m Removed background color to allow dynamic color shift in dark mode. |
||
| (45 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly>{{Infobox<!-- | ||
-->| name = {{{name|}}}<!-- | |||
-->| image = {{{image|}}}<!-- | |||
-->| caption = {{{caption|}}}<!-- | |||
-->| data_rows =<!-- | |||
-->{{#if: {{{born|}}} |<tr class="infobox-data-row"><th>Born</th><td>{{{born}}}</td></tr>}}<!-- | |||
-->{{#if: {{{died|}}} |<tr class="infobox-data-row"><th>Died</th><td>{{{died}}}</td></tr>}}<!-- | |||
-->{{#if: {{{spouse|}}} |<tr class="infobox-data-row"><th>Spouse</th><td>{{{spouse}}}</td></tr>}}<!-- | |||
-->{{#if: {{{parents|}}} |<tr class="infobox-data-row"><th>Parents</th><td>{{{parents}}}</td></tr>}}<!-- | |||
-->{{#if: {{{children|}}} |<tr class="infobox-data-row"><th>Children</th><td>{{{children}}}</td></tr>}}<!-- | |||
-->{{#if: {{{relatives|}}} |<tr class="infobox-data-row"><th>Relatives</th><td>{{{relatives}}}</td></tr>}}<!-- | |||
-->{{#if: {{{profession|}}} |<tr class="infobox-data-row"><th>Profession</th><td>{{{profession}}}</td></tr>}}<!-- | |||
-->{{#if: {{{titles|}}} |<tr class="infobox-data-row"><th>Titles</th><td>{{{titles}}}</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: {{{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: {{{first_mentioned|}}} |<tr class="infobox-data-row"><th>First Mentioned</th><td>{{{first_mentioned}}}</td></tr>}}<!-- | |||
-->{{#if: {{{last_mentioned|}}} |<tr class="infobox-data-row"><th>Last Mentioned</th><td>{{{last_mentioned}}}</td></tr>}} | |||
}}<!-- | |||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Characters]]}}</includeonly><noinclude> | |||
== Description == | |||
This template should be used on character pages to add an infobox in the upper right hand corner of the article. | |||
</ | |||
< | == Usage == | ||
{{Character | This template has several [[:Template:Character#Parameters|parameters]] that can be used. | ||
| name = 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" | |||
|- | |||
! width=50%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left; vertical-align: top;" |<pre> | |||
{{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 | |||
}} | |||
</pre> | |||
|<br>{{character | |||
| name = Example Character Infobox | |||
| image = Beth Brower.jpg | | image = Beth Brower.jpg | ||
| | | caption = Caption Here | ||
| born = Date of Birth | | born = Date of Birth | ||
| died = Date of Death | | died = Date of Death | ||
| Line 110: | Line 65: | ||
| profession = Profession Here | | profession = Profession Here | ||
| titles = Titles Here | | titles = Titles Here | ||
| | | monikers = Monikers Here | ||
| groups = Group Affiliations | | groups = Group Affiliations | ||
| | |residence=Residence Here | ||
| introduced = First Appearance | |||
| first_mentioned = First Mentioned | |||
| last_mentioned = Last Mentioned | | last_mentioned = Last Mentioned | ||
}} | }} | ||
|} | |||
=== Parameters === | === Parameters === | ||
{| class="wikitable" style="width: 65%;" | |||
! Parameter !! Description | |||
|- | |||
| 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., "Example.jpg"). | |||
|- | |||
| style="text-align: center;" | <code>caption</code> || Caption for the image. | |||
|- | |||
| style="text-align: center;" | <code>born</code> || The character's date of birth. | |||
|- | |||
| style="text-align: center;" | <code>died</code> || The character's date of death (if applicable). | |||
|- | |||
| style="text-align: center;" | <code>spouse</code> || The character's spouse (if applicable). | |||
|- | |||
| style="text-align: center;" | <code>parents</code> || The character's parents. | |||
|- | |||
| style="text-align: center;" | <code>children</code> || The character's children. | |||
|- | |||
| style="text-align: center;" | <code>relatives</code> || Other relatives of the character. | |||
|- | |||
| style="text-align: center;" | <code>profession</code> || The character's profession. | |||
|- | |||
| style="text-align: center;" | <code>titles</code> || Titles or honorifics the character holds. | |||
|- | |||
| style="text-align: center;" | <code>monikers</code> || Alternate names or nicknames for the character. | |||
|- | |||
| style="text-align: center;" | <code>groups</code> || Groups or affiliations the character belongs to. | |||
|- | |||
| style="text-align: center;" | <code>introduced</code> || Where the character was first introduced (e.g., book, chapter, etc.). | |||
|- | |||
| style="text-align: center;" | <code>first_mentioned</code> || Where the character was first mentioned (e.g., book, chapter, etc.). | |||
|- | |||
| style="text-align: center;" | <code>last_mentioned</code> || Where the character was last mentioned (e.g., book, chapter, etc.). | |||
|} | |||
== Articles using Template == | |||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} | |||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}} | |||
[[Category: | [[Category:Infoboxes]] | ||