Template:Infobox item: Difference between revisions
From Ultimate Dragon Ball Online Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{| class="infobox" style="border: 1px solid #ccc; width: 300px; background-color: #f9f9f9; font-family: Arial, sans-serif; margin: 0 auto; border-radius: 10px;" | {| class="infobox" style="border: 1px solid #ccc; width: 300px; background-color: #f9f9f9; font-family: Arial, sans-serif; margin: 0 auto; border-radius: 10px;" | ||
! colspan="2" style="background-color: #2161c0; color: white; text-align: center; font-size: 1.25em; font-weight: bold; padding: 5px 0; border-top-left-radius: 10px; border-top-right-radius: 10px;" | <span style="font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; text-align: center;">{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span> | ! colspan="2" style="background-color: #2161c0; color: white; text-align: center; font-size: 1.25em; font-weight: bold; padding: 5px 0; border-top-left-radius: 10px; border-top-right-radius: 10px;" | <span style="font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; text-align: center;">{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>{{#if: {{{rarity|}}} | <br /><span style="font-size: 0.9em; font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; color: {{#switch: {{{rarity}}} | ||
| Common = #ffffff <!-- White --> | |||
| Superior = #99bbee <!-- Blue --> | |||
| Excellent = #ffdd66 <!-- Yellow --> | |||
| Rare = #ff6677 <!-- Red --> | |||
| Legendary = #ee77dd <!-- Magenta --> | |||
| default = #000000 }}">{{{rarity|}}}</span>}} | |||
|- | |- | ||
| colspan="2" style="text-align: center; padding: 5px;" | [[File:{{#if: {{{icon|}}} | {{{icon}}} | item_no_icon.png }}|32px]] | | colspan="2" style="text-align: center; padding: 5px;" | [[File:{{#if: {{{icon|}}} | {{{icon}}} | item_no_icon.png }}|32px]] | ||
|- | |- | ||
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | General Information | ! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | General Information | ||
|- | |- | ||
{{#if: {{{description|}}} | | {{#if: {{{description|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; vertical-align: top; width: 100px;">Description</span> | ||
{{!}}{{{description|}}} | {{!}}{{{description|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{class|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; width: 100px;">Class</span> | ||
{{!}}{{{class|}}} | |||
{{!}} | |||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{level|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; width: 100px;">Level</span> | ||
{{!}}{{{ | {{!}}{{{level|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{slot|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; width: 100px;">Slot</span> | ||
{{!}}{{{ | {{!}}{{{slot|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{weight|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; width: 100px;">Weight</span> | ||
{{!}}{{{ | {{!}}{{{weight|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{npc_price|}}} | | ||
! <span style="display: inline-block; text-align: left | ! <span style="display: inline-block; text-align: left; width: 100px;">NPC Price</span> | ||
{{!}}{{{ | {{!}}{{{npc_price|}}} [[File:Ui_icon_zeni.png|16px]] | ||
}} | }} | ||
|} | |} | ||
| Line 66: | Line 53: | ||
| <pre> | | <pre> | ||
{{Infobox_item | {{Infobox_item | ||
| title = | | title = Classic Magic Rubber Suit (Top) | ||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_example_icon.png | ||
| description = | | description = Advanced materials are used to make this, completely without regard to cost. | ||
| | | rarity = Rare | ||
| | | class = Majin | ||
| level = 20 | |||
| | | slot = Jacket | ||
| | | weight = 350 | ||
| | | npc_price = 50,000 | ||
| | |||
}} | }} | ||
</pre> | </pre> | ||
| {{Infobox_item | | {{Infobox_item | ||
| title = | | title = Classic Magic Rubber Suit (Top) | ||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_example_icon.png | ||
| description = | | description = Advanced materials are used to make this, completely without regard to cost. | ||
| | | rarity = Rare | ||
| | | class = Majin | ||
| level = 20 | |||
| | | slot = Jacket | ||
| | | weight = 350 | ||
| | | npc_price = 50,000 | ||
| | |||
}} | }} | ||
|} | |} | ||
Revision as of 02:10, 11 March 2025
| Infobox item | |
|---|---|
| General Information |
Infobox Usage Guide
Parameter Explanations
- title: The name of the item. Defaults to the page name if not provided.
- icon: The filename of the item's icon (e.g., ItemIcon.png). Defaults to item_no_icon.png if not provided.
- description: A brief description of the item.
- Weight: The weight of the item.
- Event Item: Indicates if the item is exclusive to events. Accepts Yes or No. Displays a checkmark (✅) for Yes and a cross (❌) for No.
- Rarity: The rarity level of the item. Accepts values like Common, Superior, Excellent, Rare, or Legendary. Each value is color-coded:
- Common: White (#ffffff) - Superior: Light Blue (#99bbee) - Excellent: Yellow (#ffdd66) - Rare: Red (#ff6677) - Legendary: Pink (#ee77dd)
- Class: The class that can use the item.
- Level: The required level to use the item.
- Slot: The equipment slot where this item is placed (e.g., Weapon, Armor).
- NPC Price: The price of the item when sold to NPC vendors.
Notes
- If a parameter is left blank, it will not be displayed in the infobox.
- Ensure that image files (e.g., icons) are correctly uploaded to the wiki for them to appear.
- Proper formatting and consistent use of parameters ensure uniformity across pages.