Jump to content

Template:Infobox item: Difference between revisions

From Megabonk Wiki
No edit summary
No edit summary
Line 14: Line 14:
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Effect
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Effect
| style="padding:.4em;" | {{{effect|No description available.}}}
| style="padding:.4em;" | {{{effect|No description available.}}}
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Unlock
| style="padding:.4em;" | {{{unlock|Default Item}}}
|-
! style="white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Notes & Synergies
| style="padding:.4em;" | {{{notes|None}}}
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
== Usage ==
== Usage ==
This template creates an infobox for items in Megabonk.
This template creates a lean infobox for items in Megabonk, focusing only on core identification details.


=== Required Parameters ===
Unlock conditions and strategic notes should be placed in the main body of the article under their own headings.
 
=== Parameters ===
* '''name''': The name of the item.
* '''name''': The name of the item.
* '''rarity''': The item's rarity (e.g., Default, Common, Rare, Epic, Legendary).
* '''rarity''': The item's rarity (e.g., Default, Common, Rare, Epic, Legendary).
* '''effect''': The in-game description of the item's effect.
* '''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".
* '''image''': (Optional) The file name for the item's image.
 
* '''type''': (Optional) The type of item. Defaults to "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 ===
=== Example Usage ===
Copy and paste the following code onto an item's page and fill in the details.
<pre>
<pre>
{{Infobox item
{{Infobox item
| name    = Moldy Cheese
| name    = Boss Buster
| image    = Moldy Cheese.png
| image    = Boss Buster.png
| rarity  = Default
| rarity  = Common
| type    = Item
| type    = Item
| effect  = +40% chance to poison enemies on hit.
| effect  = +15% more damage to Elites and Bosses.
| unlock  = Default Item
| notes    = A reliable source of healing, especially effective with builds that kill many enemies quickly.
}}
}}
</pre>
</pre>
</noinclude>

Revision as of 13:38, 4 October 2025

Usage

This template creates a lean infobox for items in Megabonk, focusing only on core identification details.

Unlock conditions and strategic notes should be placed in the main body of the article under their own headings.

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.
  • image: (Optional) The file name for the item's image.
  • type: (Optional) The type of item. Defaults to "Item".

Example Usage

{{Infobox item
| name     = Boss Buster
| image    = Boss Buster.png
| rarity   = Common
| type     = Item
| effect   = +15% more damage to Elites and Bosses.
}}