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 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 #007bff; /* blue border */
             border: 2px solid #333; /* Dark gray border */
             border-radius: 10px; /* rounded corners */
             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: #333; /* Dark gray background */
            color: #fff; /* White text color */">
   <div style="text-align: center;">
   <div style="text-align: center;">
     <div style="width: 100px; height: 100px; border: 2px solid #007bff; /* blue border */
     <div style="width: 100px; height: 100px; border: 2px solid #fff; /* White 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 */
                 padding: 5px; /* Padding for inner content */
                 display: flex; /* enable flexbox */
                 display: flex; /* Enable flexbox */
                 justify-content: center; /* center horizontally */
                 justify-content: center; /* Center horizontally */
                 align-items: center;"> <!-- center vertically -->
                 align-items: center; /* Center vertically */
                background-color: #000; /* Black 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 style="color: #333; /* dark text color */
   <div>
              font-weight: bold; /* bold text */
              text-transform: uppercase; /* uppercase text */
              font-size: 12px; /* smaller font size */
              padding-top: 5px; /* add some space between sections */">
     {{#if:caption | <span style="color: #ff6347;">'''Caption''':</span> <span style="color: #00bfff;">{{{caption}}}</span><br />}}
     {{#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:type | <span style="color: #ff6347;">'''Type''':</span> <span style="color: #00bfff;">{{{type}}}</span><br />}}

Revision as of 10:01, 13 April 2024

     [[File:{{{image}}}|frameless|100px]] 
{{{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}}}