Template:Infobox item: Difference between revisions

From Ultimate Dragon Ball Online Wiki

Ollix (talk | contribs)
No edit summary
Ollix (talk | contribs)
No edit summary
Line 9: Line 9:
|-
|-
{{#if: {{{description|}}} |
{{#if: {{{description|}}} |
! Description
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Description
{{!}}{{{description|}}}
| style="padding: 5px;" | {{{description|}}}
|-
}}
}}
{{#if: {{{Weight|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Weight
| style="padding: 5px;" | {{{Weight|}}}
|-
|-
{{#if: {{{Weight|}}} |
! Weight
{{!}}{{{Weight|}}}
}}
}}
{{#if: {{{Event Item|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Event Item
| style="padding: 5px;" | {{{Event Item|}}}
|-
|-
{{#if: {{{Event Item|}}} |
! Event Item
{{!}}{{{Event Item|}}}
}}
}}
|-
{{#if: {{{Rarity|}}} |
{{#if: {{{Rarity|}}} |
! Rarity
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Rarity
{{!}}<span style="color: {{#switch: {{{Rarity}}}
| style="padding: 5px;" | <span style="color: {{#switch: {{{Rarity}}}
   | Normal = black
   | Normal = black
   | Superior = blue
   | Superior = blue
Line 32: Line 32:
   | Legendary = magenta
   | Legendary = magenta
   | default = black }}">{{{Rarity|}}}</span>
   | default = black }}">{{{Rarity|}}}</span>
|-
}}
}}
{{#if: {{{Class|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Class
| style="padding: 5px;" | {{{Class|}}}
|-
|-
{{#if: {{{Class|}}} |
! Class
{{!}}{{{Class|}}}
}}
}}
{{#if: {{{Level|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Level
| style="padding: 5px;" | {{{Level|}}}
|-
|-
{{#if: {{{Level|}}} |
! Level
{{!}}{{{Level|}}}
}}
}}
{{#if: {{{Slot|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Slot
| style="padding: 5px;" | {{{Slot|}}}
|-
|-
{{#if: {{{Slot|}}} |
! Slot
{{!}}{{{Slot|}}}
}}
}}
{{#if: {{{NPC Price|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | NPC Price
| style="padding: 5px;" | {{{NPC Price|}}} [[File:ui_icon_zeni.png|16px]]
|-
|-
{{#if: {{{NPC Price|}}} |
! NPC Price
{{!}}{{{NPC Price|}}} [[File:ui_icon_zeni.png|16px]]
}}
}}
{{#if: {{{Effect|}}} |
! style="text-align: left; background-color: #f9f9f9; padding: 5px;" | Effect
| style="padding: 5px;" | {{{Effect|}}}
|-
|-
{{#if: {{{Effect|}}} |
! Effect
{{!}}{{{Effect|}}}
}}
}}
|}
|}
<noinclude>
<noinclude>
== Infobox Usage Guide ==
== Infobox Usage Guide ==

Revision as of 17:06, 10 March 2025

Description Weight Event Item Rarity Class Level Slot NPC Price Effect
[[File:|32px]] Infobox item
[[File:|200px]]
General Information

Infobox Usage Guide

Example 1 Example 2
{{Infobox_item
 | icon        = ItemIcon.png
 | image       = ItemImage.png
 | caption     = A powerful weapon used by Turtle Hermits.
 | description = A legendary wand with immense power.
 | Weight      = 2.5kg
 | Event Item  = Yes
 | Rarity      = Legendary
 | Class       = Turtle Hermit
 | Level       = 38
 | Slot        = Weapon
 | NPC Price   = 50,000
 | Effect      = Increases attack power by 20%
}}
File:ItemIcon.png Infobox item
File:ItemImage.png
A powerful weapon used by Turtle Hermits.
General Information
style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;" style="text-align: left; background-color: #f9f9f9; padding: 5px;"

Parameter Explanations

  • icon: The file name of the small icon representing the item (e.g., ItemIcon.png).
  • image: The file name of the larger image of the item (e.g., ItemImage.png).
  • caption: A short description or additional details about the image.
  • description: A brief explanation of what the item is and its lore or function.
  • Weight: The weight of the item, if applicable.
  • Event Item: Indicate if the item is exclusive to events (Yes or No).
  • Rarity: The rarity level of the item (e.g., Common, Rare, Legendary).
  • Class: The player class that can use the item (e.g., Martial Artist, Spiritualist).
  • Level: The required level to use the item.
  • Slot: The equipment slot where this item is placed (e.g., Weapon, Jacket).
  • NPC Price: The price of the item when sold to NPC vendors (use numbers only).
  • Effect: Any special effects or bonuses provided by the item.

Notes

  • If a parameter is left blank, it will not be displayed in the infobox.
  • File names for images must be correctly uploaded to the wiki for them to appear.
  • Ensure proper formatting and spacing for consistency across pages.