Jump to content

Template:Infobox character: Difference between revisions

From Megabonk Wiki
No edit summary
Tag: Reverted
Undo revision 735 by MegaAdmin (talk)
Tag: Undo
Line 1: Line 1:
<includeonly>
<includeonly>
{| 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;"
{| 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;"
|-
|-
! 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; font-size:1.15em; padding:.45em; color:#FFD47F; background:rgba(255,255,255,.03);" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|280px|center|alt={{{name|}}} character|{{{name|}}}]]
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|240px|center|alt={{{name|}}} character|{{{name|}}}]]
|-
|-
! 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); border-radius:6px;" | Unlock
|-
! 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);" | Default Weapon
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Default weapon
| style="padding:.4em;" | {{{weapon|—}}}
| style="padding:.4em;" | {{{weapon|—}}}
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | RNG Blessing
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | RNG Blessing
| style="padding:.4em;" | {{{blessing|—}}}
| style="padding:.4em;" | {{{blessing|—}}}
|-
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Role
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Difficulty
| style="padding:.4em;" | {{{difficulty|—}}}
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Role
| style="padding:.4em;" | {{{role|—}}}
| 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="padding:.4em; background:rgba(255,212,127,.08);" | Shield
| 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           =  
| name       = Fox
| image         = | unlock         =  
| image     = Fox.png
| weapon         =  
| unlock     = Default
| blessing       =
| weapon     = Firestaff
| role          = | max_hp        =
| blessing  = +1% Luck per level
| shield        =
| difficulty = Easy
| armor          =
| role      = Ranged
| evasion        =
| thorns        =
| lifesteal      =
| damage        =
| crit_chance    =
| crit_damage    =
| attack_speed   =  
| move_speed    =  
| luck          =
| jump_height    =
| extra_jumps    =
| pickup_range  =  
}}
}}
</pre>


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

Revision as of 20:01, 2 October 2025

Usage

Fox
Fox character
Fox
Unlock Default
Default weapon Firestaff
RNG Blessing +1% Luck per level
Difficulty Easy
Role Ranged


Example (copy-paste code)

{{Infobox character
| name       = Fox
| image      = Fox.png
| unlock     = Default
| weapon     = Firestaff
| blessing   = +1% Luck per level
| difficulty = Easy
| role       = Ranged
}}