Template:Infobox Item: Difference between revisions

From RexKraft
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
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 #333; /* Dark gray border */
             border: 2px solid #007bff; /* blue 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 #fff; /* White 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 */
                 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>
   <div style="background-color: transparent; padding: 5px;"> <!-- Transparent background for text -->
     {{#if:caption | <span style="color: #ff6347;">'''Caption''':</span> <span style="color: #00bfff;">{{{caption}}}</span><br />}}
     <div style="color: #007bff;"> <!-- Fancy color for text -->
    {{#if:type | <span style="color: #ff6347;">'''Type''':</span> <span style="color: #00bfff;">{{{type}}}</span><br />}}
      {{#if:caption | '''Caption''': {{{caption}}}<br />}}
    {{#if:rarity | <span style="color: #ff6347;">'''Rarity''':</span> <span style="color: #00bfff;">{{{rarity}}}</span><br />}}
      {{#if:type | '''Type''': {{{type}}}<br />}}
    {{#if:mining_power | <span style="color: #ff6347;">'''Mining Power''':</span> <span style="color: #00bfff;">{{{mining_power}}}</span><br />}}
      {{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
    {{#if:cost | <span style="color: #ff6347;">'''Cost''':</span> <span style="color: #00bfff;">{{{cost}}}</span><br />}}
      {{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
    {{#if:obtainable_from | <span style="color: #ff6347;">'''Obtainable From''':</span> <span style="color: #00bfff;">{{{obtainable_from}}}</span><br />}}
      {{#if:cost | '''Cost''': {{{cost}}}<br />}}
    {{#if:effects | <span style="color: #ff6347;">'''Effects''':</span> <span style="color: #00bfff;">{{{effects}}}</span><br />}}
      {{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
    {{#if:durability | <span style="color: #ff6347;">'''Durability''':</span> <span style="color: #00bfff;">{{{durability}}}</span><br />}}
      {{#if:effects | '''Effects''': {{{effects}}}<br />}}
    {{#if:weight | <span style="color: #ff6347;">'''Weight''':</span> <span style="color: #00bfff;">{{{weight}}}</span><br />}}
      {{#if:durability | '''Durability''': {{{durability}}}<br />}}
    {{#if:value | <span style="color: #ff6347;">'''Value''':</span> <span style="color: #00bfff;">{{{value}}}</span><br />}}
      {{#if:weight | '''Weight''': {{{weight}}}<br />}}
    {{#if:uses | <span style="color: #ff6347;">'''Uses''':</span> <span style="color: #00bfff;">{{{uses}}}</span><br />}}
      {{#if:value | '''Value''': {{{value}}}<br />}}
    {{#if:description | <span style="color: #ff6347;">'''Description''':</span> <span style="color: #00bfff;">{{{description}}}</span><br />}}
      {{#if:uses | '''Uses''': {{{uses}}}<br />}}
      {{#if:description | '''Description''': {{{description}}}<br />}}
    </div>
   </div>
   </div>
</div>
</div>

Latest revision as of 14:04, 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}}}