Template:Location: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 6: Line 6:
-->{{#if: {{{book|}}} | <tr class="infobox-data-row"><th>Book</th><td>{{#if:{{b|{{{book}}}}} | ''[[{{b|{{{book}}}}}|{{b|{{{book}}}|text=y}}]]'' | {{{book}}}}}</td></tr>}}<!--
-->{{#if: {{{book|}}} | <tr class="infobox-data-row"><th>Book</th><td>{{#if:{{b|{{{book}}}}} | ''[[{{b|{{{book}}}}}|{{b|{{{book}}}|text=y}}]]'' | {{{book}}}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} | <tr class="infobox-data-row"><th>Series</th><td>{{#if:{{b|{{{series}}}}} | ''[[{{b|{{{series}}}}}|{{b|{{{series}}}|text=y}}]]'' | {{{series}}}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} | <tr class="infobox-data-row"><th>Series</th><td>{{#if:{{b|{{{series}}}}} | ''[[{{b|{{{series}}}}}|{{b|{{{series}}}|text=y}}]]'' | {{{series}}}}}</td></tr>}}<!--
-->{{#if: {{{located_in|}}} |<tr class="infobox-data-row"><th>Located In</th><td>{{{located_in}}}</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>}}<!--
-->{{#if: {{{region|}}} |<tr class="infobox-data-row"><th>Region</th><td>{{{region}}}</td></tr>}}<!--
-->{{#if: {{{country|}}} |<tr class="infobox-data-row"><th>Country</th><td>{{{country}}}</td></tr>}}<!--
-->{{#if: {{{established|}}} |<tr class="infobox-data-row"><th>Established</th><td>{{{established}}}</td></tr>}}<!--
-->{{#if: {{{founder|}}} |<tr class="infobox-data-row"><th>Founder</th><td>{{{founder}}}</td></tr>}}<!--
-->{{#if: {{{notable_residents|}}} |<tr class="infobox-data-row"><th>Notable Residents</th><td>{{{notable_residents}}}</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>}}<!--
-->}}<!--
-->}}<!--
-->{{#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 location pages to add an infobox in the upper right hand corner the article.


== Usage ==
== Usage ==
The template has several [[:Template:Character#Parameters|parameters]] that can be used.  
The template has several [[:Template:Location#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 fields that are provided will appear in the infobox. Not all parameters are required for each location.'''


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
Line 24: Line 30:
| 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=Location Name
|image=FILENAME.EXTENSION
|image=FILENAME.EXTENSION
|caption=Caption Here
|caption=Caption Here
|book=Book Name
|book=Book Title
|series=Series Name
|series=Series Title
|located_in =Location Name
|city=City Name
|city=City Name
|region=Region Name
|country=Country Name
|established=Year Established
|founder=Founder
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
}}
}}
</pre>
</pre>
| style="background-color: white;" |<br>{{location
| style="background-color: white;" |<br>{{location
|name=Character Name
|name=Location Name
|image=Map of St. Crispian's.jpg
|image=Map of St. Crispian's.jpg
|caption=Caption Here
|caption=Caption Here
|book=Book Title
|book=Book Title
|series=Series Title
|series=Series Title
|located_in =Location Name
|city=City Name
|city=City Name
|region=Region Name
|country=Country Name
|established=Year Established
|founder=Founder
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
|first_mentioned=First Mentioned
}}
}}

Revision as of 01:55, 17 April 2025

Description

This template should be used on location 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 location.
You Type You Get
{{location
|name=Location Name
|image=FILENAME.EXTENSION
|caption=Caption Here
|book=Book Title
|series=Series Title
|located_in =Location Name
|city=City Name
|region=Region Name
|country=Country Name
|established=Year Established
|founder=Founder
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
}}

Location Name
Caption Here
Caption Here
Caption Here
BookBook Title
SeriesSeries Title
Located InLocation Name
CityCity Name
RegionRegion Name
CountryCountry Name
EstablishedYear Established
FounderFounder
Notable ResidentsNotable Residents
First MentionedFirst Mentioned

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