Template:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 6: | Line 6: | ||
background-color: rgba(0, 0, 0, 0.5); /* black transparent background */ | background-color: rgba(0, 0, 0, 0.5); /* black transparent background */ | ||
color: white; /* white text color */"> | color: white; /* white text color */"> | ||
{{#if:image }} | |||
<div style="border: | {{#if:image }} <!-- Check if image exists --> | ||
<div style="border: 2px solid white; /* white border */ | |||
border-radius: 5px; /* rounded corners */ | border-radius: 5px; /* rounded corners */ | ||
padding: 5px; | padding: 5px; /* padding */ | ||
background-color: #007bff; /* blue background */"> | |||
<div style="display: flex; justify-content: center;"> <!-- Center image horizontally --> | |||
[[File:{{{image}}}|frameless| | <div style="display: inline-block; /* Make div inline-block */ | ||
width: 100px; /* Width of the square */ | |||
height: 100px; /* Height of the square */ | |||
overflow: hidden; /* Hide overflow */ | |||
border: 2px solid white; /* White border */ | |||
border-radius: 10px; /* Rounded corners */"> | |||
[[File:{{{image}}}|frameless|100px]] <!-- Image --> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
{{/if}} | {{/if}} | ||
{{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Name of the item --> | {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Name of the item --> | ||
{{#if:caption | '''Caption''': {{{caption}}}<br />}} | {{#if:caption | '''Caption''': {{{caption}}}<br />}} | ||
Revision as of 09:37, 13 April 2024
Caption: {{{caption}}}
Type: {{{type}}}
Rarity: {{{rarity}}}
Mining Power: {{{mining_power}}}
Cost: {{{cost}}}
Obtainable From: {{{obtainable_from}}}
Effects: {{{effects}}}
Durability: {{{durability}}}
Weight: {{{weight}}}
Value: {{{value}}}
Uses: {{{uses}}}
Description: {{{description}}}