Template:Infobox Item: Difference between revisions

From RexKraft
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 6: Line 6:
             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 */">
   <div style="text-align: center;">
   <div style="text-align: center;">
     <div style="width: 150px; height: 150px; border: 2px solid #007bff; /* blue border */
     <div style="width: 100px; height: 100px; border: 2px solid #007bff; /* blue border */
                 border-radius: 10px; /* rounded corners */
                 border-radius: 10px; /* rounded corners */
                 margin: 0 auto; /* center horizontally */
                 margin: 0 auto; /* center horizontally */
                padding: 5px; /* padding for inner content */
                display: flex; /* enable flexbox */
                justify-content: center; /* center horizontally */
                align-items: center; /* center vertically */
                 overflow: hidden;"> <!-- hide overflow to contain image -->
                 overflow: hidden;"> <!-- hide overflow to contain image -->
       {{#if:image | [[File:{{{image}}}|frameless]]}} <!-- Fixed size for the image -->
       {{#if:image | [[File:{{{image}}}|thumb|100px|alt=Image|link=]]}} <!-- Resize the image to fit the box -->
     </div>
     </div>
     {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->
     {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->

Revision as of 09:54, 13 April 2024

     [[File:{{{image}}}|thumb|100px|alt=Image|link=]] 
{{{name}}}
   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}}}