Template:Infobox consumable: Difference between revisions

From Ultimate Dragon Ball Online Wiki

Ollix (talk | contribs)
No edit summary
Ollix (talk | contribs)
No edit summary
Line 4: Line 4:
| 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]]
|-
|-
{{#if: {{{Rarity|}}} |
| colspan="2" style="text-align: center; padding: 5px;" {{#if: {{{Rarity|}}} |
| colspan="2" style="text-align: center; padding: 5px; font-size: 0.8em; font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; color: {{#switch: {{{Rarity}}}
{{!}}<span style="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 -->
   | Common = #000000
   | Superior = #99bbee <!-- Blue -->
   | Superior = #99bbee
   | Excellent = #ffdd66 <!-- Yellow -->
   | Excellent = #ffdd66
   | Rare = #ff6677 <!-- Red -->
   | Rare = #ff6677
   | Legendary = #ee77dd <!-- Magenta -->
   | Legendary = #ee77dd
   | default = #000000 }}">{{{Rarity}}}</span>
   | default = #000000 }}">{{{Rarity|}}}</span>
}}
|-
|-
}}
! 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 70: Line 70:
  | Weight      = 0.0
  | Weight      = 0.0
  | Event Item  = No
  | Event Item  = No
  | Rarity      = Common
  | Rarity      = Rare
  | Effect      = Restores health
  | Effect      = Restores health
  | LP Recovery = 750
  | LP Recovery = 750
Line 84: Line 84:
  | Weight      = 0.0
  | Weight      = 0.0
  | Event Item  = No
  | Event Item  = No
  | Rarity      = Legendary
  | Rarity      = Rare
  | Effect      = Restores health
  | Effect      = Restores health
  | LP Recovery = 750
  | LP Recovery = 750

Revision as of 01:48, 11 March 2025

Infobox consumable
colspan="2" style="text-align: center; padding: 5px;"
General Information
Item Effects


Infobox Usage Guide

Example Code Example Result
{{Infobox_consumable
 | title       = CC Life Pill S
 | icon        = Infobox_consumable_example_icon.png
 | description = Specially designed therapeutic capsule made after a study on Senzu Beans were conducted. The CC logo is affixed on the capsule.
 | Weight      = 0.0
 | Event Item  = No
 | Rarity      = Rare
 | Effect      = Restores health
 | LP Recovery = 750
 | EP Recovery = 0
 | Duration    = 0 seconds
}}
CC Life Pill S
Rare
General Information
Description Specially designed therapeutic capsule made after a study on Senzu Beans were conducted. The CC logo is affixed on the capsule.
Weight 0.0
Event Item
Item Effects
Effect Restores health
LP Recovery 750
EP Recovery 0
Duration 0 seconds


Parameter Explanations

  • icon: The file name of the small icon representing the item (e.g., ItemIcon.png).
  • 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).
  • Effect: Any special effects or bonuses provided by the item.
  • LP Recovery: The amount of Life Points (LP) recovered when using the item.
  • EP Recovery: The amount of Energy Points (EP) recovered when using the item.
  • Duration: The duration of the item's effect (e.g., 30 seconds, 5 minutes).

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.