Jump to content

Template:Infobox character: Difference between revisions

From Megabonk Wiki
Undo revision 733 by MegaAdmin (talk)
Tag: Undo
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width:240px; float:right; margin:0 0 12px 12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.14); font-size:90%; text-align:left; line-height:1.45;"
{| class="infobox" style="width:280px; float:right; margin:0 0 12px 12px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.14); font-size:90%; text-align:left; line-height:1.45;"
|-
|-
! colspan="2" style="text-align:center; font-size:1.15em; padding:.45em; color:#FFD47F; background:rgba(255,255,255,.03);" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="text-align:center; font-size:1.3em; padding:.5em; color:#FFD47F; background:rgba(255,255,255,.03);" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|240px|center|alt={{{name|}}} character|{{{name|}}}]]
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|280px|center|alt={{{name|}}} character|{{{name|}}}]]
|-
|-
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Unlock
! colspan="2" style="text-align:center; font-size:1.1em; padding:.4em; color:#FFD47F; background:rgba(0,0,0,.1);" | General Information
|-
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Unlock
| style="padding:.4em;" | {{{unlock|—}}}
| style="padding:.4em;" | {{{unlock|—}}}
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Default weapon
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Default Weapon
| style="padding:.4em;" | {{{weapon|—}}}
| style="padding:.4em;" | {{{weapon|—}}}
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | RNG Blessing
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | RNG Blessing
| style="padding:.4em;" | {{{blessing|—}}}
| style="padding:.4em;" | {{{blessing|—}}}
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Difficulty
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Role
| style="padding:.4em;" | {{{difficulty|}}}
| style="padding:.4em;" | {{{role|—}}}
|-
{{#if: {{{max_hp|}}}{{{shield|}}}{{{armor|}}}{{{evasion|}}}{{{thorns|}}}{{{lifesteal|}}}{{{damage|}}}{{{crit_chance|}}}{{{crit_damage|}}}{{{attack_speed|}}}{{{move_speed|}}}{{{luck|}}}{{{jump_height|}}}{{{extra_jumps|}}}{{{pickup_range|}}}
|
! colspan="2" style="text-align:center; font-size:1.1em; padding:.4em; color:#FFD47F; background:rgba(0,0,0,.1);" | Stats
}}
{{#if: {{{max_hp|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Max HP
| style="padding:.4em;" | {{{max_hp}}}
}}
{{#if: {{{shield|}}}
|
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Role
! style="padding:.4em; background:rgba(255,212,127,.08);" | Shield
| style="padding:.4em;" | {{{role|}}}
| style="padding:.4em;" | {{{shield}}}
}}
{{#if: {{{armor|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Armor
| style="padding:.4em;" | {{{armor}}}
}}
{{#if: {{{evasion|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Evasion
| style="padding:.4em;" | {{{evasion}}}
}}
{{#if: {{{thorns|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Thorns
| style="padding:.4em;" | {{{thorns}}}
}}
{{#if: {{{lifesteal|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Lifesteal
| style="padding:.4em;" | {{{lifesteal}}}
}}
{{#if: {{{damage|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Damage
| style="padding:.4em;" | {{{damage}}}
}}
{{#if: {{{crit_chance|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Crit Chance
| style="padding:.4em;" | {{{crit_chance}}}
}}
{{#if: {{{crit_damage|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Crit Damage
| style="padding:.4em;" | {{{crit_damage}}}
}}
{{#if: {{{attack_speed|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Attack Speed
| style="padding:.4em;" | {{{attack_speed}}}
}}
{{#if: {{{move_speed|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Movement Speed
| style="padding:.4em;" | {{{move_speed}}}
}}
{{#if: {{{luck|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Luck
| style="padding:.4em;" | {{{luck}}}
}}
{{#if: {{{jump_height|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Jump Height
| style="padding:.4em;" | {{{jump_height}}}
}}
{{#if: {{{extra_jumps|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Extra Jumps
| style="padding:.4em;" | {{{extra_jumps}}}
}}
{{#if: {{{pickup_range|}}}
|
|-
! style="padding:.4em; background:rgba(255,212,127,.08);" | Pickup Range
| style="padding:.4em;" | {{{pickup_range}}}
}}
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
This template is used to create a standardized infobox on character pages.
== Usage ==
== Usage ==
Copy the blank template below and paste it onto a character page, then fill in the relevant details. ''You only need to fill in the stats that are different from the standard values.'' Any stat parameter left blank will be automatically hidden from the infobox.
=== Blank Template ===
<pre>
{{Infobox character
{{Infobox character
| name       = Fox
| name           =  
| image     = Fox.png
| image         = | unlock         =  
| unlock     = Default
| weapon         =  
| weapon     = Firestaff
| blessing       =
| blessing  = +1% Luck per level
| role          = | max_hp        =
| difficulty = Easy
| shield        =
| role      = Ranged
| armor          =
| evasion        =
| thorns        =
| lifesteal      =
| damage        =
| crit_chance    =
| crit_damage    =
| attack_speed   =  
| move_speed    =
| luck          =  
| jump_height    =
| extra_jumps    =
| pickup_range  =  
}}
}}
</pre>


=== Example (copy-paste code) ===
=== Example (Athena) ===
<pre>
<pre>
{{Infobox character
{{Infobox character
| name       = Fox
| name           = Athena
| image     = Fox.png
| image         = Athena_Icon.png
| unlock     = Default
| unlock         = Upgrade the Thorns Tome to Level 9.
| weapon     = Firestaff
| weapon         = Aegis
| blessing   = +1% Luck per level
| blessing       = Deal more damage on lower HP. Gain 1 Thorns per level.
| difficulty = Easy
| role          = Tank / Bruiser
| role      = Ranged
| max_hp        = 125 (+25)
| armor          = 17% (+17%)
| thorns        = 5 (+5)
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 20:01, 2 October 2025

This template is used to create a standardized infobox on character pages.

Usage

Copy the blank template below and paste it onto a character page, then fill in the relevant details. You only need to fill in the stats that are different from the standard values. Any stat parameter left blank will be automatically hidden from the infobox.

Blank Template

{{Infobox character
| name           = 
| image          = | unlock         = 
| weapon         = 
| blessing       = 
| role           = | max_hp         = 
| shield         = 
| armor          = 
| evasion        = 
| thorns         = 
| lifesteal      = 
| damage         = 
| crit_chance    = 
| crit_damage    = 
| attack_speed   = 
| move_speed     = 
| luck           = 
| jump_height    = 
| extra_jumps    = 
| pickup_range   = 
}}

Example (Athena)

{{Infobox character
| name           = Athena
| image          = Athena_Icon.png
| unlock         = Upgrade the Thorns Tome to Level 9.
| weapon         = Aegis
| blessing       = Deal more damage on lower HP. Gain 1 Thorns per level.
| role           = Tank / Bruiser
| max_hp         = 125 (+25)
| armor          = 17% (+17%)
| thorns         = 5 (+5)
}}