Template:Infobox boss enemy: Difference between revisions

From He is Coming Official Wiki
Benjiminio (talk | contribs)
boss drop item icons now have tooltip and link to their own item page (instead of image asset page). Removed link from base state icon images (to own asset page)
Benjiminio (talk | contribs)
now ignores image declarations in Base Stats and just sets the icon image correctly itself
Line 6: Line 6:
  |{{{1|}}}
  |{{{1|}}}
  | name = Black Knight
  | name = Black Knight
  | health = [[File:Icon health.png|link=]] 10
  | health = 10
  | attack = [[File:Icon attack.png|link=]] 0
  | attack = [[File:Icon attack.png|link=]] 0
  | armor = [[File:Icon armor.png|link=]] 5
  | armor = [[File:Icon armor.png]] 5
  | speed = [[File:Icon speed.png|link=]] 0
  | speed = [[File:Icon speed.png|link=]] 0
  | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
  | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
Line 22: Line 22:
  |{{{1|}}}
  |{{{1|}}}
  | name = Black Knight
  | name = Black Knight
  | health = [[File:Icon health.png|link=]] 10
  | health = 10
  | attack = [[File:Icon attack.png|link=]] 0
  | attack = 0
  | armor = [[File:Icon armor.png|link=]] 5
  | armor = 5
  | speed = [[File:Icon speed.png|link=]] 0
  | speed = 0
  | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
  | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
  | week = 1 <!-- must be either the week the boss appears in (1/2/3), or the biome for the miniboss (e.g. Spider Grove (Unknown name)) -->
  | week = 1 <!-- must be either the week the boss appears in (1/2/3), or the biome for the miniboss (e.g. Spider Grove (Unknown name)) -->
Line 60: Line 60:
|-
|-
! style="width:30%" | Base Stats
! style="width:30%" | Base Stats
| colspan="3" style="text-align:center; width:17.5%;" | {{{health}}} || colspan="3" style="text-align:center; width:17.5%;" | {{{attack}}} || colspan="3" style="text-align:center; width:17.5%;" | {{{armor}}} || colspan="3" style="text-align:center; vertical-align:middle; width:17.5%;" | {{{speed}}}
| colspan="3" style="text-align:center;" | [[File:Icon health.png|link=]] {{#invoke:InfoboxBossEnemy|extractStat|{{{health|0}}}}}
| colspan="3" style="text-align:center;" | [[File:Icon attack.png|link=]] {{#invoke:InfoboxBossEnemy|extractStat|{{{attack|0}}}}}
| colspan="3" style="text-align:center;" | [[File:Icon armor.png|link=]] {{#invoke:InfoboxBossEnemy|extractStat|{{{armor|0}}}}}
| colspan="3" style="text-align:center;" | [[File:Icon speed.png|link=]] {{#invoke:InfoboxBossEnemy|extractStat|{{{speed|0}}}}}
|-
|-
! Trait
! Trait

Revision as of 16:47, 24 October 2025

Example

The following is a sample output of this template:


Black Knight
Once sworn to the ancient Order of Knights, he cast aside his vow when the crown promised power beyond mortal reach. Now he bears no sigil, only armor blackened by betrayal.
Base Stats 10 0 5 0
Trait Battle Start: Black Knight gains attack equal to the player's attack plus 2
Week 1
Item Drops Bearclaw Blade Tempest Blade Mountain Cleaver
{{Infobox boss enemy/as
 |{{{1|}}}
 | name = Black Knight
 | health = 10
 | attack = 0
 | armor = 5
 | speed = 0
 | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
 | week = 1 <!-- must be either the week the boss appears in (1/2/3), or the biome for the miniboss (e.g. Spider Grove (Unknown name)) -->
 | weektitle = Week <!-- must be either Week (boss) or Biome (miniboss) -->
 | text = Once sworn to the ancient Order of Knights, he cast aside his vow when the crown promised power beyond mortal reach. Now he bears no sigil, only armor blackened by betrayal.
 | itemdrops1 = Bearclaw Blade
 | itemdrops2 = Tempest Blade
 | itemdrops3 = Mountain Cleaver
}}