x>BakiDance No edit summary |
StardustLabs>Tera458 No edit summary |
||
Line 1: | Line 1: | ||
<span class=" | {{#seo:|image=File:{{#if:{{{pageimage|}}}|{{{pageimage}}}|{{PAGENAME}}.png}}}} | ||
{{#invoke:infobox|infobox | |||
| defaultimagesize = 160px | |||
| rows = | |||
{{infobox row|label='''Base item'''|field={{#if: {{{baseitem|}}} | <span class="plainlinks">[https://minecraft.wiki/w/{{{baseitem}}} {{{baseitem}}}]</span> | ? }} }} | |||
{{#if: {{{durability|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Durability Durability]</span>'''|field={{{durability|}}} }} }} | |||
{{#if: {{{baseenchants|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Enchanting Base enchants]</span>'''|field={{{baseenchants|}}} }} }} | |||
{{#if: {{{attack damage|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Damage Attack damage]</span>'''|field={{{attack damage|}}} }} }} | |||
{{#if: {{{attack speed|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Damage#Attack_cooldown Attack speed]</span>'''|field={{{attack speed|}}} }} }} | |||
{{#if: {{{dps|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Damage#Attack_cooldown DPS]</span>'''|field={{{dps|}}} }} }} | |||
{{#if: {{{armor|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Armor Armor]</span>'''|field={{{armor|}}} }} }} | |||
{{#if: {{{effects|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Effect Effects]</span>'''|field={{{effects|}}} }} }} | |||
{{#if: {{{attributes|}}} | {{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Attribute Attribute modifiers]</span>'''|field={{{attributes|}}} }} }} | |||
{{#if: {{{command|}}} | {{infobox row|label='''Command'''|field=<div style="max-height:100px; overflow-y: scroll; border: 1px solid #ccc; padding: 5px; max-width:200px; word-wrap: break-word">{{{command|}}}</div>}} }} | |||
{{#if: {{{notes|}}} | {{infobox row|label='''Notes'''|field={{{notes|}}} }} }} | |||
}}<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"baseitem": { | |||
"description": "What is the base item of the custom item (auto links to the Minecraft Wiki)", | |||
"example": "Diamond sword", | |||
"required": true | |||
}, | |||
"attack damage": { | |||
"description": "Average damage the weapon can inflict on strike if a weapon", | |||
"example": "{{hp|9}}", | |||
"suggested": true | |||
}, | |||
"attack speed": { | |||
"description": "Average attack speed if a weapon", | |||
"example": "2", | |||
"suggested": true | |||
}, | |||
"command": { | |||
"description": "Command to obtain the item", | |||
"example": "/loot give @s loot starmute:artifact/blazing_hatchet", | |||
"default": "/loot give @s", | |||
"autovalue": "/loot give @s", | |||
"required": true | |||
}, | |||
"armor": { | |||
"description": "Armor added by the item if an armor", | |||
"example": "{{Armor|5}}", | |||
"suggested": true | |||
}, | |||
"notes": { | |||
"description": "Additional notes about the item" | |||
}, | |||
"effects": { | |||
"description": "Effects of the item if it's a potion", | |||
"example": "{{EffectLink|Haste|Haste I}} (2:00)<br>{{EffectLink|Strength|Strength II}} (2:00)", | |||
"suggested": true | |||
}, | |||
"baseenchants": { | |||
"description": "Enchants that comes with the item, keep empty if there is none.", | |||
"example": "Mending<br>Power II", | |||
"autovalue": "", | |||
"suggested": true | |||
}, | |||
"durability": { | |||
"description": "Indicates the item durability, keep empty if there is none.", | |||
"example": "465", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"description": "Forces an image not based on the title of the page, useful for putting a GIF. You can also create a diaporama by putting \";\" between the images names." | |||
}, | |||
"image2": { | |||
"description": "Adds a second image under the first one. You can also create a diaporama by putting \";\" between the images names." | |||
}, | |||
"pageimage": { | |||
"description": "Forced .png or .gif set to appear for the page popup and SEO. Obligatory if \" ; \" is used in the \"image\" string." | |||
}, | |||
"dps": {}, | |||
"attributes": {} | |||
}, | |||
"description": "Displays an infobox with basic info about an item.", | |||
"paramOrder": [ | |||
"image", | |||
"pageimage", | |||
"image2", | |||
"baseitem", | |||
"durability", | |||
"baseenchants", | |||
"attack damage", | |||
"attack speed", | |||
"dps", | |||
"armor", | |||
"effects", | |||
"attributes", | |||
"command", | |||
"notes" | |||
] | |||
} | |||
</templatedata></noinclude> |
Revision as of 00:20, 25 September 2023
Displays an infobox with basic info about an item.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | Forces an image not based on the title of the page, useful for putting a GIF. You can also create a diaporama by putting ";" between the images names. | Unknown | optional |
pageimage | pageimage | Forced .png or .gif set to appear for the page popup and SEO. Obligatory if " ; " is used in the "image" string. | Unknown | optional |
image2 | image2 | Adds a second image under the first one. You can also create a diaporama by putting ";" between the images names. | Unknown | optional |
baseitem | baseitem | What is the base item of the custom item (auto links to the Minecraft Wiki)
| Unknown | required |
durability | durability | Indicates the item durability, keep empty if there is none.
| Unknown | suggested |
baseenchants | baseenchants | Enchants that comes with the item, keep empty if there is none.
| Unknown | suggested |
attack damage | attack damage | Average damage the weapon can inflict on strike if a weapon
| Unknown | suggested |
attack speed | attack speed | Average attack speed if a weapon
| Unknown | suggested |
dps | dps | no description | Unknown | optional |
armor | armor | Armor added by the item if an armor
| Unknown | suggested |
effects | effects | Effects of the item if it's a potion
| Unknown | suggested |
attributes | attributes | no description | Unknown | optional |
command | command | Command to obtain the item
| Unknown | required |
notes | notes | Additional notes about the item | Unknown | optional |