Jump to content

Template:Infobox character: Difference between revisions

From Megabonk Wiki
No edit summary
Tags: Manual revert Reverted
mNo edit summary
Tag: Manual revert
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width:320px; font-size:90%; line-height:1.3;"
{| class="infobox" style="max-width:100%; 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:120%;" | {{{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;" |
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|198px|center|alt={{{name|}}} character|{{{name|}}}]]
  [[File:{{{image|Placeholder.png}}}|300px|alt={{{alt|{{{name|{{PAGENAME}}}} Megabonk character}}}}|class=character-image|link=]]
{{#if:{{{caption|}}}|
|-
|-
| colspan="2" style="text-align:center; font-style:italic; color:#555;" | {{{caption}}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Unlock
}}
| style="padding:.4em;" | {{{unlock|—}}}
 
|-
|-
! Availability
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Default Weapon
| {{#if:{{{availability|}}}|{{{availability}}}|—}} {{#if:{{{unlock_note|}}}|<br /><small>{{{unlock_note}}}</small>}}
| style="padding:.4em;" | {{{weapon|—}}}
|-
|-
! Unlock Method
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | RNG Blessing
| {{#if:{{{unlock|}}}|{{{unlock}}}|—}}
| style="padding:.4em;" | {{{blessing|—}}}
|-
|-
! Default Weapon
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Role
| {{#if:{{{weapon|}}}|[[{{{weapon}}}]]<br /><small>(see [[Weapons]])</small>|}}
| style="padding:.4em;" | {{{role|—}}}
|-
|- style="display:{{#if: {{{max_hp|}}}{{{shield|}}}{{{armor|}}}{{{evasion|}}}{{{thorns|}}}{{{lifesteal|}}}{{{damage|}}}{{{crit_chance|}}}{{{crit_damage|}}}{{{attack_speed|}}}{{{move_speed|}}}{{{luck|}}}{{{jump_height|}}}{{{extra_jumps|}}}{{{pickup_range|}}} | table-row | none }};"
! RNG Blessing / Traits
! colspan="2" style="text-align:center; font-size:1.1em; padding:.4em; color:#FFD47F; background:rgba(0,0,0,.1);" | Stats
| {{#if:{{{rng|}}}|{{{rng}}}|}}
|- style="display:{{#if:{{{max_hp|}}}{{{armor|}}}{{{shield|}}}{{{evasion|}}}{{{thorns|}}}|table-row|none}};"
|-
! colspan="2" style="text-align:center; padding:.2em; font-size:0.9em; background:rgba(255,255,255,.05);" | Defensive
! Role / Class
|- style="display:{{#if:{{{max_hp|}}}|table-row|none}};"
| {{#if:{{{role|}}}|{{{role}}}|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Max HP
|-
| style="padding:.4em;" | {{{max_hp|}}}
! Starting Map
|- style="display:{{#if:{{{armor|}}}|table-row|none}};"
| {{#if:{{{map|}}}|{{{map}}}|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Armor
|-
| style="padding:.4em;" | {{{armor|}}}
! Faction
|- style="display:{{#if:{{{shield|}}}|table-row|none}};"
| {{#if:{{{faction|}}}|{{{faction}}}|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Shield
|-
| style="padding:.4em;" | {{{shield|}}}
! Related Quests
|- style="display:{{#if:{{{evasion|}}}|table-row|none}};"
| {{#if:{{{quests|}}}|{{{quests}}}|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Evasion
|-
| style="padding:.4em;" | {{{evasion|}}}
! Related Challenges
|- style="display:{{#if:{{{thorns|}}}|table-row|none}};"
| {{#if:{{{challenges|}}}|{{{challenges}}}|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Thorns
|-
| style="padding:.4em;" | {{{thorns|}}}
! Tome / Items Synergy
|- style="display:{{#if:{{{damage|}}}{{{crit_chance|}}}{{{crit_damage|}}}{{{attack_speed|}}}{{{lifesteal|}}}|table-row|none}};"
| {{#if:{{{synergy|}}}|{{{synergy}}}|}}
! colspan="2" style="text-align:center; padding:.2em; font-size:0.9em; background:rgba(255,255,255,.05);" | Offensive
|-
|- style="display:{{#if:{{{damage|}}}|table-row|none}};"
! Base Stats
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Damage
| {{#if:{{{hp|}}}|'''HP:''' {{{hp}}}<br />|}}
| style="padding:.4em;" | {{{damage|}}}
  {{#if:{{{armor|}}}|'''Armor:''' {{{armor}}}<br />|}}
|- style="display:{{#if:{{{crit_chance|}}}|table-row|none}};"
  {{#if:{{{damage|}}}|'''Damage:''' {{{damage}}}<br />|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Crit Chance
  {{#if:{{{speed|}}}|'''Speed:''' {{{speed}}}<br />|}}
| style="padding:.4em;" | {{{crit_chance|}}}
  {{#if:{{{crit|}}}|'''Crit Chance:''' {{{crit}}}%<br />|}}
|- style="display:{{#if:{{{attack_speed|}}}|table-row|none}};"
  {{#if:{{{luck|}}}|'''Luck:''' {{{luck}}}%<br />|}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Attack Speed
  {{#if:{{{evasion|}}}|'''Evasion:''' {{{evasion}}}%<br />|}}
| style="padding:.4em;" | {{{attack_speed|}}}
  {{#if:{{{thorns|}}}|'''Thorns:''' {{{thorns}}}|}}
|- style="display:{{#if:{{{lifesteal|}}}|table-row|none}};"
|-
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Lifesteal
! Per-Level Growth
| style="padding:.4em;" | {{{lifesteal|}}}
| {{#if:{{{growth|}}}|{{{growth}}}|}}
|- style="display:{{#if:{{{move_speed|}}}{{{luck|}}}{{{pickup_range|}}}{{{jump_height|}}}{{{extra_jumps|}}}|table-row|none}};"
|-
! colspan="2" style="text-align:center; padding:.2em; font-size:0.9em; background:rgba(255,255,255,.05);" | Utility
! Notes
|- style="display:{{#if:{{{move_speed|}}}|table-row|none}};"
| {{#if:{{{notes|}}}|{{{notes}}}|—}}
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Move Speed
| style="padding:.4em;" | {{{move_speed|}}}
|- style="display:{{#if:{{{luck|}}}|table-row|none}};"
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Luck
| style="padding:.4em;" | {{{luck|}}}
|- style="display:{{#if:{{{pickup_range|}}}|table-row|none}};"
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Pickup Range
| style="padding:.4em;" | {{{pickup_range|}}}
|- style="display:{{#if:{{{jump_height|}}}|table-row|none}};"
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Jump Height
| style="padding:.4em;" | {{{jump_height|}}}
|- style="display:{{#if:{{{extra_jumps|}}}|table-row|none}};"
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08);" | Extra Jumps
| style="padding:.4em;" | {{{extra_jumps|}}}
|}
|}
{{#if:{{{nocat|}}}||[[Category:Characters]]}}
</includeonly><noinclude>
</includeonly>
This template creates a standardized infobox for character pages.
<noinclude>
 
== Usage ==
== Usage ==
Example:
Below is a live preview of the template using an example. Underneath the preview, you can find the blank code to copy for use on a new page.
 
{{Infobox character
| name        = Athena
| image        = Athena.png
| unlock      = Upgrade the Thorns Tome to Level 9.
| weapon      = Aegis
| blessing    = Deal more damage on lower HP. Gain 1 Thorns per level.
| difficulty  = Medium
| role        = Tank / Bruiser
| max_hp      = 125 (+25)
| armor        = 17% (+17%)
| thorns      = 5 (+5)
| damage      = 1.1x
| luck        = -5%
}}
 
=== Blank Code for Copy-Pasting ===
<pre>
<pre>
{{Infobox character
{{Infobox character
| name        = Fox
| name         =
| image       = Fox.png
| image       =  
| alt         = Fox Megabonk character
| unlock      =
| caption    = Starter character
| weapon       =  
| availability= Starting character
| blessing    =
| unlock     =
| difficulty  =
| weapon      = Firestaff
| role         =  
| rng        = +1% Luck per level
| max_hp      =  
| role        = Ranged
| shield      =  
| map         = [[Forest]]
| armor        =
| hp          = 100
| evasion     =  
| damage      = 10
| thorns      =
| growth      = +1% Luck per level
| damage      =
| crit_chance  =
| crit_damage  =
| attack_speed =  
| lifesteal    =  
| move_speed  =  
| luck         =  
| pickup_range =  
| jump_height  =  
| extra_jumps  =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 20:31, 2 October 2025

This template creates a standardized infobox for character pages.

Usage

Below is a live preview of the template using an example. Underneath the preview, you can find the blank code to copy for use on a new page.


Athena
Athena character
Athena
Unlock Upgrade the Thorns Tome to Level 9.
Default Weapon Aegis
RNG Blessing Deal more damage on lower HP. Gain 1 Thorns per level.
Role Tank / Bruiser
Stats
Defensive
Max HP 125 (+25)
Armor 17% (+17%)
Shield
Evasion
Thorns 5 (+5)
Offensive
Damage 1.1x
Crit Chance
Attack Speed
Lifesteal
Utility
Move Speed
Luck -5%
Pickup Range
Jump Height
Extra Jumps


Blank Code for Copy-Pasting

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