Template:TestBiomeInfobox

Listen. I dunno what to tell you. We wanted tabs, we're getting tabs. Isn't code fun? :D

No-JS Test
0 BC = 1 BC =

Terraria Wiki Tab Component Below
{{#vardefine:cate|{{#switch:{{{cate|}}}|yes|force=y|no=|#default={{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{#var:ni:viewmodename}}|infobox|table=y}}{{#if:{{{hardmode|}}}|{{#if:{{#var:ni:cateset:hardmode}}||{{#vardefine:ni:cateset:hardmode|y}}{{l10n|npc_infobox|cate_hardmode|$type$={{#var:ni:type}}}}}}}}{{#if:{{{expertonly|}}}|{{#if:{{#var:ni:cateset:expertonly}}||{{#vardefine:ni:cateset:expertonly|y}}{{l10n|npc_infobox|cate_expertonly|$type$={{#var:ni:type}}}}}}}}}}{{#if:{{#var:cargo}}|{{#lstmap:{{{idcargo|{{#var:_npc_auto_id|{{{id|}}}}}}}}|,|@@@@| {{#cargo_store:_table=Biomes|name= {{eil|{{ROOTPAGENAME}}|{{#var:ni:name}}}}{{#if:{{#var:ni:namesub}}|{{note|block=y|paren=y|{{#var:ni:namesub}}}}}}{{#if:{{#var:ni:namenote}}|{{note|block=y|paren=y|small=y|{{#var:ni:namenote}}}}}} |nameraw= {{#var:ni:name}} |image= {{{imagecargo|{{{imagealt|}}}}}} |environment= {{#var:ni:environment}} |ai= {{#var:ni:ai}} |damage= {{#var:ni:damage}} |life= {{#var:ni:lifemax}} |defense= {{#var:ni:defense}} |knockback= {{#var:ni:knockback}} |bannername= {{#var:ni:banner}} |banner= {{#if:{{#var:ni:banner}}|{{item|{{#var:ni:banner}}|wrap=y}}}} |money= {{#var:ni:cargo:money}} |npcid=@@@@|immunities= {{#var:ni:cargo:immunities}} }} }}}} }}
 * {{#cargo_declare:_table=Biomes
 * Name=String
 * Image=String
 * StageNumber=Integer
 * Location=String
 * EntranceBiome=String
 * ExitBiome=String
 * EnemyTier=String

{{#vardefine:npcnamefrompagename|{{pagename2en|{{#titleparts:{{ROOTPAGENAME}}}}}}}}{{#vardefine:ni:viewmodename|{{lc:{{{mode|{{{output|{{{view|{{#var:_npc_infobox_flag_view|infobox}}}}}}}}}}}}}}}{{#switch:{{#var:ni:viewmodename}}|infobox={{#arraydefine:extargs|float/css/style/boxwidth/shownpcid/{{{extargs|{{npc infobox/options|get|extargs}}}}}|/}}{{#arrayprint:extargs||@@@@|{{#if:@@@@|{{#vardefine:ni:ext:@@@@|{{{@@@@|}}}}}}}}}{{#vardefine:imagemode|{{{imagemode|full}}}}}|table={{#arraydefine:extargs|cols/{{{extargs|{{npc infobox/options|get|extargs}}}}}|/}}{{#arrayprint:extargs||@@@@|{{#if:@@@@|{{#vardefine:ni:ext:@@@@|{{{@@@@|}}}}}}}}}{{#vardefine:colsep|{{npc infobox/options|get|colsep}}}}{{#vardefine:cells|{{{cells|{{npc infobox/options|get|cells}}}}}}}{{#arraydefine:ni:table:cols|{{#var:ni:ext:cols|{{#var:_npc_infobox_flag_cols}}}}|{{{colsep|{{#var:colsep|/}}}}}}}{{#arrayprint:ni:table:cols||@@@@|{{#if:{{regex|@@@@|/^col:/}}|{{#vardefine:ni:@@@@|{{{@@@@|}}} }}}}}}{{#vardefine:imagemode|{{{imagemode|{{npc infobox/options|get|imagemode}}}}}}}|#default={{#arraydefine:extargs|{{{extargs|{{npc infobox/options|get|extargs}}}}}|/}}{{#arrayprint:extargs||@@@@|{{#if:@@@@|{{#vardefine:ni:ext:@@@@|{{{@@@@|}}}}}}}}}{{#vardefine:imagemode|{{{imagemode|{{npc infobox/options|get|imagemode}}}}}}}}}{{#invoke:npcinfo|clear|prefix=_npc_infobox:info:}}{{#vardefine:_npc_auto_id|}}{{#if:{{{auto|}}}|{{#vardefine:_npc_auto_id|{{#if:{{#dplreplace:{{trim|{{{auto|}}}}}|/^-?[0-9]+$/|}}|{{{id|}}}|{{trim|{{{auto|}}}}}}}}}{{#invoke:npcinfo|getInfo|id={{#var:_npc_auto_id}}|prefix=_npc_infobox:info:}}}}{{#vardefine:ni:npcid|{{{id|{{#var:_npc_auto_id}}}}}}}{{#vardefine:ni:notab|{{{notabs|{{{notab|{{{variant|{{#switch:{{{tabs|{{{tab|}}}}}}|n|no=y}}}}}}}}}}}}}{{#switch:{{pagename2en|{{lc:{{#var:ni:type}}}}}}|npc|critter|gold critter|furniture={{#vardefine:ni:notab|{{#if:{{{tabs|{{{tab|}}}}}}||y}}}}}}{{#if:{{#dplvar:_npc_infobox:info:netID}}|{{#vardefine:ni:name|{{{name|{{npc infobox/namedb}}{{#dplvar:_npc_infobox:info:name}}}}}}}{{#vardefine:_|{{npc infobox/namedb-{{lang}}}}}}{{#vardefine:ni:namesub|{{{namesub|{{#dplvar:_npc_infobox:{{lang}}:npcnamesub:{{#dplvar:_npc_infobox:info:netID}}}}}}}}}{{#vardefine:ni:namenote|{{{namenote|{{#dplvar:_npc_infobox:{{lang}}:npcnamenote:{{#dplvar:_npc_infobox:info:netID}}}}}}}}}{{#vardefine:ni:imagename|{{{name|{{npc infobox/namedb-en}}{{#if:{{#dplvar:_npc_infobox:en:npcnamesub:{{#dplvar:_npc_infobox:info:netID}}}}|{{#dplvar:_npc_infobox:en:npcnamesub:{{#dplvar:_npc_infobox:info:netID}}}}|{{#var:ni:name}}}}}}}}}|{{#vardefine:ni:name|{{{name|{{#var:npcnamefrompagename}}}}}{{{name2|}}}}}{{#vardefine:ni:namesub|{{{namesub|}}}}}{{#vardefine:ni:namenote|{{{namenote|}}}}}{{#vardefine:ni:imagename|{{{name|{{#var:npcnamefrompagename}}}}}}}}}{{#vardefine:ni:name2|{{{name2|}}}}}{{#vardefine:ni:namesub2|{{{namesub2|}}}}}{{#vardefine:ni:hardmodeonly|{{{hardmode|}}}}}{{#vardefine:ni:expertonly|{{{expertonly|}}}}}{{#vardefine:ni:masteronly|{{{masteronly|}}}}}{{#vardefine:ni:variant|}}{{#if:{{{version|{{{variant|}}}}}}|{{#if:{{#pos:{{lc:{{{version|}}}}}|desktop}}||{{#if:{{{version|}}}|{{#vardefine:ni:variant|{{#if:{{#pos:{{lc:{{{version}}}}}|desktop}}|desktop/}}{{#if:{{#pos:{{lc:{{{version}}}}}|console}}|console/}}{{#if:{{#pos:{{lc:{{{version}}}}}|oldgen}}|old-gen/}}{{#if:{{#pos:{{lc:{{{version}}}}}|mobile}}|mobile/}}{{#if:{{#pos:{{lc:{{{version}}}}}|3ds}}|3ds}}}}|{{#vardefine:ni:variant|old-gen/3ds}}}}}}}}{{#vardefine:ni:image1|{{{imagealt|{{image|{{{image|{{#var:ni:imagename}}.png}}}|link=|size={{{imagesize|}}}}}}}}}}{{#if:{{#var:ni:image1}}||{{#vardefine:ni:image1|}}}}{{#vardefine:ni:image1text|}}{{#vardefine:imageexpert|{{{imageexpert|}}}}}{{#vardefine:ni:image2|{{{image2|}}}}}{{#vardefine:ni:image2text|}}{{#vardefine:ni:image3|{{{image3|}}}}}{{#vardefine:ni:image3text|}}{{#dplvar:set|d|t1|c|t1|o|t1|m|t1|3|t1|t1||t2||t3|}}{{#ifeq:{{#var:imagemode}}|full|{{#if:{{{image2|}}}||{{#if:{{{image2|null}}}|{{#vardefine:old|{{#if:{{{image|}}}|{{#explode:{{{image}}}|.|0}}|{{#var:ni:imagename}}}}_(old)}}{{#vardefine:ni:image2|{{#ifexist:Media:{{#var:old}}.png|{{#var:old}}.png|{{#ifexist:Media:{{#var:old}}.gif|{{#var:old}}.gif}}}}}}}}}}}}{{#if:{{#var:ni:image2}}|{{#if:{{{imageversion2|}}}|{{#dplvar:set|imageversion|{{lc:{{{imageversion2}}}}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|desktop}}|{{#dplvar:set|d|t2}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|console}}|{{#dplvar:set|c|t2}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|old-gen}}|{{#dplvar:set|o|t2}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|mobile}}|{{#dplvar:set|m|t2}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|3ds}}|{{#dplvar:set|3|t2}}}}|{{#dplvar:set|o|t2|3|t2}}}}}}{{#if:{{#var:ni:image3}}|{{#if:{{{imageversion3|}}}|{{#dplvar:set|imageversion|{{lc:{{{imageversion3|}}}}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|desktop}}|{{#dplvar:set|d|t3}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|console}}|{{#dplvar:set|c|t3}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|old-gen}}|{{#dplvar:set|o|t3}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|mobile}}|{{#dplvar:set|m|t3}}}}{{#if:{{#pos:{{#dplvar:imageversion}}|3ds}}|{{#dplvar:set|3|t3}}}}}}}}{{#if:{{#var:ni:image2}}{{#var:ni:image3}}|{{#dplvar:set|{{#dplvar:d}}|{{#dplvar:{{#dplvar:d}}}}/desktop}}{{#dplvar:set|{{#dplvar:c}}|{{#dplvar:{{#dplvar:c}}}}/console}}{{#dplvar:set|{{#dplvar:o}}|{{#dplvar:{{#dplvar:o}}}}/old-gen}}{{#dplvar:set|{{#dplvar:m}}|{{#dplvar:{{#dplvar:m}}}}/mobile}}{{#dplvar:set|{{#dplvar:3}}|{{#dplvar:{{#dplvar:3}}}}/3ds}}{{#if:{{#dplvar:t1}}|{{#vardefine:ni:image1text|{{versions|{{#dplvar:t1}}|mode=text|nl=yes}}}}}}{{#if:{{#dplvar:t2}}|{{#vardefine:ni:image2text|{{versions|{{#dplvar:t2}}|mode=text|nl=yes}}}}}}{{#if:{{#dplvar:t3}}|{{#vardefine:ni:image3text|{{versions|{{#dplvar:t3}}|mode=text|nl=yes}}}}}}}}{{#vardefine:ni:ai|{{#if:{{{ai|{{#dplvar:_npc_infobox:info:aiStyle}}}}}|{{{ai|{{npc infobox/AI|{{#dplvar:_npc_infobox:info:aiStyle}}}}}}}}}}}{{#vardefine:ni:damage|{{{damage|{{#if:{{#dplvar:_npc_infobox:info:damage}}|{{#invoke:npcstat|format|lang={{lang}}|hardmodeonly={{{hardmode|}}}|expertonly={{{expertonly|}}}|{{#dplvar:_npc_infobox:info:damage}}|{{#dplvar:_npc_infobox:info:damage_e}}|{{#dplvar:_npc_infobox:info:damage_e_hm}}|{{#dplvar:_npc_infobox:info:damage_e_pp}}|{{#dplvar:_npc_infobox:info:damage_m}}|{{#dplvar:_npc_infobox:info:damage_m_hm}}|{{#dplvar:_npc_infobox:info:damage_m_pp}}}}}}}}}{{{damage2|}}}}}{{#vardefine:ni:damage1|{{{damage|}}}}}{{#vardefine:ni:damage2|{{{damage2|}}}}}{{#vardefine:ni:auto_damage|{{#dplvar:_npc_infobox:info:damage}}}}{{#vardefine:ni:auto_damage_e|{{#dplvar:_npc_infobox:info:damage_e}}}}{{#vardefine:ni:auto_damage_e_hm|{{#dplvar:_npc_infobox:info:damage_e_hm}}}}{{#vardefine:ni:auto_damage_e_pp|{{#dplvar:_npc_infobox:info:damage_e_pp}}}}{{#vardefine:ni:auto_damage_m|{{#dplvar:_npc_infobox:info:damage_m}}}}{{#vardefine:ni:auto_damage_m_hm|{{#dplvar:_npc_infobox:info:damage_m_hm}}}}{{#vardefine:ni:auto_damage_m_pp|{{#dplvar:_npc_infobox:info:damage_m_pp}}}}{{#vardefine:ni:lifemax|{{{life|{{#if:{{#dplvar:_npc_infobox:info:lifeMax}}|{{#invoke:npcstat|format|lang={{lang}}|hardmodeonly={{{hardmode|}}}|expertonly={{{expertonly|}}}|{{#dplvar:_npc_infobox:info:lifeMax}}|{{#dplvar:_npc_infobox:info:lifeMax_e}}|{{#dplvar:_npc_infobox:info:lifeMax_e_hm}}|{{#dplvar:_npc_infobox:info:lifeMax_e_pp}}|{{#dplvar:_npc_infobox:info:lifeMax_m}}|{{#dplvar:_npc_infobox:info:lifeMax_m_hm}}|{{#dplvar:_npc_infobox:info:lifeMax_m_pp}}}}}}}}}{{{life2|}}}}}{{#vardefine:ni:lifemax1|{{{life|}}}}}{{#vardefine:ni:lifemax2|{{{life2|}}}}}{{#vardefine:ni:auto_lifemax|{{#dplvar:_npc_infobox:info:lifeMax}}}}{{#vardefine:ni:auto_lifemax_e|{{#dplvar:_npc_infobox:info:lifeMax_e}}}}{{#vardefine:ni:auto_lifemax_e_hm|{{#dplvar:_npc_infobox:info:lifeMax_e_hm}}}}{{#vardefine:ni:auto_lifemax_e_pp|{{#dplvar:_npc_infobox:info:lifeMax_e_pp}}}}{{#vardefine:ni:auto_lifemax_m|{{#dplvar:_npc_infobox:info:lifeMax_m}}}}{{#vardefine:ni:auto_lifemax_m_hm|{{#dplvar:_npc_infobox:info:lifeMax_m_hm}}}}{{#vardefine:ni:auto_lifemax_m_pp|{{#dplvar:_npc_infobox:info:lifeMax_m_pp}}}}{{#vardefine:ni:defense|{{{defense|{{#if:{{#dplvar:_npc_infobox:info:defense}}|{{#invoke:npcstat|format|lang={{lang}}|hardmodeonly={{{hardmode|}}}|expertonly={{{expertonly|}}}|{{#dplvar:_npc_infobox:info:defense}}|{{#dplvar:_npc_infobox:info:defense_e}}|{{#dplvar:_npc_infobox:info:defense_e_hm}}|{{#dplvar:_npc_infobox:info:defense_e_pp}}|{{#dplvar:_npc_infobox:info:defense_m}}|{{#dplvar:_npc_infobox:info:defense_m_hm}}|{{#dplvar:_npc_infobox:info:defense_m_pp}}}}}}}}}{{{defense2|}}}}}{{#vardefine:ni:defense1|{{{defense|}}}}}{{#vardefine:ni:defense2|{{{defense2|}}}}}{{#vardefine:ni:auto_defense|{{#dplvar:_npc_infobox:info:defense}}}}{{#vardefine:ni:auto_defense_e|{{#dplvar:_npc_infobox:info:defense_e}}}}{{#vardefine:ni:auto_defense_e_hm|{{#dplvar:_npc_infobox:info:defense_e_hm}}}}{{#vardefine:ni:auto_defense_e_pp|{{#dplvar:_npc_infobox:info:defense_e_pp}}}}{{#vardefine:ni:auto_defense_m|{{#dplvar:_npc_infobox:info:defense_m}}}}{{#vardefine:ni:auto_defense_m_hm|{{#dplvar:_npc_infobox:info:defense_m_hm}}}}{{#vardefine:ni:auto_defense_m_pp|{{#dplvar:_npc_infobox:info:defense_m_pp}}}}{{#vardefine:ni:knockback1|{{{knockback|}}}}}{{#vardefine:ni:knockback2|{{{knockback2|}}}}}{{#vardefine:ni:auto_knockback|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist}}}}}}{{#vardefine:ni:auto_knockback_e|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_e}}}}}}{{#vardefine:ni:auto_knockback_e_hm|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_e_hm}}}}}}{{#vardefine:ni:auto_knockback_e_pp|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_e_pp}}}}}}{{#vardefine:ni:auto_knockback_m|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_m}}}}}}{{#vardefine:ni:auto_knockback_m_hm|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_m_hm}}}}}}{{#vardefine:ni:auto_knockback_m_pp|{{npc infobox/knockback|{{#dplvar:_npc_infobox:info:knockBackResist_m_pp}}}}}}{{#vardefine:ni:knockback|{{{knockback|{{#if:{{#dplvar:_npc_infobox:info:knockBackResist}}|{{#invoke:npcstat|format|lang={{lang}}|hardmodeonly={{{hardmode|}}}|expertonly={{{expertonly|}}}|{{#var:ni:auto_knockback}}|{{#var:ni:auto_knockback_e}}|{{#var:ni:auto_knockback_e_hm}}|{{#var:ni:auto_knockback_e_pp}}|{{#var:ni:auto_knockback_m}}|{{#var:ni:auto_knockback_m_hm}}|{{#var:ni:auto_knockback_m_pp}}}}}}}}}{{{knockback2|}}}}}{{#vardefine:ni:buffid|{{#if:{{{buffid|{{{buff|}}}}}}|{{{buffid|{{#if:{{#dplreplace:{{trim|{{{buff|}}}}}|/^[0-9]+$/|}}|{{buffIdFromName|{{{buff|}}}}}|{{{buff|}}}}}}}}}}}}{{#if:{{#var:ni:buffid}}|{{#vardefine:ni:buffduration|{{{buffduration|}}}}}{{#vardefine:ni:bufftip|{{{bufftip|{{tr|{{getBuffInfo|{{#var:ni:buffid}}|tooltip}}}}}}}}}}}{{#vardefine:ni:debuffid|{{#if:{{{debuff|}}}|{{#if:{{#dplreplace:{{trim|{{{debuff|}}}}}|/^[0-9]+$/|}}|{{buffIdFromName|{{{debuff|}}}}}|{{{debuff|}}}}}}}}}{{#if:{{#var:ni:debuffid}}|{{#vardefine:ni:debuffchance|{{#if:{{{debuffchance|}}}|{{#ifeq:{{#sub:{{{debuffchance|}}}|-2}}|##|{{#sub:{{{debuffchance|}}}|0|-2}}|{{{debuffchance|}}}}}}}}}{{#vardefine:ni:debuffchancenote|{{{debuffchancenote|}}}}}{{#vardefine:ni:debuffduration|{{{duration|{{{debuffduration|}}}}}}}}{{#vardefine:ni:debufftip|{{{debufftip|{{tr|{{getBuffInfo|{{#var:ni:debuffid}}|tooltip}}}}}}}}}{{#vardefine:ni:debuffmode|{{{debuffmode|}}}}}}}{{#vardefine:ni:debuffid2|{{#if:{{{debuff2|}}}|{{#if:{{#dplreplace:{{trim|{{{debuff2|}}}}}|/^[0-9]+$/|}}|{{buffIdFromName|{{{debuff2|}}}}}|{{{debuff2|}}}}}}}}}{{#vardefine:ni:drops|{{item/options|smallicons=y}}{{eicons/options|small=y}}{{#vardefine:dropclass|}}{{#dplvar:set|_npc_infobox:group|0|_npc_infobox:group_arg_1||_npc_infobox:group_arg_2|}}{{#fornumargs:i|v|{{#ifexpr:{{#vardefineecho:_mod|{{#expr:{{#var:i}} mod 3}}}}|{{#dplvar:set|_npc_infobox:group_arg_{{#var:_mod}}|{{#var:v}}}}|{{npc infobox/drop|{{#dplvar:_npc_infobox:group_arg_1}}|{{#dplvar:_npc_infobox:group_arg_2}}|{{#var:v}}}}}}}}{{item/options|reset}}{{eicons/options|reset}}}}