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: | {| 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;" | | ! 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="text-align: center; padding: 5px;" | [[File:{{{ | | 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|}}} | | ||
! Description | ! <span style="display: inline-block; text-align: left; vertical-align: top; width: 100px;">Description</span> | ||
{{!}}{{{description|}}} | {{!}}{{{description|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Weight|}}} | | {{#if: {{{Weight|}}} | | ||
! Weight | ! <span style="display: inline-block; text-align: left; width: 100px;">Weight</span> | ||
{{!}}{{{Weight|}}} | {{!}}{{{Weight|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Event Item|}}} | | {{#if: {{{Event Item|}}} | | ||
! Event Item | ! <span style="display: inline-block; text-align: left; width: 100px;">Event Item</span> | ||
{{!}}{{{Event Item|}}} | {{!}}<span>{{#switch: {{{Event Item}}} | ||
| Yes = ✅ | |||
| No = ❌ | |||
| default = {{{Event Item}}} }}</span> | |||
}} | }} | ||
|- | |- | ||
{{#if: {{{Rarity|}}} | | {{#if: {{{Rarity|}}} | | ||
! Rarity | ! <span style="display: inline-block; text-align: left; width: 100px;">Rarity</span> | ||
{{!}}<span style="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 | ||
| Superior = | | Superior = #99bbee | ||
| Excellent = | | Excellent = #ffdd66 | ||
| Rare = | | Rare = #ff6677 | ||
| Legendary = | | Legendary = #ee77dd | ||
| default = | | default = #000000 }}">{{{Rarity|}}}</span> | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Class|}}} | | {{#if: {{{Class|}}} | | ||
! Class | ! <span style="display: inline-block; text-align: left; width: 100px;">Class</span> | ||
{{!}}{{{Class|}}} | {{!}}{{{Class|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Level|}}} | | {{#if: {{{Level|}}} | | ||
! Level | ! <span style="display: inline-block; text-align: left; width: 100px;">Level</span> | ||
{{!}}{{{Level|}}} | {{!}}{{{Level|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Slot|}}} | | {{#if: {{{Slot|}}} | | ||
! Slot | ! <span style="display: inline-block; text-align: left; width: 100px;">Slot</span> | ||
{{!}}{{{Slot|}}} | {{!}}{{{Slot|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{NPC Price|}}} | | {{#if: {{{NPC Price|}}} | | ||
! NPC Price | ! <span style="display: inline-block; text-align: left; width: 100px;">NPC Price</span> | ||
{{!}}{{{NPC Price | {{!}}{{{NPC Price|}}} | ||
}} | }} | ||
|} | |} | ||
| Line 68: | Line 65: | ||
| <pre> | | <pre> | ||
{{Infobox_item | {{Infobox_item | ||
| title = Test | |||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_example_icon.png | ||
| image = Infobox_item_example_image.png | | image = Infobox_item_example_image.png | ||
| Line 79: | Line 77: | ||
| Slot = Weapon | | Slot = Weapon | ||
| NPC Price = 50,000 | | NPC Price = 50,000 | ||
}} | }} | ||
</pre> | </pre> | ||
| | | | ||
{{Infobox_item | {{Infobox_item | ||
| title = Test | |||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_example_icon.png | ||
| image = Infobox_item_example_image.png | | image = Infobox_item_example_image.png | ||
| Line 95: | Line 93: | ||
| Slot = Weapon | | Slot = Weapon | ||
| NPC Price = 50,000 | | NPC Price = 50,000 | ||
}} | }} | ||
|} | |} | ||
| Line 112: | Line 109: | ||
* '''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'', ''Jacket''). | ||
* '''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 (use numbers only). | ||
=== Notes === | === Notes === | ||
Revision as of 23:13, 10 March 2025
| Infobox item | |
|---|---|
| General Information |
Infobox Usage Guide
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).
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.