Template:Character: Difference between revisions
m Removed background color to allow dynamic color shift in dark mode. |
|||
| (32 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 == | |||
This template has several [[:Template:Character#Parameters|parameters]] that can be used. | |||
: '''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 | | name = Example Character Infobox | ||
| image = Beth Brower.jpg | | image = Beth Brower.jpg | ||
| Line 110: | 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 | |||
| last_mentioned = Last Mentioned | | last_mentioned = Last Mentioned | ||
}} | }} | ||
|} | |||
| | |||
=== Parameters === | === Parameters === | ||
| Line 142: | 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., | | 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 167: | Line 105: | ||
|- | |- | ||
| style="text-align: center;" | <code>introduced</code> || Where the character was first introduced (e.g., book, chapter, etc.). | | 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.). | | style="text-align: center;" | <code>last_mentioned</code> || Where the character was last mentioned (e.g., book, chapter, etc.). | ||
| Line 172: | Line 112: | ||
== Articles using Template == | == 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}} | {{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}} | ||
[[Category: | [[Category:Infoboxes]] | ||