Jump to content

Template:Infobox item: Difference between revisions

From Megabonk Wiki
Created page with "<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;" |- ! 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..."
 
No edit summary
Line 36: Line 36:
* '''notes''': Any additional notes or synergies for the item.
* '''notes''': Any additional notes or synergies for the item.


=== Example for a Default Item (Moldy Cheese) ===
=== Example for Moldy Cheese ===
Copy and paste the following code onto an item's page and fill in the details.
Copy and paste the following code onto an item's page and fill in the details.
<pre>
<pre>
Line 49: Line 49:
}}
}}
</pre>
</pre>
=== Example for an Unlockable Item (Battery) ===
<pre>
{{Infobox item
| name    = Battery
| image    = Battery.png
| rarity  = Common
| type    = Item
| effect  = +8% Attack Speed.
| unlock  = Upgrade ''Cooldown Tome'' to Level 5.
| notes    = None
}}
</pre>
</noinclude>

Revision as of 13:15, 4 October 2025

Usage

This template creates an infobox for items in Megabonk.

Required Parameters

  • name: The name of the item.
  • rarity: The item's rarity (e.g., Default, Common, Rare, Epic, Legendary).
  • effect: The in-game description of the item's effect.
  • unlock: The condition required to unlock the item. For default items, this can be left as "Default Item".

Optional Parameters

  • image: The file name for the item's image (e.g., Moldy Cheese.png). Defaults to the page name if not provided.
  • type: The type of item. Defaults to "Item".
  • notes: Any additional notes or synergies for the item.

Example for Moldy Cheese

Copy and paste the following code onto an item's page and fill in the details.

{{Infobox item
| name     = Moldy Cheese
| image    = Moldy Cheese.png
| rarity   = Default
| type     = Item
| effect   = +40% chance to poison enemies on hit.
| unlock   = Default Item
| notes    = A reliable source of healing, especially effective with builds that kill many enemies quickly.
}}