Template:Infobox item: Difference between revisions

From Ultimate Dragon Ball Online Wiki

Ollix (talk | contribs)
No edit summary
Tag: Manual revert
Ollix (talk | contribs)
No edit summary
Line 1: Line 1:
{| class="infobox" style="border: 1px solid #ccc; width: 250px; background-color: #f9f9f9; font-family: Arial, sans-serif; margin: 0 auto; border-radius: 10px;"
{| class="infobox" style="border: 1px solid #ccc; width: 250px; 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;" | [[File:{{{icon|}}}|32px]] {{PAGENAME}}
! 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;" |  
{{#if: {{{icon|}}}
[[File:{{{icon}}}|32px]]
{{else}}
[[File:Placeholder_icon.png|32px]]
{{/if}}
{{PAGENAME}}
|-
|-
| colspan="2" style="text-align: center; padding: 5px;" | [[File:{{{image|}}}|200px]]
| colspan="2" style="text-align: center; padding: 5px;" |  
{{#if: {{{image|}}}
[[File:{{{image}}}|200px]]
{{else}}
[[File:Placeholder_image.png|200px]]
{{/if}}
|-
|-
| colspan="2" style="text-align: center; font-size: 0.9em; color: #555;" | {{{caption| }}}
| colspan="2" style="text-align: center; font-size: 0.9em; color: #555;" | {{{caption|}}}
|-
|-
! 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
Line 51: Line 62:
{{#if: {{{NPC Price|}}} |
{{#if: {{{NPC Price|}}} |
! NPC Price
! NPC Price
{{!}}{{{NPC Price|}}} [[File:ui_icon_zeni.png|16px]]
{{!}}{{{NPC Price|}}} [[File:ui_icon_zeni.png|16
}}
|-
{{#if: {{{Effect|}}} |
! Effect
{{!}}{{{Effect|}}}
}}
|}


<noinclude>
<noinclude>

Revision as of 17:53, 10 March 2025

{{#if: |

{{#if: [[File:{{{icon}}}|32px]] Template:Else File:Placeholder icon.png Template:Infobox item/if Infobox item

{{#if: [[File:{{{image}}}|200px]] Template:Else File:Placeholder image.png Template:Infobox item/if

General Information
NPC Price [[File:ui_icon_zeni.png|16


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%
}}
{{#if: 50,000 |

{{#if: ItemIcon.png File:ItemIcon.png Template:Else File:Placeholder icon.png Template:Infobox item/if Infobox item

{{#if: ItemImage.png File:ItemImage.png Template:Else File:Placeholder image.png Template:Infobox item/if

A powerful weapon used by Turtle Hermits.
General Information
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 [[File:ui_icon_zeni.png|16


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.