Template:Example: Difference between revisions
mNo edit summary |
m Removed background color to allow dynamic color shift in dark mode. |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 18: | Line 18: | ||
-->{{#if: {{{last_mentioned|}}} |<tr class="infobox-data-row"><th>Last Mentioned</th><td>{{{last_mentioned}}}</td></tr>}} | -->{{#if: {{{last_mentioned|}}} |<tr class="infobox-data-row"><th>Last Mentioned</th><td>{{{last_mentioned}}}</td></tr>}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | |||
This template should be used for demonstration purposes only, such as in the Help Guide. It is an exact copy of the Character Template with the category tags removed. | |||
== 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> | |||
{{example | {{example | ||
|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 | |||
|introduced=First Appearance | |||
|first_mentioned=First Mentioned | |||
|last_mentioned=Last Mentioned | |||
}} | |||
</pre> | |||
|<br>{{example | |||
| name = Example Infobox | | name = Example Infobox | ||
| image = | | image = pen.png | ||
| caption = Caption Here | | caption = Caption Here | ||
| born = Date of Birth | | born = Date of Birth | ||
| Line 36: | Line 68: | ||
| last_mentioned = Last Mentioned | | last_mentioned = Last Mentioned | ||
}} | }} | ||
|} | |||
=== Parameters === | === Parameters === | ||
| Line 67: | Line 76: | ||
| 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 92: | Line 101: | ||
|- | |- | ||
| 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 97: | Line 108: | ||
== 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:Infoboxes]] | [[Category:Infoboxes]] | ||
Latest revision as of 22:40, 27 May 2025
Description
This template should be used for demonstration purposes only, such as in the Help Guide. It is an exact copy of the Character Template with the category tags removed.
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 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{example
|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
|introduced=First Appearance
|first_mentioned=First Mentioned
|last_mentioned=Last 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.). |
