Template:NPC infobox: Difference between revisions
mNo edit summary |
No edit summary |
||
(46 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
<p class="image_wrapper">[[File:{{{image}}}| | <p class="image_wrapper">[[File:{{#if:{{{image|}}}|{{{image}}}|{{#if:{{{level|}}}|{{PAGENAME}}-{{{level}}}.png|{{PAGENAME}}.png}}}}|{{#if:{{{image-size|}}}|{{#switch:{{lc:{{{image-size|}}}}}|tall=x250px|wide=250px}}|250px}}|center]]</p> | ||
{{#if:{{{challenging|}}}|<p style="text-align:center;font-size:.8em;">[[File:Quest done icon.gif|15px]]''May be challenging compared to monsters of similar level.''</p>}} | {{#if:{{{challenging|}}}|<p style="text-align:center;font-size:.8em;">[[File:Quest done icon.gif|15px]]''May be challenging compared to monsters of similar level.''</p>}} | ||
;Race | ;Race | ||
:{{{race}}}[[Category:{{{race}}}]]{{#if:{{{level|}}}| | :[[:Category:{{{race}}}|{{{race}}}]][[Category:{{{race}}}]]{{#if:{{{class|}}}| | ||
;Class | |||
:[[{{{class}}}]]}}{{#if:{{{level|}}}| | |||
;Level | ;Level | ||
:{{{level}}}}}{{#if:{{{rank|}}}| | :{{{level}}}{{#switch:{{lc:{{{rank}}}}} | ||
|world boss= | |||
|#default={{#ifeq:{{lc:{{{race|}}}}}|jar||[[Category:Level {{{level}}} monsters]]}}}}}}{{#if:{{{rank|}}}| | |||
;Rank | ;Rank | ||
:{{#switch:{{lc:{{{rank}}}}}|world boss=World boss[[Category:World boss]]|area boss=Area boss[[Category:Area boss]]|#default=Normal}}}}{{#if:{{{aggressive|}}}| | :{{#switch:{{lc:{{{rank}}}}}|world boss=[[World boss]][[Category:World boss]]|area boss=[[Area boss]][[Category:Area boss]]|#default=Normal}}}}<!--disabled {{#if:{{{aggressive|}}}| | ||
;Aggressive | ;Aggressive | ||
:{{{aggressive}}}}}{{#if:{{{holds-aggro|}}}| | :{{{aggressive}}}}}{{#if:{{{holds-aggro|}}}| | ||
;Holds aggro | ;Holds aggro | ||
:{{{holds-aggro}}}}} | :{{{holds-aggro}}}}}-->{{#if:{{{map|}}}| | ||
;Location | ;Location(s) | ||
:[[{{{location1}}}]] {{#if:{{{location2|}}}|[[{{{location2}}}]]}} {{#if:{{{location3|}}}|[[{{{location3}}}]]}} {{#if:{{{location4|}}}|[[{{{location4}}}]]}} {{#if:{{{location5|}}}|[[{{{location5}}}]]}}{{#if:{{{goal|}}}| | :{{#if:{{{location1|}}}|[[{{{location1}}}]]<p style="font-size:.9em;">([[{{{map|Map required}}}]])</p>|{{#if:{{{map|}}}|[[{{{map}}}]] | ||
|Map required}}}}}}{{#if:{{{location2|}}}| | |||
; | |||
:[[{{{location2}}}]]<p style="font-size:.9em;">([[{{{map2|Map required}}}]])</p>|{{#if:{{{map2|}}}|[[{{{map2}}}]]}}}} {{#if:{{{location3|}}}| | |||
; | |||
:[[{{{location3}}}]]}} {{#if:{{{location4|}}}| | |||
; | |||
:[[{{{location4}}}]]}} {{#if:{{{location5|}}}| | |||
; | |||
:[[{{{location5}}}]]}}{{#if:{{{goal|}}}| | |||
;Part of | ;Part of | ||
: | :{{{goal}}}}}{{#if:{{{service|}}}| | ||
;Services | ;Services | ||
:[[{{{service}}}]][[Category:{{{service}}}]] | :[[{{{service}}}]][[Category:{{{service}}}]]}}{{#if:{{{id|}}}| | ||
;id | ;id | ||
:{{{id}}}}} | :{{{id}}}}} | ||
Line 38: | Line 49: | ||
<p style="font-size:.9em;">{{{gallery-text4|Click to enlarge.}}}</p>}}{{#if:{{{gallery5|}}}|[[File:{{{gallery5}}}|200px]] | <p style="font-size:.9em;">{{{gallery-text4|Click to enlarge.}}}</p>}}{{#if:{{{gallery5|}}}|[[File:{{{gallery5}}}|200px]] | ||
<p style="font-size:.9em;">{{{gallery-text5|Click to enlarge.}}}</p>}} | <p style="font-size:.9em;">{{{gallery-text5|Click to enlarge.}}}</p>}} | ||
{{!}}} | |||
| {{clear}} }}{{#if:{{{map|}}}| | |||
{{{!}} style="width:100%" | |||
{{!}}{{#if:{{{N-coord|}}}||+ <span style="color:#F00">'''''Missing coordinates.'''''</span>[[Category:NPC pages missing coordinates]]}} | |||
{{!}}- | |||
{{!}} | |||
{{Interactive map | |||
|map={{{map|}}} | |||
|N={{{N-coord|}}} | |||
|E={{{E-coord|}}} | |||
|name={{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | |||
|description= | |||
|radius={{{radius|}}} | |||
|center={{#if:{{{N-coord|}}}||{{{location1|}}}}} | |||
|circle=on | |||
|zoom={{{zoom|}}} | |||
|height=250 | |||
|width= | |||
}} | |||
<div style="text-align:center">''Interactive map of {{{map}}}''</div> | |||
{{!}}} | |||
| {{clear}} }}{{#if:{{{map2|}}}| | |||
{{{!}} style="width:100%" | |||
{{!}}{{#if:{{{N-coord2|}}}||+ <span style="color:#F00">'''''Missing coordinates.'''''</span>[[Category:NPC pages missing coordinates]]}} | |||
{{!}}- | |||
{{!}} | |||
{{Interactive map | |||
|map={{{map2|}}} | |||
|N={{{N-coord2|}}} | |||
|E={{{E-coord2|}}} | |||
|name={{#if:{{{name2|}}}|{{{name2}}}|{{PAGENAME}}}} | |||
|description= | |||
|radius={{{radius2|}}} | |||
|center={{#if:{{{N-coord2|}}}||{{{location2|}}}}} | |||
|circle=on | |||
|zoom={{{zoom2|}}} | |||
|height=250 | |||
|width= | |||
}} | |||
<div style="text-align:center">''Interactive map of {{{map2}}}''</div> | |||
{{!}}} | {{!}}} | ||
| {{clear}} }} | | {{clear}} }} | ||
[[Category:NPC]] | [[Category:NPC]] | ||
{{#if:{{{map|}}}|{{#if:{{{location1|}}}|[[Category:{{{location1}}}]]|[[Category:{{{map}}}]]}}|{{clear}}}} | |||
{{#if:{{{map2|}}}|{{#if:{{{location2|}}}|[[Category:{{{location2}}}]]|[[Category:{{{map2}}}]]}}|{{clear}}}} | |||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
== Description == | == Description == | ||
Line 50: | Line 103: | ||
|icon= | |icon= | ||
|image= | |image= | ||
|image-size= | |||
|race= | |race= | ||
|level= | |level= | ||
Line 55: | Line 109: | ||
|aggressive= | |aggressive= | ||
|holds-aggro= | |holds-aggro= | ||
|map= | |||
|location1...location5= | |location1...location5= | ||
|N-coord= | |||
|E-coord= | |||
|radius= | |||
|zoom= | |||
|goal= | |goal= | ||
|service= | |service= | ||
|id= | |id= | ||
|gallery1...gallery5= | |gallery1...gallery5= | ||
Line 68: | Line 126: | ||
; icon : Optional. Include if NPC has a unique icon, like a shop or quest giver. | ; icon : Optional. Include if NPC has a unique icon, like a shop or quest giver. | ||
; image : Required. Image of the NPC. | ; image : Required. Image of the NPC. | ||
; image-size : Optional. Include if NPC image is much taller than it is wide. Options: tall, wide. Defaults to ''wide''. | |||
; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list. | ; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list. | ||
; level : Optional. The level or levels of the NPC. | ; level : Optional. The level or levels of the NPC. | ||
Line 74: | Line 133: | ||
; aggressive : Optional. Include if NPC is naturally aggressive. Options: yes, no | ; aggressive : Optional. Include if NPC is naturally aggressive. Options: yes, no | ||
; holds-aggro : Optional. Include if NPC can lose aggro or stays focused on original target. Options: yes, no | ; holds-aggro : Optional. Include if NPC can lose aggro or stays focused on original target. Options: yes, no | ||
; map : Required. Include world or instance map this NPC spawns in. Options: | |||
:: Glorious Imperial Territory | |||
:: Idios | |||
:: Depthless Orifice | |||
:: Great Rebellion | |||
:: Snow Storm | |||
:: The Forest of the Abandoned | |||
:: The Valley Of Blood | |||
; location1...location5 : Required. The area(s) or zone(s) the NPC can be found. Separate additional locations with location2, location3, etc. | ; location1...location5 : Required. The area(s) or zone(s) the NPC can be found. Separate additional locations with location2, location3, etc. | ||
; goal : Optional. Specific quest or challenge this NPC is affiliated with. If entering multiple goals, put each new goal on a new line. | ; N-coord : Optional. In-game N coordinate (N from world map, or y from /location). | ||
; E-coord : Optional. In-game E coordinate (E from world map, or x from /location). | |||
; radius : Optional. Include to increase circle radius (min. 1). | |||
; zoom : Optional. Include to adjust the default zoom level. Low number zooms out, higher number zooms in. | |||
; goal : Optional. Specific quest or challenge this NPC is affiliated with. Include wikilinks <code><nowiki>[[]]</nowiki></code> If entering multiple goals, put each new goal on a new line with <code><nowiki><br></nowiki></code>. | |||
; service : Optional. The service provided by the NPC. Options: | ; service : Optional. The service provided by the NPC. Options: | ||
::Apprentice Blacksmith | ::Apprentice Blacksmith | ||
Line 96: | Line 167: | ||
::Summoned guardian | ::Summoned guardian | ||
::Stat Reset | ::Stat Reset | ||
; | ; id : Optional. NPC asset id from Editor. | ||
; gallery1...gallery5 : Optional. Images related to the NPC. | ; gallery1...gallery5 : Optional. Images related to the NPC. | ||
; gallery-text1...gallery-text5 : Optional. Image descriptions. | ; gallery-text1...gallery-text5 : Optional. Image descriptions. | ||
== Example == | == Example == | ||
<pre> | |||
{{NPC infobox | {{NPC infobox | ||
|name=La Bark | |name=La Bark | ||
|image=Boss-labark.png | |image=Boss-labark.png | ||
|race= | |race=Wolf | ||
|level=31 | |level=31 | ||
|rank=world boss | |rank=world boss | ||
| | |map=Depthless Orifice/All | ||
| | |location1= | ||
| | |N-coord=80 | ||
|E-coord=739 | |||
}} | }} | ||
{{NPC infobox | {{NPC infobox | ||
|name= | |name=Fog Wolf | ||
|image= | |image=Fog Wolf-18.png | ||
|race= | |race=Wolf | ||
|level= | |level=18 | ||
|rank= | |rank=normal | ||
|location1= | |map=Idios | ||
| | |location1=Silent Woods | ||
| | |N-coord= | ||
|E-coord= | |||
|radius= | |||
}} | }} | ||
</pre> | </pre> | ||
== TODO == | == TODO == | ||
:*Add properties to parameters | :*Add properties to parameters | ||
:*Add difficulty parameter | :*Add difficulty parameter |
Latest revision as of 21:26, 10 October 2024
Description
This is the NPC infobox template. It should be transcluded in the following format:
{{NPC infobox |name= |icon= |image= |image-size= |race= |level= |rank= |aggressive= |holds-aggro= |map= |location1...location5= |N-coord= |E-coord= |radius= |zoom= |goal= |service= |id= |gallery1...gallery5= |gallery-text1...gallery-text5= }}
Parameters
- name
- Optional. Only include if the name of the NPC differs from the article name. Defaults to the name of the article:
{{PAGENAME}}
- icon
- Optional. Include if NPC has a unique icon, like a shop or quest giver.
- image
- Required. Image of the NPC.
- image-size
- Optional. Include if NPC image is much taller than it is wide. Options: tall, wide. Defaults to wide.
- race
- Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list.
- level
- Optional. The level or levels of the NPC.
- rank
- Optional. Should be one of the following: World boss, Area boss. Defaults to normal
- challenging
- Optional. Include only if NPC is normal rank, but considered significantly more difficult than other monsters of the same level.
- aggressive
- Optional. Include if NPC is naturally aggressive. Options: yes, no
- holds-aggro
- Optional. Include if NPC can lose aggro or stays focused on original target. Options: yes, no
- map
- Required. Include world or instance map this NPC spawns in. Options:
- Glorious Imperial Territory
- Idios
- Depthless Orifice
- Great Rebellion
- Snow Storm
- The Forest of the Abandoned
- The Valley Of Blood
- location1...location5
- Required. The area(s) or zone(s) the NPC can be found. Separate additional locations with location2, location3, etc.
- N-coord
- Optional. In-game N coordinate (N from world map, or y from /location).
- E-coord
- Optional. In-game E coordinate (E from world map, or x from /location).
- radius
- Optional. Include to increase circle radius (min. 1).
- zoom
- Optional. Include to adjust the default zoom level. Low number zooms out, higher number zooms in.
- goal
- Optional. Specific quest or challenge this NPC is affiliated with. Include wikilinks
[[]]
If entering multiple goals, put each new goal on a new line with<br>
. - service
- Optional. The service provided by the NPC. Options:
- Apprentice Blacksmith
- Armor Shop
- Blacksmith
- Grocer
- Guild Cloak Shop
- Guild Manager
- Magic Goods
- Material Shop
- Mercenary Manager
- Mobile Shop
- Weapon Shop
- Fame
- Arena Manager
- Quest
- Bank
- Guard
- Mercenary
- Summoned guardian
- Stat Reset
- id
- Optional. NPC asset id from Editor.
- gallery1...gallery5
- Optional. Images related to the NPC.
- gallery-text1...gallery-text5
- Optional. Image descriptions.
Example
{{NPC infobox |name=La Bark |image=Boss-labark.png |race=Wolf |level=31 |rank=world boss |map=Depthless Orifice/All |location1= |N-coord=80 |E-coord=739 }} {{NPC infobox |name=Fog Wolf |image=Fog Wolf-18.png |race=Wolf |level=18 |rank=normal |map=Idios |location1=Silent Woods |N-coord= |E-coord= |radius= }}
TODO
- Add properties to parameters
- Add difficulty parameter
- Non-boss: "This NPC may be challenging for characters of similar level."
- Boss: Easy, Intermediate, Challenging (may write a difficulty page to summarize terms)