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 |...")
 
(type categorizes)
Line 44: Line 44:
--><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:{{{type}}}s]]}}[[:Category:{{{type}}}s|{{{type}}}]]<!--
if type add is given, display after type
-->{{#if:{{{type add|}}}|, {{{type add|}}}|}}<!--
-->|<!--
if no type given, display places of interest category link
-->[[:Category:Place of Interest|Place of Interest]]}}</div><!--
--></div><!--
--></div><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
Line 80: Line 81:
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
{{Place of Interest|nd
{{Place of Interest|nc
| name = Muckvix's Junk Shop
| name = Muckvix's Junk Shop
| image = Muckviks.webp
| image = Muckviks.webp

Revision as of 16:04, 5 August 2024

Usage

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.