Template:Place of Interest: Difference between revisions

From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly>__NOTOC__<!-- Cheat sheet that is only visible during preview -->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre>{{Place of Interest | name = | image = | type = | type add = | location = | location add = | description = | involved in quests = | involved in missions = | involved in events = | notes = | historical background = }} </pre>|disable={{{1|}}}}}<!-- -->|#default={{Preview Only Infobox|<pre>{{Place of Interest |...")
 
m (use of plural template to generate plural of place of interest type correctly)
 
(11 intermediate revisions by the same user not shown)
Line 5: Line 5:
| name =  
| name =  
| image =  
| image =  
| imagecaption =
| image 2 =
| imagecaption 2 =
| type =  
| type =  
| type add =  
| type add =  
Line 20: Line 23:
| name = {Defaults to the page's name if blank}
| name = {Defaults to the page's name if blank}
| image = {Use the file name e.g. Imagename.png}
| image = {Use the file name e.g. Imagename.png}
| imagecaption = {optional. If you want to display a different caption than the name of the location}}
| image 2 = {Filename of a second image}
| imagecaption 2 = {optional. If you want to display a different caption than the name of the location}}
| type = {Place of Interest type eg. Shop or Guild. Defaults to "Place of Interest" if left blank. Auto-categorizes}
| type = {Place of Interest type eg. Shop or Guild. Defaults to "Place of Interest" if left blank. Auto-categorizes}
| type add = {Any addition to type. Can be linked via [[name]]}
| type add = {Any addition to type. Can be linked via [[name]]}
Line 39: Line 45:


