Template:Infobox consumable: Difference between revisions
From Ultimate Dragon Ball Online Wiki
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="infobox" style="border: 1px solid #ccc; width: | {| 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;" | <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>{{#if: {{{rarity|Common}}} | <br /><span style="font-size: 0.9em; font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; color: {{#switch: {{{rarity}}} | ! 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>{{#if: {{{rarity|Common}}} | <br /><span style="font-size: 0.9em; 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 = #64ff77 <!-- White --> | | Common = #64ff77 <!-- White --> | ||
| Line 16: | Line 16: | ||
{{#if: {{{event_item|}}} | | {{#if: {{{event_item|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">Event Item</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">Event Item</span> | ||
{{!}}<span>{{#switch: {{{event_item}}} | {{!}}<span style="display: inline-block; width: 100%;">{{#switch: {{{event_item}}} | ||
| Yes = ✅ | | Yes = ✅ | ||
| No = ❌ | |||
| default = {{{event_item}}} }}</span> | | default = {{{event_item}}} }}</span> | ||
}} | }} | ||
| Line 28: | Line 29: | ||
{{#if: {{{weight|}}} | | {{#if: {{{weight|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">Weight</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">Weight</span> | ||
{{!}}{{{weight|}}} | {{!}}<span style="display: inline-block; width: 100%;">{{{weight|}}}</span> | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{npc_price|}}} | | {{#if: {{{npc_price|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">NPC Price</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">NPC Price</span> | ||
{{!}}<span style="display: inline-block; width: 100%;">{{{npc_price}}} [[File:Ui_icon_zeni.png|16px]]</span> | {{!}}<span style="display: inline-block; align-items: center; width: 100%;">{{{npc_price}}} [[File:Ui_icon_zeni.png|16px]]</span> | ||
}} | }} | ||
|- | |- | ||
| Line 40: | Line 41: | ||
{{#if: {{{effect|}}} | | {{#if: {{{effect|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">Effect</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">Effect</span> | ||
{{!}}{{{effect|}}} | {{!}}<span style="display: inline-block; width: 100%;">{{{effect|}}}</span> | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{LP_recovery|}}} | | {{#if: {{{LP_recovery|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">LP Recovery</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">LP Recovery</span> | ||
{{!}}{{{LP_recovery|}}} | {{!}}<span style="display: inline-block; width: 100%;">{{{LP_recovery|}}}</span> | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{EP_recovery|}}} | | {{#if: {{{EP_recovery|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">EP Recovery</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">EP Recovery</span> | ||
{{!}}{{{EP_recovery|}}} | {{!}}<span style="display: inline-block; width: 100%;">{{{EP_recovery|}}}</span> | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{duration|}}} | | {{#if: {{{duration|}}} | | ||
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">Duration</span> | ! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;"">Duration</span> | ||
{{!}}{{{duration|}}} | {{!}}<span style="display: inline-block; width: 100%;">{{{duration|}}}</span> | ||
}} | }} | ||
|- | |||
| colspan="2" style="padding-bottom: 5px;" | <!-- This row adds space at the bottom --> | |||
|} | |} | ||
Latest revision as of 04:32, 20 March 2025
| Infobox consumable Common | |
|---|---|
| General Information | |
| Item Effects | |
Infobox Usage Guide
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).
Important!
- 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.