Template:Location: Difference between revisions

From The Reed and Rite
Created page with "<includeonly>{{Infobox<!-- -->| name = {{{name|}}}<!-- -->| image = {{{image|}}}<!-- -->| caption = {{{caption|}}}<!-- -->| data_rows =<!-- -->{{#if: {{{book|}}} |<tr class="infobox-data-row"><th>Book</th><td>{{{book}}}</td></tr>}}<!-- -->{{#if: {{{series|}}} |<tr class="infobox-data-row"><th>Series</th><td>{{{series}}}</td></tr>}}<!-- -->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}<!-- -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|Categ..."
 
mNo edit summary
Line 6: Line 6:
-->{{#if: {{{book|}}} |<tr class="infobox-data-row"><th>Book</th><td>{{{book}}}</td></tr>}}<!--
-->{{#if: {{{book|}}} |<tr class="infobox-data-row"><th>Book</th><td>{{{book}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} |<tr class="infobox-data-row"><th>Series</th><td>{{{series}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} |<tr class="infobox-data-row"><th>Series</th><td>{{{series}}}</td></tr>}}<!--
-->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}<!--
-->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locations]]}}</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 the article.
Line 22: Line 23:
| style="text-align: left; background-color: white; vertical-align: top;" |<pre>
| style="text-align: left; background-color: white; vertical-align: top;" |<pre>
{{location
{{location
| name = Character Name
|name=Character Name
| image = FILENAME.EXTENSION
|image=FILENAME.EXTENSION
| caption = Caption Here
|caption=Caption Here
| born = Date of Birth
|book=Book Name
| died = Date of Death
|series=Series Name
| spouse = Spouse's Name
|city=City 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>
</pre>
| style="background-color: white;" |<br>{{location
| style="background-color: white;" |<br>{{location
| name = Example Character Infobox
|name=Character Name
| image = Map of St. Crispian's.jpg
|image=Map of St. Crispian's.jpg
| caption = Caption Here
|caption=Caption Here
| born = Date of Birth
|book=Book Name
| died = Date of Death
|series=Series Name
| spouse = Spouse's Name
|city=City 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
}}
}}
|}
|}

Revision as of 23:44, 16 April 2025

Description

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

Usage

The template has several parameters that can be used.

Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each character.
You Type You Get
{{location
|name=Character Name
|image=FILENAME.EXTENSION
|caption=Caption Here
|book=Book Name
|series=Series Name
|city=City Name
}}

Character Name
Caption Here
Caption Here
Caption Here
BookBook Name
SeriesSeries Name
CityCity Name

Parameters

Parameter Description
name The character's name.
image Filename of the character's image (e.g., `File: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