Difference between revisions of "Template:PointOfInterest"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(59 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 15: | Line 18: | ||
|name = PointOfInterest | |name = PointOfInterest | ||
|description = This template is used to render information about point of interest: [[Wayward Lobster]]. | |description = This template is used to render information about point of interest: [[Wayward Lobster]]. | ||
|category=Quest and Area Templates | |||
|usesnamedparameters = true | |usesnamedparameters = true | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = The name of the point of interest. | |parameter1description = The name of the point of interest. | ||
|parameter2name = type | |parameter2name = type | ||
|parameter2description = What type of point is this. | |parameter2description = What type of point is this. | ||
Line 26: | Line 29: | ||
* Airship Entrance | * Airship Entrance | ||
* Shop | * Shop | ||
* | * Tavern | ||
* | * 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. | ||
|parameter4name = entrance | |parameter4name = entrance | ||
|parameter4description = Where in the location is the entrance | |parameter4description = Where in the location is the entrance | ||
|parameter5name = sells | |parameter5name = sells | ||
|parameter5description = What does this sell if it is a store | |parameter5description = What does this sell if it is a store | ||
|parameter6name = description | |parameter6name = description | ||
|parameter6description = | |parameter6description = Describe the point of interest | ||
|parameter7name = notes | |parameter7name = notes | ||
|parameter7description = Any notes about this | |parameter7description = Any notes about this POI. | ||
| | |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=" | <includeonly> | ||
<tr> | <div class="row"> | ||
<td class=" | <div class="col-sm-8"> | ||
<table class=" | <table class="table table-bordered table-striped table-condensed"> | ||
< | <tr><td><table class="center"><tr><td><span class="big">{{{name}}}</span><br/>[[:Category:{{{type}}}s|{{{type}}}]]</td></tr></table></td></tr> | ||
< | <tr><td>'''Location:''' | ||
<table class=" | * {{RenderLink|{{{location}}}}}{{#if: {{{additionallocations|}}}|{{{additionallocations}}}}}</td></tr>{{#if: {{{entrance|}}}|<tr><td>'''Entrance:''' {{{entrance}}}</td></tr>}}{{#if: {{{exits|}}}|<tr><td>'''Exits:''' | ||
{{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:''' | |||
{{{sells}}}</td></tr>}}{{#switch: {{lc:{{{type}}}}} | |||
|tavern|area=<tr><td> | |||
'''Quests:''' | |||
<div class="paragraph-body"> | |||
{{#dplvar:set|displaystyle|Table}} | |||
{{#ifeq: {{FULLPAGENAME}} |Template:PointOfInterest||{{#DPL: | |||
|uses=Template:Quest | |||
|linksto={{ARTICLEPAGENAME}} | |||
|notcategory=Historic | |||
|tablesortcol = 1 | |||
|noresultsheader=None | |||
|include={Quest¦QuestAllDPL} | |||
|table = class="compendiumtable compendiumtablenonsortable fullwidth",-,Lvl,Ep,Quest,Patron,Adventure Pack, Story Arc | |||
}} | |||
}} | |||
}}</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> | <tr> | ||
<td | <td>{{QuestMaps|{{{name}}}|{{{mapcount}}}}}</td> | ||
</td> | |||
</tr> | </tr> | ||
}} | |||
<tr> | <tr> | ||
{{#DPL: | {{#DPL: | ||
| | |linksto={{ARTICLEPAGENAME}} | ||
|noresultsheader= | |uses=Template:NPC | ||
|noresultsheader= | |||
|resultsheader=<td><span class="title">NPCs</span><br> | |||
|resultsfooter=</td></tr> | |||
|include={NPC¦BulletedNPC} | |include={NPC¦BulletedNPC} | ||
}} | }} | ||
< | {{#if: {{{notablefeatures|}}}| | ||
< | <tr><td class="extra-details"><span class="title">Notable Features</span>{{WrapMultiLine|{{{notablefeatures}}}}}</td></tr>}} | ||
</ | |||
</td> | |||
</tr> | |||
</table> | </table> | ||
[[Category:{{{type}}}]] | </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 | |
name | The name of the point of interest. |
type | What type of point is this. Possible Values:
|
location | A Public Area that this is in. Use Template:PageLink if the name is not the same as the name of the page. |
entrance | Where in the location is the entrance |
sells | What does this sell if it is a store |
description | Describe the point of interest |
notes | Any notes about this POI. |
notablefeatures | A bulleted list of features of this POI that won't automatically show up (i.e. portals, etc). |
additionallocations | If there are more than 1 location, enter them here using the |
exits | Where you can exit |
mapcount | How 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}}}]]