Template:Infobox item: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
|- | |- | ||
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Rarity | ! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Rarity | ||
| style="padding:.4em;" | {{{rarity| | | style="padding:.4em;" | {{#switch: {{{rarity|}}} | ||
| Default = <span style="color: white; font-weight:bold;">Default</span> | |||
| Common = <span style="color: green; font-weight:bold;">Common</span> | |||
| Uncommon = <span style="color: blue; font-weight:bold;">Uncommon</span> | |||
| Rare = <span style="color: magenta; font-weight:bold;">Rare</span> | |||
| Epic = <span style="color: purple; font-weight:bold;">Epic</span> | |||
| Legendary = <span style="color: #FFD700; font-weight:bold;">Legendary</span> | |||
| #default = {{{rarity|}}} | |||
}} | |||
|- | |- | ||
! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Type | ! style="width:40%; white-space:nowrap; padding:.4em; background:rgba(255,212,127,.08); border-radius:6px;" | Type | ||
Line 17: | Line 25: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
This template creates a lean infobox for items in Megabonk | This template creates a lean infobox for items in Megabonk. It automatically colors the rarity text based on its value. | ||
=== Parameters === | === Parameters === | ||
* '''name''': The name of the item. | * '''name''': The name of the item. | ||
* '''rarity''': The item's rarity ( | * '''rarity''': The item's rarity (Default, Common, Uncommon, Rare, Epic, Legendary). | ||
* '''effect''': The in-game description of the item's effect. | * '''effect''': The in-game description of the item's effect. | ||
* '''image''': (Optional) The file name for the item's image. | * '''image''': (Optional) The file name for the item's image. |
Revision as of 13:45, 4 October 2025
Usage
This template creates a lean infobox for items in Megabonk. It automatically colors the rarity text based on its value.
Parameters
- name: The name of the item.
- rarity: The item's rarity (Default, Common, Uncommon, 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. }}