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 8: Line 8:
|-
|-
{{#if: {{{description|}}} |
{{#if: {{{description|}}} |
! <span style="display: inline-block; text-align: left; vertical-align: top; width: 100px;">Description</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; vertical-align: top; width: 100px;">Description</span>
{{!}}{{{description|}}}
{{!}}{{{description|}}}
}}
}}
|-
|-
{{#if: {{{Weight|}}} |
{{#if: {{{Weight|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Weight</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Weight</span>
{{!}}{{{Weight|}}}
{{!}}{{{Weight|}}}
}}
}}
|-
|-
{{#if: {{{Event Item|}}} |
{{#if: {{{Event Item|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Event Item</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Event Item</span>
{{!}}<span>{{#switch: {{{Event Item}}}
{{!}}<span>{{#switch: {{{Event Item}}}
   | Yes = ✅
   | Yes = ✅
Line 26: Line 26:
|-
|-
{{#if: {{{Rarity|}}} |
{{#if: {{{Rarity|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Rarity</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Rarity</span>
{{!}}<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}}}
{{!}}<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 = #000000
   | Common = #ffffff
   | Superior = #99bbee
   | Superior = #99bbee
   | Excellent = #ffdd66
   | Excellent = #ffdd66
Line 37: Line 37:
|-
|-
{{#if: {{{Class|}}} |
{{#if: {{{Class|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Class</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Class</span>
{{!}}{{{Class|}}}
{{!}}{{{Class|}}}
}}
}}
|-
|-
{{#if: {{{Level|}}} |
{{#if: {{{Level|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Level</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Level</span>
{{!}}{{{Level|}}}
{{!}}{{{Level|}}}
}}
}}
|-
|-
{{#if: {{{Slot|}}} |
{{#if: {{{Slot|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">Slot</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">Slot</span>
{{!}}{{{Slot|}}}
{{!}}{{{Slot|}}}
}}
}}
|-
|-
{{#if: {{{NPC Price|}}} |
{{#if: {{{NPC Price|}}} |
! <span style="display: inline-block; text-align: left; width: 100px;">NPC Price</span>
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100px;">NPC Price</span>
{{!}}{{{NPC Price|}}}
{{!}}{{{NPC Price|}}}
}}
}}
|}
|}


<noinclude>
<noinclude>
Line 67: Line 68:
  | title      = Test
  | title      = Test
  | icon        = Infobox_item_example_icon.png
  | icon        = Infobox_item_example_icon.png
| image      = Infobox_item_example_image.png
| caption    = A powerful weapon used by Turtle Hermits.
  | description = A legendary wand with immense power.
  | description = A legendary wand with immense power.
  | Weight      = 2.5kg
  | Weight      = 2.5kg
Line 79: Line 78:
}}
}}
</pre>
</pre>
|  
| {{Infobox_item
{{Infobox_item
  | title      = Test
  | title      = Test
  | icon        = Infobox_item_example_icon.png
  | icon        = Infobox_item_example_icon.png
| image      = Infobox_item_example_image.png
| caption    = A powerful weapon used by Turtle Hermits.
  | description = A legendary wand with immense power.
  | description = A legendary wand with immense power.
  | Weight      = 2.5kg
  | Weight      = 2.5kg
Line 98: Line 94:
=== Parameter Explanations ===
=== Parameter Explanations ===


* '''icon''': The file name of the small icon representing the item (e.g., ''ItemIcon.png'').
* '''title''': The name of the item. Defaults to the page name if not provided.
* '''image''': The file name of the larger image of the item (e.g., ''ItemImage.png'').
* '''icon''': The filename of the item's icon (e.g., ''ItemIcon.png''). Defaults to ''item_no_icon.png'' if not provided.
* '''caption''': A short description or additional details about the image.
* '''description''': A brief description of the item.
* '''description''': A brief explanation of what the item is and its lore or function.
* '''Weight''': The weight of the item.
* '''Weight''': The weight of the item, if applicable.
* '''Event Item''': Indicates if the item is exclusive to events. Accepts ''Yes'' or ''No''. Displays a checkmark (✅) for ''Yes'' and a cross (❌) for ''No''.
* '''Event Item''': Indicate if the item is exclusive to events (''Yes'' or ''No'').
* '''Rarity''': The rarity level of the item. Accepts values like ''Common'', ''Superior'', ''Excellent'', ''Rare'', or ''Legendary''. Each value is color-coded:
* '''Rarity''': The rarity level of the item (e.g., ''Common'', ''Rare'', ''Legendary'').
  - ''Common'': White (''#ffffff'')
* '''Class''': The player class that can use the item (e.g., ''Martial Artist'', ''Spiritualist'').
  - ''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.
* '''Level''': The required level to use the item.
* '''Slot''': The equipment slot where this item is placed (e.g., ''Weapon'', ''Jacket'').
* '''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 (use numbers only).
* '''NPC Price''': The price of the item when sold to NPC vendors.


=== Notes ===
=== Notes ===


* If a parameter is left blank, it will not be displayed in the infobox.
* 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 that image files (e.g., icons) are correctly uploaded to the wiki for them to appear.
* Ensure proper formatting and spacing for consistency across pages.
* Proper formatting and consistent use of parameters ensure uniformity across pages.


</noinclude>
</noinclude>

Revision as of 23:24, 10 March 2025

Infobox item
General Information


Infobox Usage Guide

Example Code Example Result
{{Infobox_item
 | title       = Test
 | icon        = Infobox_item_example_icon.png
 | 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
}}
Test
General Information
Description A legendary wand with immense power.
Weight 2.5kg
Event Item
Rarity Legendary
Class Turtle Hermit
Level 38
Slot Weapon
NPC Price 50,000


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.