Template:Infobox item: Difference between revisions
From Ultimate Dragon Ball Online Wiki
No edit summary |
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 = # | | 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 | ||
| 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 | ||
| 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 === | ||
* ''' | * '''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. | |||
* '''description''': A brief | * '''Weight''': The weight 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''. | ||
* '''Event Item''': | * '''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 | - ''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. | * '''Level''': The required level to use the item. | ||
* '''Slot''': The equipment slot where this item is placed (e.g., ''Weapon'', '' | * '''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 | * '''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. | ||
* | * 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. | ||
</noinclude> | </noinclude> | ||
Revision as of 23:24, 10 March 2025
| Infobox item | |
|---|---|
| General Information |
Infobox Usage Guide
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.