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: {{{location|}}} |<tr class="infobox-data-row"><th>Location</th><td>{{{location}}}</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: {{{county|}}} |<tr class="infobox-data-row"><th>County</th><td>{{{county}}}</td></tr>}}<!--
-->{{#if: {{{region|}}} |<tr class="infobox-data-row"><th>Region</th><td>{{{region}}}</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: {{{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: {{{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: {{{founder|}}} |<tr class="infobox-data-row"><th>Founder</th><td>{{{founder}}}</td></tr>}}<!--
-->{{#if: {{{function|}}} |<tr class="infobox-data-row"><th>Function</th><td>{{{function}}}</td></tr>}}<!--
-->{{#if: {{{notable_residents|}}} |<tr class="infobox-data-row"><th>Notable Residents</th><td>{{{notable_residents}}}</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>}}<!--
Line 35: Line 37:
|book=Book Title
|book=Book Title
|series=Series Title
|series=Series Title
|located_in =Location Name
|location=Location Name
|city=City Name
|city=City Name
|county=County Name
|region=Region Name
|region=Region Name
|country=Country Name
|country=Country Name
|established=Year Established
|established=Year Established
|founder=Founder
|founder=Founder
|function=Primary Function (Reserved for buildings.)
|notable_residents=Notable Residents
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
|first_mentioned=First Mentioned
Line 51: Line 55:
|book=Book Title
|book=Book Title
|series=Series Title
|series=Series Title
|located_in =Location Name
|location=Location Name
|city=City Name
|city=City Name
|county=County Name
|region=Region Name
|region=Region Name
|country=Country Name
|country=Country Name
|established=Year Established
|established=Year Established
|founder=Founder
|founder=Founder
|function=Primary Function (Reserved for buildings.)
|notable_residents=Notable Residents
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
|first_mentioned=First Mentioned
Line 72: Line 78:
| style="text-align: center;" | <code>caption</code> || Caption for the image.
| style="text-align: center;" | <code>caption</code> || Caption for the image.
|-
|-
| style="text-align: center;" | <code>born</code> || The character's date of birth.
| style="text-align: center;" | <code>book</code> || What book the location is from. Use abbreviation(s) from [[:Template:B]].
|-
|-
| style="text-align: center;" | <code>died</code> || The character's date of death (if applicable).
| style="text-align: center;" | <code>series</code> || What series the location is from. Use abbreviation(s) from [[:Template:B]].
|-
|-
| style="text-align: center;" | <code>spouse</code> || The character's spouse (if applicable).
| style="text-align: center;" | <code>location</code> || Where it is located, if applicable.
|-
|-
| style="text-align: center;" | <code>parents</code> || The character's parents.
| style="text-align: center;" | <code>city</code> || The city it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>children</code> || The character's children.
| style="text-align: center;" | <code>county</code> || The county it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>relatives</code> || Other relatives of the character.
| style="text-align: center;" | <code>region</code> || The region it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>profession</code> || The character's profession.
| style="text-align: center;" | <code>country</code> || The country it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>titles</code> || Titles or honorifics the character holds.
| style="text-align: center;" | <code>established</code> || The year it was established, if applicable.
|-
|-
| style="text-align: center;" | <code>monikers</code> || Alternate names or nicknames for the character.
| style="text-align: center;" | <code>founder</code> || The name of the founder, if applicable.
|-
|-
| style="text-align: center;" | <code>groups</code> || Groups or affiliations the character belongs to.
| style="text-align: center;" | <code>function</code> || It's primary function, if applicable. (i.e., Bookshop, Bakery, Tea House, 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 location was first mentioned (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.).
|}
|}



Revision as of 02:15, 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
|location=Location Name
|city=City Name
|county=County Name
|region=Region Name
|country=Country Name
|established=Year Established
|founder=Founder
|function=Primary Function (Reserved for buildings.)
|notable_residents=Notable Residents
|first_mentioned=First Mentioned
}}

Location Name
Caption Here
Caption Here
Caption Here
BookBook Title
SeriesSeries Title
LocationLocation Name
CityCity Name
CountyCounty Name
RegionRegion Name
CountryCountry Name
EstablishedYear Established
FounderFounder
FunctionPrimary Function (Reserved for buildings.)
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.
book What book the location is from. Use abbreviation(s) from Template:B.
series What series the location is from. Use abbreviation(s) from Template:B.
location Where it is located, if applicable.
city The city it is located in, if applicable.
county The county it is located in, if applicable.
region The region it is located in, if applicable.
country The country it is located in, if applicable.
established The year it was established, if applicable.
founder The name of the founder, if applicable.
function It's primary function, if applicable. (i.e., Bookshop, Bakery, Tea House, etc.)
first_mentioned Where the location was first mentioned (e.g., book, chapter, etc.).

Articles using Template