Terraria Wiki
5. sor: 5. sor:
   
 
//reset all npcinfo fields
 
//reset all npcinfo fields
-->{{#invoke:NpcInfo|clear|prefix=_npc_infobox:info:}}<!--
+
-->{{#invoke:npcinfo|clear|prefix=_npc_infobox:info:}}<!--
   
 
//reset all values for cargo fields
 
//reset all values for cargo fields
16. sor: 16. sor:
 
-->|_npc_infobox:cargo:money|<!--
 
-->|_npc_infobox:cargo:money|<!--
 
-->|_npc_infobox:cargo:banner|<!--
 
-->|_npc_infobox:cargo:banner|<!--
  +
-->|_npc_infobox:cargo:immunities|<!--
 
-->}}<!--
 
-->}}<!--
   
 
//fetch data from npcinfo database if needed.
 
//fetch data from npcinfo database if needed.
-->{{#vardefine:__auto_id|}}<!--
+
-->{{#vardefine:_npc_auto_id|}}<!--
 
-->{{#if:{{{auto|}}}|<!--
 
-->{{#if:{{{auto|}}}|<!--
-->{{#vardefine:__auto_id|{{#if:{{#dplreplace:{{trim|{{{auto|}}}}}|/^-?[0-9]+$/|}}|{{{id|}}}|{{trim|{{{auto|}}}}}}}}}<!--
+
-->{{#vardefine:_npc_auto_id|{{#if:{{#dplreplace:{{trim|{{{auto|}}}}}|/^-?[0-9]+$/|}}|{{{id|}}}|{{trim|{{{auto|}}}}}}}}}<!--
-->{{#invoke:NpcInfo|getInfo|id={{#var:__auto_id}}|prefix=_npc_infobox:info:}}<!--
+
-->{{#invoke:npcinfo|getInfo|id={{#var:_npc_auto_id}}|prefix=_npc_infobox:info:}}<!--
 
-->}}<!--
 
-->}}<!--
   
48. sor: 49. sor:
 
-->|<!--
 
-->|<!--
 
-->{{#dplvar:set<!--
 
-->{{#dplvar:set<!--
-->|_npc_infobox:name|{{{name|{{ROOTPAGENAME}}}}}<!--
+
-->|_npc_infobox:name|{{{name|{{#titleparts:{{ROOTPAGENAME}}}}}}}<!--
 
-->|_npc_infobox:namesub|{{{namesub|}}}<!--
 
-->|_npc_infobox:namesub|{{{namesub|}}}<!--
 
-->|_npc_infobox:namenote|{{{namenote|}}}<!--
 
-->|_npc_infobox:namenote|{{{namenote|}}}<!--
79. sor: 80. sor:
 
-->{{#if:{{#var:3}}|{{#if:{{#var:c}}{{#var:o}}{{#var:m}}|&#32;/&#32;}}[[3DS version|3DS]]}}<!--
 
-->{{#if:{{#var:3}}|{{#if:{{#var:c}}{{#var:o}}{{#var:m}}|&#32;/&#32;}}[[3DS version|3DS]]}}<!--
 
-->|<!--else
 
-->|<!--else
-->{{icon|old-gen|mobile|nl=y}} {{icon|3ds|nl=y|small=y}} [[Old-gen console version|Régi Generációs Konzol]] / [[Mobile version|Mobil]] / [[3DS version|3DS]]<!--
+
-->{{icon|old-gen|nl=y}} {{icon|3ds|nl=y|small=y}} [[Old-gen console version|Old-gen console]] / [[3DS version|3DS]]<!--
 
-->}}<!--
 
-->}}<!--
--> Exklúzív Változata</div><!--
+
--> Exclusive Variant</div><!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
87. sor: 88. sor:
 
--><div class="title"><!--
 
--><div class="title"><!--
 
-->{{#dplvar:_npc_infobox:name}}<!--
 
-->{{#dplvar:_npc_infobox:name}}<!--
  +
-->{{{name2|}}}<!--
 
-->{{#if:{{#dplvar:_npc_infobox:namesub}}|<span>{{#dplvar:_npc_infobox:namesub}}</span>}}<!--
 
-->{{#if:{{#dplvar:_npc_infobox:namesub}}|<span>{{#dplvar:_npc_infobox:namesub}}</span>}}<!--
 
-->{{#if:{{{namesub2|}}}|<span>{{{namesub2|}}}</span>}}<!--
 
-->{{#if:{{{namesub2|}}}|<span>{{{namesub2|}}}</span>}}<!--
 
-->{{#if:{{#dplvar:_npc_infobox:namenote}}|<span style="font-size: 10px">{{#dplvar:_npc_infobox:namenote}}</span>}}<!--
 
-->{{#if:{{#dplvar:_npc_infobox:namenote}}|<span style="font-size: 10px">{{#dplvar:_npc_infobox:namenote}}</span>}}<!--
 
-->{{#if:{{{expertonly|}}}|<!--
 
-->{{#if:{{{expertonly|}}}|<!--
--><span style="font-size: 10px">{{Szakértőmód|Csak szakértőmódban}}</span><!--
+
--><span style="font-size: 10px">{{expert|Expert mode exclusive}}</span><!--
 
-->}}<!--
 
-->}}<!--
 
--></div><!--
 
--></div><!--
156. sor: 158. sor:
 
Because the first image may use imagealt, span is used to display the title of the first image.
 
Because the first image may use imagealt, span is used to display the title of the first image.
 
imagealt will not be affected if it has a text field (if imagealt = [[File:someimage.png|hello]], it will display 'hello')
 
imagealt will not be affected if it has a text field (if imagealt = [[File:someimage.png|hello]], it will display 'hello')
--><span title="{{#dplvar:t1}}">{{{imagealt|[[File:{{{image|{{#dplvar:_npc_infobox:imagename}}.png}}}|link=]]}}}</span><!--First sprite now displayed
+
--><span title="{{#dplvar:t1}}" style="max-width:{{{width|{{{boxwidth|23em}}}}}};"><!--
  +
-->{{#vardefine:_main_image|{{{imagealt|{{image|{{{image|{{#dplvar:_npc_infobox:imagename}}.png}}}|link=|size={{{imagesize|}}}}}}}}}}<!--
-->{{#if:{{{imageexpert|}}}|[[File:{{{imageexpert}}}|Expert mode variant|link=]]}}<!-- Expert Mode image displayed
 
  +
-->{{#var:_main_image|[[File:{{{image|{{#dplvar:_npc_infobox:imagename}}.png}}}|link=]]}}<!-- fallback if {{image}} failed.
  +
--></span><!--First sprite now displayed
 
-->{{#if:{{{imageexpert|}}}|{{image|{{{imageexpert|}}}|Expert mode variant|link=}}}}<!-- Expert mode image displayed
 
-->{{#if:{{#dplvar:image2}}|<!-- Second sprite now displayed
 
-->{{#if:{{#dplvar:image2}}|<!-- Second sprite now displayed
 
-->[[File:{{#dplvar:image2}}|{{#dplvar:t2}}|link=]]<!--
 
-->[[File:{{#dplvar:image2}}|{{#dplvar:t2}}|link=]]<!--
168. sor: 173. sor:
   
 
--><div class="section statistics"><!--
 
--><div class="section statistics"><!--
--><div class="title">Jellemzők</div><!--
+
--><div class="title">Statistics</div><!--
 
--><table class="stat"><!--
 
--><table class="stat"><!--
 
-->{{#if: {{{type|Enemy}}}|<!--
 
-->{{#if: {{{type|Enemy}}}|<!--
 
--><tr><!--
 
--><tr><!--
--><th>Típus</th><!--
+
--><th>Type</th><!--
 
--><td><!--
 
--><td><!--
 
-->{{ifexists|{{{type|Enemy}}}|[[{{{type|Enemy}}}]]|{{{type|Enemy}}}}}<!--
 
-->{{ifexists|{{{type|Enemy}}}|[[{{{type|Enemy}}}]]|{{{type|Enemy}}}}}<!--
186. sor: 191. sor:
 
-->{{#if:{{{environment|}}}|<!--
 
-->{{#if:{{{environment|}}}|<!--
 
--><tr><!--
 
--><tr><!--
--><th>[[Éghajlat]]</th><!--
+
--><th>[[Environment]]</th><!--
 
--><td>{{nowrap|[[{{{environment}}}]]}}{{#if:{{{environment2|}}}|&#32;&ndash;&#32;{{nowrap|[[{{{environment2}}}]]}}}}</td><!--
 
--><td>{{nowrap|[[{{{environment}}}]]}}{{#if:{{{environment2|}}}|&#32;&ndash;&#32;{{nowrap|[[{{{environment2}}}]]}}}}</td><!--
 
--></tr><!--
 
--></tr><!--
193. sor: 198. sor:
 
-->{{#dplvar:set|_npc_infobox:cargo:AI|{{{ai|{{npc infobox/AI|{{#dplvar:_npc_infobox:info:aiStyle}}}}}}}}}<!--
 
-->{{#dplvar:set|_npc_infobox:cargo:AI|{{{ai|{{npc infobox/AI|{{#dplvar:_npc_infobox:info:aiStyle}}}}}}}}}<!--
 
--><tr><!--
 
--><tr><!--
--><th>[[MI]]</th><!--
+
--><th>[[AI|AI Type]]</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:AI}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:AI}}</td><!--
 
--></tr><!--
 
--></tr><!--
209. sor: 214. sor:
 
-->}}<!--
 
-->}}<!--
 
--><tr><!--
 
--><tr><!--
--><th>Sebzés</th><!--
+
--><th>Damage</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:damage}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:damage}}</td><!--
 
--></tr><!--
 
--></tr><!--
225. sor: 230. sor:
 
-->}}<!--
 
-->}}<!--
 
--><tr><!--
 
--><tr><!--
--><th>Életerő</th><!--
+
--><th>Max Life</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:lifeMax}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:lifeMax}}</td><!--
 
--></tr><!--
 
--></tr><!--
241. sor: 246. sor:
 
-->}}<!--
 
-->}}<!--
 
--><tr><!--
 
--><tr><!--
--><th>[[Védelem]]</th><!--
+
--><th>[[Defense]]</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:defense}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:defense}}</td><!--
 
--></tr><!--
 
--></tr><!--
257. sor: 262. sor:
 
-->}}<!--
 
-->}}<!--
 
--><tr><!--
 
--><tr><!--
--><th>[[Hátralökés|HL]]-i ellenállás</th><!--
+
--><th>[[Knockback|KB]] Resist</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:knockBackResist}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:knockBackResist}}</td><!--
 
--></tr><!--
 
--></tr><!--
263. sor: 268. sor:
 
-->{{#if: {{{power|}}}|<!--
 
-->{{#if: {{{power|}}}|<!--
 
--><tr><!--
 
--><tr><!--
--><th>Erő</th><!--
+
--><th>Power</th><!--
 
--><td>{{{power|}}}</td><!--
 
--><td>{{{power|}}}</td><!--
 
--></tr><!--
 
--></tr><!--
276. sor: 281. sor:
 
-->}}}}}<!--
 
-->}}}}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>[[Hatás]]</th><!--
+
--><th>Grants [[buff]]</th><!--
--><td>{{item|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|name}}<!--
+
--><td>{{item|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|name}}<!--
-->|link={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|page}}<!--
+
-->|link={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|page}}<!--
-->|image={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|image}}<!--
+
-->|image={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|image}}<!--
 
-->}}</td><!--
 
-->}}</td><!--
 
--></tr><!--
 
--></tr><!--
 
-->{{#if: {{{buffduration|}}}|<!--
 
-->{{#if: {{{buffduration|}}}|<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Időtartam</th><!--
+
--><th>Buff duration</th><!--
 
--><td>{{{buffduration|}}}</td><!--
 
--><td>{{{buffduration|}}}</td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!--
 
-->}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Leírás</th><!--
+
--><th>Buff tooltip</th><!--
--><td><i>{{{bufftip|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
+
--><td><i>{{{bufftip|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!--END buff
 
-->}}<!--END buff
300. sor: 305. sor:
 
-->{{{debuff|}}}<!--
 
-->{{{debuff|}}}<!--
 
-->}}<!--
 
-->}}<!--
  +
-->}}<!--
  +
-->{{#vardefine:chance|<!--
  +
-->{{#if:{{{debuffchance|}}}<!--
 
-->|{{#ifeq:{{#sub:{{{debuffchance|}}}|-2}}|##|{{#sub:{{{debuffchance|}}}|0|-2}}<!--
  +
-->|{{{debuffchance|}}} chance}}}}<!--
 
-->}}<!--
 
-->}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>[[Ellenhatás]]</th><!--
+
--><th>Inflicts [[debuff]]</th><!--
 
--><td><!--
 
--><td><!--
 
-->{{item|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|name}}<!--
-->{{#vardefine:chance|{{#if:{{{debuffchance|}}}|{{#ifeq:{{#sub:{{{debuffchance|}}}|-2}}|##|{{#sub:{{{debuffchance|}}}|0|-2}}|{{{debuffchance|}}} esély}}}}}}<!--
 
-->{{item|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|name}}<!--
+
-->|link={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|page}}<!--
-->|link={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|page}}<!--
+
-->|image={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|image}}<!--
-->|image={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|image}}<!--
 
 
-->|note2={{#var:chance}}<!--
 
-->|note2={{#var:chance}}<!--
 
-->}}<br/>{{{debuffchancenote|}}}<!--
 
-->}}<br/>{{{debuffchancenote|}}}<!--
314. sor: 323. sor:
 
-->{{#if: {{{duration|}}}|<!--
 
-->{{#if: {{{duration|}}}|<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Időtartam</th><!--
+
--><th>Debuff duration</th><!--
 
--><td>{{{duration|}}}</td><!--
 
--><td>{{{duration|}}}</td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!--
 
-->}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Leírás</th><!--
+
--><th>Debuff tooltip</th><!--
--><td><i>{{{debufftip|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
+
--><td><i>{{{debufftip|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!-- END debuff
 
-->}}<!-- END debuff
330. sor: 339. sor:
 
-->{{{debuff2|}}}<!--
 
-->{{{debuff2|}}}<!--
 
-->}}<!--
 
-->}}<!--
  +
-->}}<!--
  +
-->{{#vardefine:chance|<!--
  +
-->{{#if:{{{debuffchance2|}}}<!--
 
-->|{{#ifeq:{{#sub:{{{debuffchance2|}}}|-2}}|##|{{#sub:{{{debuffchance2|}}}|0|-2}}<!--
  +
-->|{{{debuffchance2|}}} chance}}}}<!--
 
-->}}<!--
 
-->}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>[[Ellenhatás]]</th><!--
+
--><th>Inflicts [[debuff]]</th><!--
 
--><td><!--
 
--><td><!--
 
-->{{item|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|name}}<!--
-->{{#vardefine:chance|{{#if:{{{debuffchance2|}}}|{{#ifeq:{{#sub:{{{debuffchance2|}}}|-2}}|##|{{#sub:{{{debuffchance2|}}}|0|-2}}|{{{debuffchance2|}}} chance}}}}}}<!--
 
-->{{item|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|name}}<!--
+
-->|link={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|page}}<!--
-->|link={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|page}}<!--
+
-->|image={{getBuffInfo|{{#var:__npc_infobox:buff_id}}|image}}<!--
-->|image={{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|image}}<!--
 
 
-->|note2={{#var:chance}}<!--
 
-->|note2={{#var:chance}}<!--
 
-->}}<br/>{{{debuffchancenote2|}}}<!--
 
-->}}<br/>{{{debuffchancenote2|}}}<!--
344. sor: 357. sor:
 
-->{{#if: {{{duration2|}}}|<!--
 
-->{{#if: {{{duration2|}}}|<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Időtartam</th><!--
+
--><th>Debuff duration</th><!--
 
--><td>{{{duration2|}}}</td><!--
 
--><td>{{{duration2|}}}</td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!--
 
-->}}<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Leírás</th><!--
+
--><th>Debuff tooltip</th><!--
--><td><i>{{{debufftip2|{{BuffInfoFromId|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
+
--><td><i>{{{debufftip2|{{getBuffInfo|{{#var:__npc_infobox:buff_id}}|tooltip}}}}}</i></td><!--
 
--></tr><!--
 
--></tr><!--
 
-->}}<!-- END debuff
 
-->}}<!-- END debuff
356. sor: 369. sor:
 
-->{{#if:{{{immuneall|{{#dplvar:_npc_infobox:info:buffImmuneAll}}}}}|<!--
 
-->{{#if:{{{immuneall|{{#dplvar:_npc_infobox:info:buffImmuneAll}}}}}|<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Immunitás</th><!--
+
--><th>Immune to</th><!--
--><td>'''Minden [[ellenhatás]]ra'''</td><!--
+
--><td>'''All [[debuff]]s'''{{{immuneallnote|}}}</td><!--
--></tr><!--
+
--></tr><!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|ALL}}<!--
 
-->|<!--
 
-->|<!--
 
-->{{#if:{{#dplvar:_npc_infobox:info:buffImmune}}{{{immune1|}}}{{{immune2|}}}{{{immune3|}}}{{{immune4|}}}{{{immune5|}}}{{{immune6|}}}{{{immune7|}}}{{{immune8|}}}{{{immune9|}}}{{{immune10|}}}|<!--
 
-->{{#if:{{#dplvar:_npc_infobox:info:buffImmune}}{{{immune1|}}}{{{immune2|}}}{{{immune3|}}}{{{immune4|}}}{{{immune5|}}}{{{immune6|}}}{{{immune7|}}}{{{immune8|}}}{{{immune9|}}}{{{immune10|}}}|<!--
 
--><tr class="buff"><!--
 
--><tr class="buff"><!--
--><th>Immuntás</th><!--
+
--><th>Immune to</th><!--
 
--><td><!--
 
--><td><!--
-->{{npc infobox/buffimmune|{{#dplvar:_npc_infobox:info:buffImmune}}}}<!--
+
-->{{#arraydefine:__buffs|{{#dplvar:_npc_infobox:info:buffImmune}}}}<!--
-->{{#if:{{{immune1|}}}|{{buff|mode=image|{{{immune1}}}}}}}<!--
+
-->{{#arrayprint:__buffs||@@@@|<!--
-->{{#if:{{{immune2|}}}|{{buff|mode=image|{{{immune2}}}}}}}<!--
+
-->{{buff|mode=image|id=@@@@}}<!--
-->{{#if:{{{immune3|}}}|{{buff|mode=image|{{{immune3}}}}}}}<!--
+
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{getBuffInfo|@@@@|page}}}}<!--
-->{{#if:{{{immune4|}}}|{{buff|mode=image|{{{immune4}}}}}}}<!--
+
-->}}<!--
-->{{#if:{{{immune5|}}}|{{buff|mode=image|{{{immune5}}}}}}}<!--
+
-->{{#if:{{{immune1|}}}|<!--
-->{{#if:{{{immune6|}}}|{{buff|mode=image|{{{immune6}}}}}}}<!--
+
-->{{item|mode=image|{{{immune1}}}}}<!--
-->{{#if:{{{immune7|}}}|{{buff|mode=image|{{{immune7}}}}}}}<!--
+
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune1}}}}}<!--
-->{{#if:{{{immune8|}}}|{{buff|mode=image|{{{immune8}}}}}}}<!--
+
-->}}<!--
-->{{#if:{{{immune9|}}}|{{buff|mode=image|{{{immune9}}}}}}}<!--
+
-->{{#if:{{{immune2|}}}|<!--
-->{{#if:{{{immune10|}}}|{{buff|mode=image|{{{immune10}}}}}}}<!--
+
-->{{item|mode=image|{{{immune2}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune2}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune3|}}}|<!--
  +
-->{{item|mode=image|{{{immune3}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune3}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune4|}}}|<!--
  +
-->{{item|mode=image|{{{immune4}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune4}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune5|}}}|<!--
  +
-->{{item|mode=image|{{{immune5}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune5}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune6|}}}|<!--
  +
-->{{item|mode=image|{{{immune6}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune6}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune7|}}}|<!--
  +
-->{{item|mode=image|{{{immune7}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune7}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune8|}}}|<!--
  +
-->{{item|mode=image|{{{immune8}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune8}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune9|}}}|<!--
  +
-->{{item|mode=image|{{{immune9}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune9}}}}}<!--
  +
-->}}<!--
  +
-->{{#if:{{{immune10|}}}|<!--
  +
-->{{item|mode=image|{{{immune10}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplvar:_npc_infobox:cargo:immunities}}^{{{immune10}}}}}<!--
  +
-->}}<!--
 
--></td><!--
 
--></td><!--
 
--></tr><!--
 
--></tr><!--
393. sor: 441. sor:
 
-->}}}}<!--
 
-->}}}}<!--
 
-->{{#if:{{#var:__banner_id}}|<!--
 
-->{{#if:{{#var:__banner_id}}|<!--
-->{{#dplvar:set|_npc_infobox:cargo:banner|{{item|{{ItemNameFromId|{{#var:__banner_id}}}}|wrap=y}}}}<!--
+
-->{{#dplvar:set|_npc_infobox:cargo:banner|<!--
  +
//since enemy banners is too many, we can't store them in enemy banners page, store them here.
  +
-->{{item infobox|view=item | auto = {{#var:__banner_id}}<!--
  +
-->| buffid = {{#ifexpr:(({{#var:__banner_id}} > 3836) AND ({{#var:__banner_id}} <3847))||147}}<!--
  +
-->| type = Furniture | width = 1 | height = 3 | tags = drop / enemy banner<!--
  +
-->| extargs = wrap/showid | wrap = y | showid = no | hardmode = {{#if:{{{hardmode|}}}}}<!--
  +
-->}}<!--
  +
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
399. sor: 454. sor:
 
-->{{#if:{{#dplvar:_npc_infobox:cargo:banner}}|<!--
 
-->{{#if:{{#dplvar:_npc_infobox:cargo:banner}}|<!--
 
--><tr><!--
 
--><tr><!--
--><th>[[Zászló]]</th><!--
+
--><th>[[Banners (enemy)|Banner]]</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:banner}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:banner}}</td><!--
 
--></tr><!--
 
--></tr><!--
405. sor: 460. sor:
 
-->{{#if:{{{tooltip|}}}|<!--
 
-->{{#if:{{{tooltip|}}}|<!--
 
--><tr><!--
 
--><tr><!--
--><th>Leírás</th><!--
+
--><th>Tooltip</th><!--
 
--><td>{{{tooltip|}}}</td><!--
 
--><td>{{{tooltip|}}}</td><!--
 
--></tr><!--
 
--></tr><!--
414. sor: 469. sor:
 
-->{{#if:{{{money|{{#ifexpr:{{#dplvar:_npc_infobox:info:value}}|yes}}}}}|<!--
 
-->{{#if:{{{money|{{#ifexpr:{{#dplvar:_npc_infobox:info:value}}|yes}}}}}|<!--
 
-->{{#dplvar:set|_npc_infobox:cargo:money|{{{money|{{npc infobox/value|{{#dplvar:_npc_infobox:info:value}}}}}}}{{{money2|}}}}}<!--
 
-->{{#dplvar:set|_npc_infobox:cargo:money|{{{money|{{npc infobox/value|{{#dplvar:_npc_infobox:info:value}}}}}}}{{{money2|}}}}}<!--
--><div class="title">Zsákmány</div><!--
+
--><div class="title">Drops</div><!--
 
--><table class="drops money"><!--
 
--><table class="drops money"><!--
 
--><tr><!--
 
--><tr><!--
--><th>[[Zsákmány|Érme]]</th><!--
+
--><th>[[NPC_drops#Coin_Drops|Coins]]</th><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:money}}</td><!--
 
--><td>{{#dplvar:_npc_infobox:cargo:money}}</td><!--
 
--></tr><!--
 
--></tr><!--
424. sor: 479. sor:
 
-->{{#if:{{{1|}}}|<!--
 
-->{{#if:{{{1|}}}|<!--
 
--><ul class="drops items"><!--
 
--><ul class="drops items"><!--
--><li><strong>Tárgy <small>(Darab)</small></strong><strong>Esély</strong></li><!--
+
--><li><strong>Item <small>(Quantity)</small></strong><strong>Rate</strong></li><!--
 
-->{{#dplvar:set|_npc_infobox:group|0}}<!--
 
-->{{#dplvar:set|_npc_infobox:group|0}}<!--
 
//every 3 unnamed arguments form a group.
 
//every 3 unnamed arguments form a group.
447. sor: 502. sor:
 
-->}}<!--
 
-->}}<!--
 
--></div><!-- div.section.drops
 
--></div><!-- div.section.drops
-->{{#if:{{{id|{{#var:__auto_id}}}}}{{{idbuff|}}}|<!--
+
-->{{#if:{{{id|{{#var:_npc_auto_id}}}}}{{{idbuff|}}}|<!--
 
--><div class="section ids"><ul><!--
 
--><div class="section ids"><ul><!--
-->{{#if:{{{id|{{#var:__auto_id}}}}}|<!--
+
-->{{#if:{{{id|{{#var:_npc_auto_id}}}}}|<!--
--><li>[[Ellenféli adatértékek|Ellenféli]] adatértéke: '''{{#if:{{{expertonly|}}}|{{expert|{{{id|{{#var:__auto_id}}}}}}}|{{{id|{{#var:__auto_id}}}}}}}'''</li><!--
+
--><li>Internal [[NPC IDs|NPC ID]]: '''{{#if:{{{expertonly|}}}|{{expert|{{{id|{{#var:_npc_auto_id}}}}}}}|{{{id|{{#var:_npc_auto_id}}}}}}}'''</li><!--
 
-->}}<!--
 
-->}}<!--
 
-->{{#if:{{{idbuff|}}}|<!--
 
-->{{#if:{{{idbuff|}}}|<!--
--><li>[[Hatásbeli adatértékek|Hatásbeli]] adatértéke: '''{{{idbuff}}}'''</li><!--
+
--><li>Internal [[Buff IDs|Buff ID]]: '''{{{idbuff}}}'''</li><!--
 
-->}}<!--
 
-->}}<!--
 
--></ul></div><!-- div.section.ids
 
--></ul></div><!-- div.section.ids
478. sor: 533. sor:
 
-->{{#if:{{{listcat2|}}}|[[Category:{{{listcat2}}} NPCs]]}}<!--
 
-->{{#if:{{{listcat2|}}}|[[Category:{{{listcat2}}} NPCs]]}}<!--
 
-->{{#if:{{{hardmode|}}}|[[Category:Hardmode-only NPCs{{#switch:{{{type|}}}|NPC|Critter={{!}}*}}]]}}<!--
 
-->{{#if:{{{hardmode|}}}|[[Category:Hardmode-only NPCs{{#switch:{{{type|}}}|NPC|Critter={{!}}*}}]]}}<!--
-->{{#if:{{{expertonly|}}}|[[Category:Expert Mode Exclusive NPCs{{#switch:{{{type|}}}|NPC|Critter={{!}}*}}]]}}<!--
+
-->{{#if:{{{expertonly|}}}|[[Category:Expert mode exclusive NPCs{{#switch:{{{type|}}}|NPC|Critter={{!}}*}}]]}}<!--
 
-->{{#if:{{{allversions|}}}|{{all versions}}}}<!--
 
-->{{#if:{{{allversions|}}}|{{all versions}}}}<!--
   
  +
CARGO
  +
-->{{#ifeq:{{FULLPAGENAME}}|{{ROOTPAGENAME}}|{{#ifeq:{{#sub:{{{cargo|}}}|0|1}}|n|<!-- nothing -->|<!--
  +
-->{{#if:{{{idcargo|{{#var:_npc_auto_id|{{{id|}}}}}}}}|<!--
  +
-->{{#vardefine:__id|{{{idcargo|{{#var:_npc_auto_id|{{{id|}}}}}}}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplreplace:{{#dplvar:_npc_infobox:cargo:immunities}}|/^\^+/|}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplreplace:{{#dplvar:_npc_infobox:cargo:immunities}}|/\^+$/|}}}}<!--
  +
-->{{#dplvar:set|_npc_infobox:cargo:immunities|{{#dplreplace:{{#dplvar:_npc_infobox:cargo:immunities}}|/\^\^+/|^}}}}<!--
  +
-->{{#cargo_store:_table=NPCs<!--
  +
-->|name={{eil|{{ROOTPAGENAME}}|{{#dplvar:_npc_infobox:name}}}}<!--
  +
-->{{#if:{{#dplvar:_npc_infobox:namesub}}|{{note|block=y|({{#dplvar:_npc_infobox:namesub}})}}}}<!--
  +
-->{{#if:{{#dplvar:_npc_infobox:namenote}}|{{note|block=y|small=y|({{#dplvar:_npc_infobox:namenote}})}}}}<!--
  +
-->|nameraw={{#dplvar:_npc_infobox:name}}<!--
  +
-->|namesub={{#dplvar:_npc_infobox:namesub}}<!--
  +
-->|namenote={{#dplvar:_npc_infobox:namenote}}<!--
  +
-->|image=<span class="npcimg">{{{imagecargo|{{{imagealt|[[File:{{{image|{{#dplvar:_npc_infobox:imagename}}.png}}}|link=]]}}}}}}</span><!--
  +
-->|environment={{{environment|}}}<!--
  +
-->|ai={{#dplvar:_npc_infobox:cargo:AI}}<!--
  +
-->|damage={{#dplvar:_npc_infobox:cargo:damage}}<!--
  +
-->|life={{#dplvar:_npc_infobox:cargo:lifeMax}}<!--
  +
-->|defense={{#dplvar:_npc_infobox:cargo:defense}}<!--
  +
-->|knockback={{#dplvar:_npc_infobox:cargo:knockBackResist}}<!--
  +
-->|banner={{#dplvar:_npc_infobox:cargo:banner}}<!--
  +
-->|money={{#dplvar:_npc_infobox:cargo:money}}<!--
  +
-->|npcid={{#var:__id}}<!--
  +
-->|immunities={{#dplvar:_npc_infobox:cargo:immunities}}<!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->}}}}<!--
  +
CARGO END
 
-->}}<!--
 
-->}}<!--
 
--></includeonly><!--
 
--></includeonly><!--
   
--><noinclude><!--
+
--><noinclude>
  +
* {{#cargo_declare:_table=NPCs
 
  +
|name=Wikitext (size=1000)
 
  +
|nameraw=String
--></noinclude><noinclude>{{clear}}
 
  +
|namesub=String
[[Category:Infobox templates]]
 
  +
|namenote=String
[[ru:Шаблон:Npc infobox]]</noinclude>
 
  +
|image=Wikitext
  +
|environment=Page
  +
|ai=String
  +
|damage=Wikitext (size=2500)
  +
|life=Wikitext (size=2000)
  +
|defense=Wikitext (size=1000)
  +
|knockback=Wikitext (size=1000)
  +
|banner=Wikitext (size=1000)
  +
|money=Wikitext (size=1000)
  +
|npcid=Integer
  +
|immunities=List (^) of String
  +
}}
  +
* {{#cargo_attach:_table=Items_new}}<!-- for enemy banners.-->
  +
{{doc}}<!--
 
--></noinclude>

A lap 2019. október 5., 13:44-kori változata

  • This template defines the table "NPCs".

Create data table

Sablon:Npc infobox/doc