Jump to content

Template:Infobox tome: Difference between revisions

From Megabonk Wiki
No edit summary
No edit summary
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);"
{| class="infobox" style="
  width:260px; float:right; margin:0 0 12px 12px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
  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:.35em; color:#FFD47F; background:rgba(255,255,255,.03);" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="
  text-align:center; font-size:1.05em; letter-spacing:.2px;
  padding:.55em .6em; color:#FFD47F;
  background:linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,.06));" |
  {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align:center; padding:.3em;" | [[File:{{{image|Placeholder.png}}}|240px|center|{{{name|}}}]]
{{#if:{{{image|}}}|
| colspan="2" style="text-align:center; padding:.35em .35em .2em;" |
  [[File:{{{image}}}|256px|center|{{{name|}}}]]
}}
|-
|-
! style="width:40%; white-space:nowrap;" | Stat
! style="width:42%; white-space:nowrap; padding:.5em .6em; background:rgba(255,255,255,.03);" | Stat
| style="padding:.3em;" | {{{stat|—}}}
| style="padding:.5em .6em;" | {{{stat|—}}}
|-
|-
! Base upgrade
! style="white-space:nowrap; padding:.5em .6em; background:rgba(255,255,255,.03);" | Base upgrade
| style="padding:.3em;" | {{{upgrade|—}}}
| style="padding:.5em .6em;" | {{{upgrade|—}}}
|-
|-
! How to unlock
! style="white-space:nowrap; padding:.5em .6em; background:rgba(255,255,255,.03);" | How to unlock
| style="padding:.3em;" | {{{unlock|—}}}
| style="padding:.5em .6em;" | {{{unlock|—}}}
|-
|-
! Max level
! style="white-space:nowrap; padding:.5em .6em; background:rgba(255,255,255,.03);" | Max level
| style="padding:.3em;" | {{{max|99}}}
| style="padding:.5em .6em;" | {{{max|99}}}
{{#if:{{{effect|}}}|
|-
|-
! Effect
! style="white-space:nowrap; padding:.5em .6em; background:rgba(255,255,255,.03);" | Effect
| style="padding:.3em;" | {{{effect|}}}
| style="padding:.5em .6em;" | {{{effect}}}
}}
|}
|}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
This infobox is for Megabonk Tomes.
This infobox is for Megabonk Tomes (enhanced style).


== Usage ==
== Usage ==
Place it at the top of a Tome page:
<pre>
<pre>
{{Tome
{{Tome
Line 42: Line 55:
'''Parameters'''
'''Parameters'''
* <code>name</code> – optional; defaults to {{PAGENAME}}
* <code>name</code> – optional; defaults to {{PAGENAME}}
* <code>image</code> – optional; defaults to <i>Placeholder.png</i>
* <code>image</code> – optional; if omitted, image row is hidden
* <code>stat</code> – the stat affected by the Tome
* <code>stat</code> – the affected stat
* <code>upgrade</code> – base per-level increase
* <code>upgrade</code> – base per-level increase
* <code>unlock</code> – how to unlock the Tome
* <code>unlock</code> – how to unlock the Tome
* <code>max</code> – maximum Tome level (default 99)
* <code>max</code> – maximum level (default 99)
* <code>effect</code> – short one-line effect summary (optional)
* <code>effect</code> – optional; if omitted, row is hidden
</noinclude>
</noinclude>

Revision as of 10:05, 2 October 2025


This infobox is for Megabonk Tomes (enhanced style).

Usage

{{Tome
| name    = Agility Tome
| image   = Placeholder.png
| stat    = Movement Speed
| upgrade = +15%
| unlock  = Default
| max     = 99
| effect  = Increases overall movement speed; improves kiting and repositioning.
}}

Parameters

  • name – optional; defaults to Infobox tome
  • image – optional; if omitted, image row is hidden
  • stat – the affected stat
  • upgrade – base per-level increase
  • unlock – how to unlock the Tome
  • max – maximum level (default 99)
  • effect – optional; if omitted, row is hidden