Template:BG Food: Difference between revisions

From Blockgame Wiki
m (Consumable Buffs display bug fix)
(added negative health and negative health regeneration)
Line 66: Line 66:
   | <tr><td style="vertical-align:top;white-space:nowrap"><b>Status effects :&nbsp;</b></td><td>{{#if: {{{buff_1|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_1}}}]] ({{{bufftime_1|0}}}s)</p>|}}{{#if: {{{buff_2|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_2}}}]] ({{{bufftime_2|0}}}s)</p>|}}{{#if: {{{buff_3|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_3}}}]] ({{{bufftime_3|0}}}s)</p>|}}{{#if: {{{buff_4|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_4}}}]] ({{{bufftime_4|0}}}s)</p>|}}{{#if: {{{buff_5|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_5}}}]] ({{{bufftime_5|0}}}s)</p>|}}{{#if: {{{buff_6|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_6}}}]] ({{{bufftime_6|0}}}s)</p>|}}</td></tr>
   | <tr><td style="vertical-align:top;white-space:nowrap"><b>Status effects :&nbsp;</b></td><td>{{#if: {{{buff_1|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_1}}}]] ({{{bufftime_1|0}}}s)</p>|}}{{#if: {{{buff_2|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_2}}}]] ({{{bufftime_2|0}}}s)</p>|}}{{#if: {{{buff_3|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_3}}}]] ({{{bufftime_3|0}}}s)</p>|}}{{#if: {{{buff_4|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_4}}}]] ({{{bufftime_4|0}}}s)</p>|}}{{#if: {{{buff_5|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_5}}}]] ({{{bufftime_5|0}}}s)</p>|}}{{#if: {{{buff_6|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_6}}}]] ({{{bufftime_6|0}}}s)</p>|}}</td></tr>
}}{{#if:
}}{{#if:
   {{{hunger|}}}{{{health|}}}{{{health_reg|}}}{{{healing_rcv|}}}{{{mg_reduction|}}}{{{defense|}}}{{{block_rating|}}}{{{block_power|}}}{{{block_cd_reduct|}}}{{{weapon_dmg|}}}{{{projectile_dmg|}}}{{{haumaturgy_dmg|}}}{{{magic_dmg|}}}{{{plus_spd|}}}{{{minus_spd|}}}{{{plus_threat|}}}{{{minus_threat|}}}
   {{{hunger|}}}{{{health|}}}{{{minus_health|}}}{{{health_reg|}}}{{{minus_health_reg|}}}{{{healing_rcv|}}}{{{mg_reduction|}}}{{{defense|}}}{{{block_rating|}}}{{{block_power|}}}{{{block_cd_reduct|}}}{{{weapon_dmg|}}}{{{projectile_dmg|}}}{{{haumaturgy_dmg|}}}{{{magic_dmg|}}}{{{plus_spd|}}}{{{minus_spd|}}}{{{plus_threat|}}}{{{minus_threat|}}}
   | <tr><td style="vertical-align:top;white-space:nowrap"><b>Consumable Buffs :</b></td><td>
   | <tr><td style="vertical-align:top;white-space:nowrap"><b>Consumable Buffs :</b></td><td>
}}{{#if:
}}{{#if:
Line 74: Line 74:
   {{{health|}}}
   {{{health|}}}
   |<tr><td style="vertical-align:top">❤&nbsp;<b>Health:</b></td><td style="white-space:nowrap"><span style="color:#00a800;">+{{{health}}}</span> for <span style="color:#aba99f;">{{{health_time}}}</span>s</td></tr> |
   |<tr><td style="vertical-align:top">❤&nbsp;<b>Health:</b></td><td style="white-space:nowrap"><span style="color:#00a800;">+{{{health}}}</span> for <span style="color:#aba99f;">{{{health_time}}}</span>s</td></tr> |
}}{{#if:
  {{{minus_health|}}}
  |<tr><td style="vertical-align:top">❤&nbsp;<b>Health:</b></td><td style="white-space:nowrap"><span style="color:#00a800;">+{{{minus_health}}}</span> for <span style="color:#aba99f;">{{{minus_health_time}}}</span>s</td></tr> |
}}{{#if:
}}{{#if:
   {{{health_reg|}}}
   {{{health_reg|}}}
   |<tr><td style="vertical-align:top">❤&nbsp;<b>Health&nbsp;Regeneration:</b></td><td style="white-space:nowrap"><span style="color:#00a800;">+{{{health_reg}}}</span> for <span style="color:#aba99f;">{{{health_reg_time}}}</span>s</td></tr> |
   |<tr><td style="vertical-align:top">❤&nbsp;<b>Health&nbsp;Regeneration:</b></td><td style="white-space:nowrap"><span style="color:#00a800;">+{{{health_reg}}}</span> for <span style="color:#aba99f;">{{{health_reg_time}}}</span>s</td></tr> |
}}{{#if:
  {{{minus_health_reg|}}}
  |<tr><td style="vertical-align:top">❤&nbsp;<b>Health&nbsp;Regeneration:</b></td><td style="white-space:nowrap"><span style="color:red;">-{{{minus_health_reg}}}</span> for <span style="color:#aba99f;">{{{minus_health_reg_time}}}</span>s</td></tr> |
}}{{#if:
}}{{#if:
   {{{healing_rcv|}}}
   {{{healing_rcv|}}}

Revision as of 19:35, 10 September 2024

Documentation
This template's documentation has been marked as bad. Please improve or add to it.
{{BG_Food|
|type=type
|subtype=subtype
|rarity=rarity
|obtain=obtain
|source=source
|merchant=merchant
|cooking_req=777
|material_cost=material_cost
|lore=lore
|enchant_1=enchant_1
|enchant_2=enchant_2
|enchant_3=enchant_3
|enchant_4=enchant_4
|tooltip=tooltip
|hp=777
|hyd=777
|sat=777
|buff_1=buff_1
|buff_2=buff_2
|buff_3=buff_3
|buff_4=buff_4
|buff_5=buff_5
|buff_6=buff_6
|bufftime_1=777
|bufftime_2=777
|bufftime_3=777
|bufftime_4=777
|bufftime_5=777
|bufftime_6=777
|cd=777
|charges=777
|tooltip=tooltip
|tooltip_green=tooltip_green
|tooltip_red=tooltip_red
|DoD=DoD
|buff_replace=Yes
|hunger=777
|hunger_time=777
|health=777
|health_time=777
|minus_health=777
|minus_health_time=777
|health_reg=777
|health_reg_time=777
|minus_health_reg=777
|minus_health_reg_time=777
|healing_rcv=777
|healing_rcv_time=777
|dmg_reduction=777
|dmg_reduction_time=777
|defense=777
|defense_time=777
|block_rating=777
|block_rating_time=777
|block_power=777
|block_power_time=777
|block_cd_reduct=777
|block_cd_reduct_time=777
|fall_reduct=777
|fall_reduct_time=777
|all_dmg=777
|all_dmg_time=777
|weapon_dmg=777
|weapon_dmg_time=777
|projectile_dmg=777
|projectile_dmg_time=777
|thaumaturgy_dmg=777
|thaumaturgy_dmg_time=777
|magic_dmg=777
|magic_dmg_time=777
|backstab_dmg=777
|backstab_dmg_time=777
|cd_reduct=777
|cd_reduct_time=777
|knockback_resist=777
|knockback_resist_time=777
|aoe_size_amp=777
|aoe_size_amp_time=777
|plus_spd=777
|plus_spd_time=777
|minus_spd=777
|minus_spd_time=777
|plus_threat=777
|plus_threat_time=777
|minus_threat=777
|minus_threat_time=777
|mining_exp=777
|mining_exp_time=777
|mining_skill=777
|mining_skill_time=777
|logging_exp=777
|logging_exp_time=777
|logging_skill=777
|logging_skill_time=777
|arch_exp=777
|arch_exp_time=777
|arch_skill=777
|arch_skill_time=777
|fishing_exp=777
|fishing_exp_time=777
|fishing_skill=777
|fishing_skill_time=777
|fishing_crit=777
|fishing_crit_time=777
|herb_exp=777
|herb_exp_time=777
|herb_skill=777
|herb_skill_time=777
|hunting_exp=777
|hunting_exp_time=777
|hunting_skill=777
|hunting_skill_time=777
|cooking_exp=777
|cooking_exp_time=777
|rune_exp=777
|rune_exp_time=777
|alch_exp=777
|alch_exp_time=777
}}