Template:Character: Difference between revisions

m Removed background color to allow dynamic color shift in dark mode.
 
(16 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]]