Template:Infobox boss enemy: Difference between revisions

From He is Coming Official Wiki
Created page with "<noinclude> == Example == The following is a sample output of this template: {{Infobox boss enemy | image = Black Knight.png | health = File:Icon health.png 10 | attack = File:Icon attack.png 0 | armor = File:Icon armor.png 5 | speed = File:Icon speed.png 0 | trait = Battle Start: Black Knight gains attack equal to the Player's attack plus 2 | week = 1 }} <pre> {{Infobox boss enemy | image = Black Knight.png | health = File:Icon health.png 1..."
 
Largestill (talk | contribs)
Fixing the "Infobox boss enemy" box to display information correctly on pages.
 
(17 intermediate revisions by 2 users not shown)
Line 3: Line 3:
The following is a sample output of this template:
The following is a sample output of this template:


{{Infobox boss enemy
{{Infobox boss enemy/as
  | image = Black Knight.png
  |{{{1|}}}
  | health = [[File:Icon health.png]] 10
| name = Black Knight
  | attack = [[File:Icon attack.png]] 0
  | health = 10
  | attack = [[File:Icon attack.png|link=]] 0
  | armor = [[File:Icon armor.png]] 5
  | armor = [[File:Icon armor.png]] 5
  | speed = [[File:Icon speed.png]] 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
  | week = 1
  | week = 1 <!-- Can be: the week the boss appears in Woodland (1/2/3), the fight stage the Swampland Hydra's head appears in (1/2/3/4), or the miniboss' biome (e.g. Spider Grove (Unknown name)) -->
| weektitle = Week <!-- the context in which the boss appears: e.g. Week (standard boss), Biome (miniboss) or Fight (Swampland Hydra head) -->
| 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
}}
}}
<pre>
<pre>
{{Infobox boss enemy
{{Infobox boss enemy/as
  | image = Black Knight.png
  |{{{1|}}}
  | health = [[File:Icon health.png]] 10
| name = Black Knight
  | attack = [[File:Icon attack.png]] 0
  | health = 10
  | armor = [[File:Icon armor.png]] 5
  | attack = 0
  | speed = [[File:Icon speed.png]] 0
  | armor = 5
  | trait = Battle Start: Black Knight gains attack equal to the Player's attack plus 2
  | speed = 0
  | week = 1
  | trait = Battle Start: Black Knight gains attack equal to the player's attack plus 2
  | week = 1 <!-- Can be: the week the boss appears in Woodland (1/2/3), the fight stage the Swampland Hydra's head appears in (1/2/3/4), or the miniboss' biome (e.g. Spider Grove (Unknown name)) -->
| weektitle = Week <!-- the context in which the boss appears: e.g. Week (standard boss), Biome (miniboss) or Fight (Swampland Hydra head) -->
| 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
}}
}}
</pre>
</pre>
<!-- Why is this here?
|-
! style="width:30%" | Base Stats
| colspan="12" style="text-align:center;width:61px;" | {{{health}}}<br>{{{attack}}}<br>{{{armor}}}<br>{{{speed}}}
-->
</noinclude>
</noinclude>


<includeonly>
<includeonly>
{| class="wikitable " style="float:right; clear:right; margin:0 0 1em 1em; width:350px;"
{| class="wikitable" style="float:right; clear:right; margin:0 0 1em 1em; max-width:350px; width:auto;"
|-
| colspan="13" style="background-color:#241319;border:none;"| {{Borderline}}
|-
! colspan="13" style="text-align:center;border:none;background-color:#241119;font-size:x-large" | {{{name}}}
|-
! colspan="13" style="text-align:center; padding:0; border:none;background-color:#241319;" |
[[File:{{{name}}} 16x.png|256x256px|center]]
|-
 
| colspan="13" style="background-color:#241319;border:none" | {{Borderline}}
|-
|-
! colspan="5" style="text-align:center; padding:0; background-color:#241319;" |
! colspan="13" style="text-align:center;background-color:#241119;border:none;" | {{{text}}}
[[File:{{{image}}}|256x256px|center]]
|-
|-
! style="width:30%" | Base Stats
! style="width:30%" | Base Stats
| style="text-align:center;width:61px;" | {{{health}}} || style="text-align:center;width:61px;" | {{{attack}}} || style="text-align:center;width:61px;" | {{{armor}}} || style="text-align:center;width:61px;" | {{{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
| colspan="4" style="text-align:center;" | {{{trait}}}
| colspan="12" style="text-align:center;" | {{{trait}}}
|-
|-
! Week
! {{{weektitle}}}
| colspan="4" style="text-align:center" | {{{week}}}  
| colspan="12" style="text-align:center" | {{{week}}}
|-
 
{{#ifeq:{{{itemdrops1|}}}| - |
 
|
! style="width:30%" {{!}} Item Drops
{{!}} colspan="4" style="text-align:center;width:23.3%;" {{!}} [[File:{{{itemdrops1}}} 16x.png | 54px | link=https://wiki.hoodedhorse.com/He_is_Coming/{{#replace:{{{itemdrops1}}}| |_}} | {{{itemdrops1}}}]] {{!}}{{!}} colspan="4" style="text-align:center;width:23.3%;" {{!}} [[File:{{{itemdrops2}}} 16x.png | 54px | link=https://wiki.hoodedhorse.com/He_is_Coming/{{#replace:{{{itemdrops2}}}| |_}} | {{{itemdrops2}}}]] {{!}}{{!}} colspan="4" style="text-align:center;width:23.3%;" {{!}} [[File:{{{itemdrops3}}} 16x.png | 54px | link=https://wiki.hoodedhorse.com/He_is_Coming/{{#replace:{{{itemdrops3}}}| |_}} | {{{itemdrops3}}}]]
}}
 
|-
| style="width:30%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
| style="width:5.833%; padding:0; border:none; height:0;" |
|-
 
|}
|}
</includeonly>
</includeonly>

Latest revision as of 05:39, 6 April 2026

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 <!-- Can be: the week the boss appears in Woodland (1/2/3), the fight stage the Swampland Hydra's head appears in (1/2/3/4), or the miniboss' biome (e.g. Spider Grove (Unknown name)) -->
 | weektitle = Week <!-- the context in which the boss appears: e.g. Week (standard boss), Biome (miniboss) or Fight (Swampland Hydra head) -->
 | 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
}}