Template:TestThisTemplate: Difference between revisions

From HorizonXI Wiki
No edit summary
(finished template testing, cleared page)
Tags: Blanking Manual revert
 
Line 1: Line 1:
<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
| name = {Defaults to the page's name if blank}
| image = {Use the file name e.g. Imagename.png}
| 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]]}
| location = {Area and position where the Place of Interest is found. See Template:Location for further information}
| location add = {additional information about location, e.g. ingame name}
| description = {A short, free-form description of the Place of Interest}
| involved in quests = {Use bullets and line-breaks between each entry eg. * [[Quest Name]]}
| involved in missions = {Use bullets and line-breaks between each entry eg. * [[Mission Name]]}
| involved in events = {Use bullets and line-breaks between each entry eg. * [[Sunbreeze Festival]]}
| notes = {Any additional notes not already covered}
| historical background = {Eg. Myths, legends, pop culture relating to the Place of Interest}
}}
</pre>|disable={{{1|}}}}}}}<!--
-->{{categorize|{{{1|}}}|<!--
-->[[Category:Places of Interest]]<!--
-->{{Categorize Location|location={{{location}}}|category type=Places of Interest}}<!--
-->}}<!--
image
-->[[Image:{{{image}}}|thumb|{{#if:{{{imageheight|}}}|{{{imageheight}}}x}}{{#if:{{{imagewidth|}}}|{{{imageheight}}}|300}}px|{{{name|{{PAGENAME}}}}}]]<!--
--><div style="display:table; margin-bottom:1em;"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Name:</b><!--
--><div style="display:table-cell;">{{#if:{{{name|}}}|<!--
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 style="display:table-row"><!--
--><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|}}}|}}}}|[[Place of Interest]]}}</div><!--
--></div><!--
--><div style="display:table-row"><!--
--><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><!--
--></div><!--
-->{{#if:{{{description|}}}|<div style="margin-bottom:1em">{{{description}}}</div>}}<!--
-->{{#if:{{{notes|}}}|<h3>Notes</h3><div>
{{{notes}}}
</div>}}<!--
-->{{#if:{{{involved in missions|}}}|<h3>Involved in Missions</h3><div>
{{{involved in missions}}}
</div>}}<!--
-->{{#if:{{{involved in quests|}}}|<h3>Involved in Quests</h3><div>
{{{involved in quests}}}
</div>}}<!--
-->{{#if:{{{involved in events|}}}|<h3>Involved in Events</h3><div>
{{{involved in events}}}
</div>}}<!--
-->{{#if:{{{historical background|}}}|<h3>Historical Background</h3><div>
{{{historical background}}}
</div>}}</includeonly></onlyinclude>
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
{{TestThisTemplate|nd
| name = Muckvix's Junk Shop
| image = Muckviks.webp
| location = {{Location|Lower Jeuno|H-9}}
| location add = Lower Level
| type = Shop
| description = A small cluttered shop nestled next to [[Waag-Deeg's Magic Shop]].  The merchants here are ''[[:Category:Goblins|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 [[gobbiebag]]s...  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 [[Guttrix|goblin tailor]].
}}

Latest revision as of 15:54, 5 August 2024