Template:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<div style="float: right; /* Float the infobox to the right */ | <div style="float: right; /* Float the infobox to the right */ | ||
border: 2px solid # | border: 2px solid #333; /* Dark gray border */ | ||
border-radius: 10px; /* | border-radius: 10px; /* Rounded corners */ | ||
padding: 10px; | padding: 10px; | ||
width: 300px; | width: 300px; | ||
margin-left: 10px; /* Add some left margin to separate it from other content */"> | margin-left: 10px; /* Add some left margin to separate it from other content */ | ||
background-color: transparent; /* Transparent background */ | |||
color: #fff; /* White text color */"> | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
<div style="width: 100px; height: 100px; | <div style="width: 100px; height: 100px; | ||
margin: 0 auto; /* Center horizontally */ | |||
margin: 0 auto; /* | padding: 5px; /* Padding for inner content */ | ||
padding: 5px; /* | display: flex; /* Enable flexbox */ | ||
display: flex; /* | justify-content: center; /* Center horizontally */ | ||
justify-content: center; /* | align-items: center; /* Center vertically */ | ||
align-items: center; | background-color: transparent; /* Transparent background */"> | ||
{{#if:image | [[File:{{{image}}}|frameless|100px]]}} <!-- Fixed size for the image --> | {{#if:image | [[File:{{{image}}}|frameless|100px]]}} <!-- Fixed size for the image --> | ||
</div> | </div> | ||
{{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name --> | {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name --> | ||
</div> | </div> | ||
<div | <div> | ||
< | {{#if:caption | <span style="color: #ff6347;">'''Caption''':</span> <span style="color: #00bfff;">{{{caption}}}</span><br />}} | ||
{{#if:type | <span style="color: #ff6347;">'''Type''':</span> <span style="color: #00bfff;">{{{type}}}</span><br />}} | |||
{{#if:rarity | <span style="color: #ff6347;">'''Rarity''':</span> <span style="color: #00bfff;">{{{rarity}}}</span><br />}} | |||
{{#if:mining_power | <span style="color: #ff6347;">'''Mining Power''':</span> <span style="color: #00bfff;">{{{mining_power}}}</span><br />}} | |||
{{#if:cost | <span style="color: #ff6347;">'''Cost''':</span> <span style="color: #00bfff;">{{{cost}}}</span><br />}} | |||
{{#if:obtainable_from | <span style="color: #ff6347;">'''Obtainable From''':</span> <span style="color: #00bfff;">{{{obtainable_from}}}</span><br />}} | |||
{{#if:effects | <span style="color: #ff6347;">'''Effects''':</span> <span style="color: #00bfff;">{{{effects}}}</span><br />}} | |||
{{#if:durability | <span style="color: #ff6347;">'''Durability''':</span> <span style="color: #00bfff;">{{{durability}}}</span><br />}} | |||
{{#if:weight | <span style="color: #ff6347;">'''Weight''':</span> <span style="color: #00bfff;">{{{weight}}}</span><br />}} | |||
{{#if:value | <span style="color: #ff6347;">'''Value''':</span> <span style="color: #00bfff;">{{{value}}}</span><br />}} | |||
{{#if:uses | <span style="color: #ff6347;">'''Uses''':</span> <span style="color: #00bfff;">{{{uses}}}</span><br />}} | |||
{{#if:description | <span style="color: #ff6347;">'''Description''':</span> <span style="color: #00bfff;">{{{description}}}</span><br />}} | |||
</div> | </div> | ||
</div> | </div> |
Revision as of 10:19, 13 April 2024
[[File:{{{image}}}|frameless|100px]]
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}}}