Difference between revisions of "Template:PointOfInterest"

From DDO Compendium
m (Fixed documentation)
 
(45 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|type=
|type=
|location =  
|location =  
|additionallocations=
|entrance=
|entrance=
|sells=
|sells=
|description=
|description=
|notes =  
|notes =  
|notablefeatures=
|exits=
}}
}}
</pre>
</pre>
Line 19: Line 22:
|parameter1name = name
|parameter1name = name
|parameter1description = The name of the point of interest.
|parameter1description = The name of the point of interest.
|parameter1values =
|parameter2name = type
|parameter2name = type
|parameter2description = What type of point is this.
|parameter2description = What type of point is this.
Line 27: Line 29:
* Airship Entrance
* Airship Entrance
* Shop
* Shop
* Inn
* Tavern
* Area
* Area
|parameter3name = location
|parameter3name = location
|parameter3description = A Public Area that this is in.
|parameter3description = A Public Area that this is in. Use [[Template:PageLink]] if the name is not the same as the name of the page.
|parameter3values =
|parameter4name = entrance
|parameter4name = entrance
|parameter4description = Where in the location is the entrance
|parameter4description = Where in the location is the entrance
|parameter4values =
|parameter5name = sells
|parameter5name = sells
|parameter5description = What does this sell if it is a store
|parameter5description = What does this sell if it is a store
|parameter5values =
|parameter6name = description
|parameter6name = description
|parameter6description = Describe the point of interest
|parameter6description = Describe the point of interest
|parameter6values =
|parameter7name = notes
|parameter7name = notes
|parameter7description = Any notes about this NPC.
|parameter7description = Any notes about this POI.
|parameter7values =  
|parameter8name = notablefeatures
|parameter8description = A bulleted list of features of this POI that won't automatically show up (i.e. portals, etc).
|parameter9name= additionallocations
|parameter9description= If there are more than 1 location, enter them here using the {{Template:AdditionalLocations}}
|parameter10name= exits
|parameter10description= Where you can exit
|parameter11name= mapcount
|parameter11description= How many maps for this POI, default is 0
}}
}}
</noinclude>
</noinclude>
<table class="item-table background-color">
<includeonly>
<tr>
<div class="row">
<td class="item-info-side">
<div class="col-sm-8">
<table class="background-color item-info-full">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr><td><table class="center"><tr><td><span class="big">{{{name}}}</span><br/>[[:Category:{{{type}}}s|{{{type}}}]]</td></tr></table></td></tr>
<td>
<tr><td>'''Location:'''  
<table class="background-color item-info-full">
* {{RenderLink|{{{location}}}}}{{#if: {{{additionallocations|}}}|{{{additionallocations}}}}}</td></tr>{{#if: {{{entrance|}}}|<tr><td>'''Entrance:''' {{{entrance}}}</td></tr>}}{{#if: {{{exits|}}}|<tr><td>'''Exits:'''
<tr>
{{WrapMultiLine|{{{exits}}}}}</td></tr>}}{{#if: {{{description|}}}|<tr><td>'''Description:''' {{{description}}}</td></tr>}}{{#if: {{{notes|}}}|<tr><td>'''Notes:''' {{{notes}}}</td></tr>}}{{#if: {{{sells|}}}|<tr><td>'''Sells:'''&nbsp;
<td class="title">
{{{sells}}}</td></tr>}}{{#switch: {{lc:{{{type}}}}}
'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]]
|tavern|area=<tr><td>
</td>
'''Quests:'''
</tr>
<div class="paragraph-body">
</table>
</td>
</tr>
<tr>
<td>
'''Location:''' [[{{{location}}}]]<br>{{#if: {{{entrance|}}}|'''Entrance:''' {{{entrance}}}<br>}}{{#if: {{{description|}}}|'''Description:''' {{{description}}}<br>}}{{#if: {{{notes|}}}|'''Notes:''' {{{notes}}}<br>}}{{#if: {{{sells|}}}|'''Sells:'''&nbsp;
{{{sells}}}<br>}}
{{#switch: {{lc:{{{type}}}}}
|area=<span class="title">Quests</span><br>
{{#dplvar:set|displaystyle|Table}}
{{#dplvar:set|displaystyle|Table}}
{{#DPL:
{{#ifeq: {{FULLPAGENAME}} |Template:PointOfInterest||{{#DPL:
|uses=Template:Quest
|uses=Template:Quest
|linksto={{{name}}}
|linksto={{ARTICLEPAGENAME}}
|notcategory=Historic
|tablesortcol = 1
|tablesortcol = 1
|noresultsheader=None
|noresultsheader=None
Line 77: Line 74:
}}
}}
}}
}}
</td>
}}</td></tr></table></div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<hr/>
</div>
<div class="col-sm-4">
<table class="table table-bordered table-striped table-condensed">
<tr style="background: rgb(0,0,0);background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(17,17,17,1) 1%, rgba(0,0,0,1) 100%);"><td>[[File:{{{name}}}.png|center|350px|]]</td></tr>
{{#ifeq:{{{mapcount|0}}}|0||
<tr>
<td>{{QuestMaps|{{{name}}}|{{{mapcount}}}}}</td>
</tr>
</tr>
</table>
}}
</td>
<td class="item-image-side" style="vertical-align:top">
<table class="item-image-table background-color" >
<tr><td class="item-image">[[File:{{{name}}}.png|upright|]]</td></tr>
<tr>
<tr>
<td class="extra-details">
{{#switch: {{lc:{{{type}}}}}
|shop | inn = <span class="title">NPCs</span><br>
{{#DPL:
|category=NPC in {{{name}}}¦Quest Giver in {{{name}}}¦Vendor in {{{name}}}¦General Vendor in {{{name}}}
|noresultsheader=None
|include={NPC¦BulletedNPC}
}}
| area=
<span class="title">NPCs</span><br>
{{#DPL:
{{#DPL:
|category=NPC in {{{name}}}¦Quest Giver in {{{name}}}¦Vendor in {{{name}}}¦General Vendor in {{{name}}}
|linksto={{ARTICLEPAGENAME}}
|noresultsheader=None
|uses=Template:NPC
|noresultsheader=&nbsp;
|resultsheader=<td><span class="title">NPCs</span><br>
|resultsfooter=</td></tr>
|include={NPC¦BulletedNPC}
|include={NPC¦BulletedNPC}
}}
}}
}}
{{#if: {{{notablefeatures|}}}|
</td>
<tr><td class="extra-details"><span class="title">Notable Features</span>{{WrapMultiLine|{{{notablefeatures}}}}}</td></tr>}}
</tr>
</table>
</td>
</tr>
</table>
</table>
[[Category:{{{type}}}]][[Category: Points of Interest in {{{location}}}]]
</div>
</div>
</includeonly>
[[Category:{{{type}}}s]][[Category:{{{type}}}s in {{{location}}}]]

Latest revision as of 17:06, 22 November 2023


{{Template:PointOfInterest
|name = 
|type=
|location = 
|additionallocations=
|entrance=
|sells=
|description=
|notes = 
|notablefeatures=
|exits=
}}

PointOfInterest[edit]

This template is used to render information about point of interest: Wayward Lobster.

Usage[edit]

Parameter Documentation
nameThe name of the point of interest.
typeWhat type of point is this.
Possible Values:
  • Bank
  • Auction House
  • Airship Entrance
  • Shop
  • Tavern
  • Area
locationA Public Area that this is in. Use Template:PageLink if the name is not the same as the name of the page.
entranceWhere in the location is the entrance
sellsWhat does this sell if it is a store
descriptionDescribe the point of interest
notesAny notes about this POI.
notablefeaturesA bulleted list of features of this POI that won't automatically show up (i.e. portals, etc).
additionallocationsIf there are more than 1 location, enter them here using the
exitsWhere you can exit
mapcountHow many maps for this POI, default is 0

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.



[[Category:{{{type}}}s]][[Category:{{{type}}}s in {{{location}}}]]