image
image
-->[[Image:{{{image}}}|thumb|{{#if:{{{imageheight|}}}|{{{imageheight}}}x}}{{#if:{{{imagewidth|}}}|{{{imageheight}}}|300}}px|{{{name|{{PAGENAME}}}}}]]<!--
-->{{#if:{{{image|}}}<!--
-->|[[Image:{{{image}}}|thumb|{{#if:{{{imageheight|}}}|{{{imageheight}}}x}}{{#if:{{{imagewidth|}}}|{{{imageheight}}}|300}}px|{{#if:{{{imagecaption|}}}|{{{imagecaption}}}|{{{name|{{PAGENAME}}}}}}}]]<!--
image 2
-->{{#if:{{{image 2|}}}<!--
-->|[[Image:{{{image 2}}}|thumb|{{#if:{{{imageheight 2|}}}|{{{imageheight 2}}}x}}{{#if:{{{imagewidth 2|}}}|{{{imageheight 2}}}|300}}px|{{#if:{{{imagecaption 2|}}}|{{{imagecaption 2}}}|{{{name|{{PAGENAME}}}}}}}]]<!--
-->}}<!--
-->|{{Image-stub|{{{1|}}}}}<!--
-->}}<!--


--><div style="display:table; margin-bottom:1em;"><!--
--><div style="display:table; margin-bottom:1em;"><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Name:</b><!--
--><b style="display:table-cell; padding-right:0.5em;">Name:</b><!--
--><div style="display:table-cell;">{{#if:{{{name|}}}|<!--
--><div style="display:table-cell;">{{{name|{{PAGENAME}}}}}</div><!--
If name field is given, then: if name is equal to pagename then just put the name, otherwise...
-->{{#ifeq:{{{name}}}|{{PAGENAME}}|{{{name}}}|<!--
... check if the name exists as a page. If so, put a link, if not, put the name in plain font.
-->{{#ifexist:{{{name}}}|[[{{{name}}}]]|{{{name}}}}}}}|<!--
else (if the name field isnt given) then put the pagename. there is nothing else to put.
-->{{PAGENAME}}}}</div><!--
--></div><!--
--></div><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Type:</b><!--
--><b style="display:table-cell; padding-right:0.5em;">Type:</b><!--
--><div style="display:table-cell;">{{#if:{{{type|}}}|{{#ifexist: {{{type}}}|{{categorize|{{{1|}}}|[[Category:{{{type}}}s]]}}[[{{{type}}}]]{{#if:{{{type add|}}}|, {{{type add|}}}|}}|{{{type}}}{{#if:{{{type add|}}}|, {{{type add|}}}|}}}}|[[:Category:Place of Interest|Place of Interest]]}}</div><!--
--><div style="display:table-cell;">{{#if:{{{type|}}}<!--
if type is given, then categorize and display
-->|{{categorize|{{{1|}}}|[[Category:{{Plural|{{{type}}}}}]]}}[[:Category:{{Plural|{{{type}}}}}|{{{type}}}]]<!--
if type add is given, display after type
-->{{#if:{{{type add|}}}|&nbsp;({{{type add|}}})|}}<!--
if no type given, display places of interest category link
-->|[[:Category:Places of Interest|Place of Interest]]}}</div><!--
--></div><!--
--></div><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Location:</b><!--
--><b style="display:table-cell; padding-right:0.5em;">Location:</b><!--
--><div style="display:table-cell;">{{default|{{{location|}}}|{{Information Needed|{{{1|}}}}}}}{{#if:{{{location add|}}}|, {{{location add}}}}}</div><!--
--><div style="display:table-cell;">{{#if:{{{location|}}}<!--
if location is given, then display (categorization is on top of the page)
-->|{{{location}}}<!--
if location add is given, display after location
-->{{#if:{{{location add|}}}|, {{{location add}}}}}<!--
if no location is given, display information needed
-->|{{Information Needed|{{{1|}}}}}}}</div><!--
--></div><!--
--></div><!--
--></div><!--
--></div><!--
Line 80: Line 99:
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
{{Place of Interest|nd
===Documentation===
This template is designed to be used on [[:Category:Places of Interest]] pages to display various information about the place.
 
{{Preview_Only_Infobox/Documentation}}
 
*'''name''': Name of the place
*'''image''': Filename of an image of the place. You can change the default size with '''imageheight''' and '''imagewidth''' parameters and add a caption different to the name of the place with the '''imagecaption''' parameter.
*'''image 2''': Filename of another image of the place. You can change the default size with '''imageheight 2''' and '''imagewidth 2''' parameters and add a caption different to the name of the place with the '''imagecaption 2''' parameter.
*'''type:''' The place's type, e.g. "Shop" or "Guild".
*'''type add:''' Any addition to type
*'''location:''' Area and position where the place is found. See [[Template:Location]].
*'''description:''' A short, free-form description of the place.
*'''starts quests:''' A list of [[quest]]s that start at this place.
*'''starts missions:''' A list of [[mission]]s that start at this place.
*'''involved in quests:''' A list of [[quest]]s that the place is involved in.
*'''involved in missions:''' A list of [[mission]]s that the place is involved in.
*'''involved in events:''' A list of [[Special Event|special event]]s that the place is involved in.
*'''notes:''' Any additional notes about this place that are not covered in other sections.
*'''historical background:''' Any background information that is relevant to this place, such as myths, legends, or pop culture that may have inspired aspects of this place.
 
 
===Examples===
{{Place of Interest|nc
| name = Muckvix's Junk Shop
| name = Muckvix's Junk Shop
| image = Muckviks.webp
| image = Muckviks.webp

Latest revision as of 23:50, 29 August 2024

Usage

Documentation

This template is designed to be used on Category:Places of Interest pages to display various information about the place.

Template:Preview Only Infobox/Documentation

  • name: Name of the place
  • image: Filename of an image of the place. You can change the default size with imageheight and imagewidth parameters and add a caption different to the name of the place with the imagecaption parameter.
  • image 2: Filename of another image of the place. You can change the default size with imageheight 2 and imagewidth 2 parameters and add a caption different to the name of the place with the imagecaption 2 parameter.
  • type: The place's type, e.g. "Shop" or "Guild".
  • type add: Any addition to type
  • location: Area and position where the place is found. See Template:Location.
  • description: A short, free-form description of the place.
  • starts quests: A list of quests that start at this place.
  • starts missions: A list of missions that start at this place.
  • involved in quests: A list of quests that the place is involved in.
  • involved in missions: A list of missions that the place is involved in.
  • involved in events: A list of special events that the place is involved in.
  • notes: Any additional notes about this place that are not covered in other sections.
  • historical background: Any background information that is relevant to this place, such as myths, legends, or pop culture that may have inspired aspects of this place.


Examples

Muckvix's Junk Shop
Name:
Muckvix's Junk Shop
Type:
Location:
Lower Jeuno (H-9), Lower Level
A small cluttered shop nestled next to Waag-Deeg's Magic Shop. The merchants here are goblins against all chance. The Dutchy has granted them amnesty so long as they mind their own business and don't start trouble. They sell items not seen anywhere else, and they all sport enviously large gobbiebags... In the very back of the shop they have a small eatery, the "Goblins' Goblet", employing a goblin cook, as well as a very skilled goblin tailor.