Template:Infobox consumable: 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;">{{{title|}}}</span> | ||
|- | |- | ||
| colspan="2" style="text-align: center; padding: 5px;" | [[File:{{{ | | colspan="2" style="text-align: center; padding: 5px;" | [[File:{{{icon|}}}|32px]] | ||
|- | |- | ||
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | General Information | |||
|- | |||
{{#if: {{{description|}}} | | |||
! <span style="display: inline-block; text-align: left; vertical-align: top; width: 100px;">Description</span> | |||
{{!}}{{{description|}}} | |||
}} | |||
|- | |||
{{#if: {{{Weight|}}} | | |||
! <span style="display: inline-block; text-align: left; width: 100px;">Weight</span> | |||
{{!}}{{{Weight|}}} | |||
}} | |||
|- | |||
{{#if: {{{Event Item|}}} | | |||
! <span style="display: inline-block; text-align: left; width: 100px;">Event Item</span> | |||
{{!}}<span>{{#switch: {{{Event Item}}} | |||
| Yes = ✅ | |||
| No = ❌ | |||
| default = {{{Event Item}}} }}</span> | |||
}} | |||
|- | |||
{{#if: {{{Rarity|}}} | | |||
! <span style="display: inline-block; text-align: left; 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}}} | |||
| Common = #ffffff <!-- Black --> | |||
| Superior = #99bbee <!-- Blue --> | |||
| Excellent = #ffdd66 <!-- Yellow --> | |||
| Rare = #ff6677 <!-- Red --> | |||
| Legendary = #ee77dd <!-- Magenta --> | |||
| default = #000000 }}">{{{Rarity|}}}</span> | |||
}} | |||
|- | |- | ||
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | Item Effects | ! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | Item Effects | ||
|- | |- | ||
{{#if: {{{Effect|}}} | | {{#if: {{{Effect|}}} | | ||
! Effect | ! <span style="display: inline-block; text-align: left; width: 100px;">Effect</span> | ||
{{!}}{{{Effect|}}} | {{!}}{{{Effect|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{LP Recovery|}}} | | {{#if: {{{LP Recovery|}}} | | ||
! LP Recovery | ! <span style="display: inline-block; text-align: left; width: 100px;">LP Recovery</span> | ||
{{!}}{{{LP Recovery|}}} | {{!}}{{{LP Recovery|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{EP Recovery|}}} | | {{#if: {{{EP Recovery|}}} | | ||
! EP Recovery | ! <span style="display: inline-block; text-align: left; width: 100px;">EP Recovery</span> | ||
{{!}}{{{EP Recovery|}}} | {{!}}{{{EP Recovery|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{Duration|}}} | | {{#if: {{{Duration|}}} | | ||
! Duration | ! <span style="display: inline-block; text-align: left; width: 100px;">Duration</span> | ||
{{!}}{{{Duration|}}} | {{!}}{{{Duration|}}} | ||
}} | }} | ||
| Line 37: | Line 66: | ||
| <pre> | | <pre> | ||
{{Infobox_consumable | {{Infobox_consumable | ||
| title = | | title = CC Life Pill S | ||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_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 | ||
| Effect = | | Event Item = No | ||
| LP Recovery = | | Rarity = Common | ||
| EP Recovery = | | Effect = Restores health | ||
| Duration = | | LP Recovery = 750 | ||
| EP Recovery = 0 | |||
| Duration = 0 seconds | |||
}} | }} | ||
</pre> | </pre> | ||
| | | | ||
{{Infobox_consumable | {{Infobox_consumable | ||
| title = | | title = CC Life Pill S | ||
| icon = Infobox_item_example_icon.png | | icon = Infobox_item_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 | ||
| Effect = | | Event Item = No | ||
| LP Recovery = | | Rarity = Common | ||
| EP Recovery = | | Effect = Restores health | ||
| Duration = | | LP Recovery = 750 | ||
| EP Recovery = 0 | |||
| Duration = 0 seconds | |||
}} | }} | ||
|} | |} | ||
| Line 63: | Line 96: | ||
* '''icon''': The file name of the small icon representing the item (e.g., ''ItemIcon.png''). | * '''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. | * '''Effect''': Any special effects or bonuses provided by the item. | ||
* '''LP Recovery''': The amount of Life Points (LP) recovered when using the item. | * '''LP Recovery''': The amount of Life Points (LP) recovered when using the item. | ||
Revision as of 21:48, 10 March 2025
| [[File:|32px]] | |
| 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).
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.