Template:Infobox Item: Difference between revisions

From RexKraft
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="border: 2px solid #007bff; /* blue border */
<div style="float: right; /* Float the infobox to the right */
            border: 2px solid #007bff; /* blue border */
             border-radius: 10px; /* rounded corners */
             border-radius: 10px; /* rounded corners */
             padding: 10px;  
             padding: 10px;  
            margin: 10px;
             width: 300px;
             width: 300px;
             background-color: #f8f9fa; /* light gray background */">
             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: 100px; height: 100px; 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;"> <!-- Square box -->
                 padding: 5px; /* padding for inner content */
                display: flex; /* enable flexbox */
                justify-content: center; /* center horizontally */
                align-items: center;"> <!-- center vertically -->
       {{#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>
   {{#if:caption | '''Caption''': {{{caption}}}<br />}}
   <div style="background-color: transparent;"> <!-- Transparent background for text -->
  {{#if:type | '''Type''': {{{type}}}<br />}}
    {{#if:caption | '''Caption''': {{{caption}}}<br />}}
  {{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
    {{#if:type | '''Type''': {{{type}}}<br />}}
  {{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
    {{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
  {{#if:cost | '''Cost''': {{{cost}}}<br />}}
    {{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
  {{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
    {{#if:cost | '''Cost''': {{{cost}}}<br />}}
  {{#if:effects | '''Effects''': {{{effects}}}<br />}}
    {{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
  {{#if:durability | '''Durability''': {{{durability}}}<br />}}
    {{#if:effects | '''Effects''': {{{effects}}}<br />}}
  {{#if:weight | '''Weight''': {{{weight}}}<br />}}
    {{#if:durability | '''Durability''': {{{durability}}}<br />}}
  {{#if:value | '''Value''': {{{value}}}<br />}}
    {{#if:weight | '''Weight''': {{{weight}}}<br />}}
  {{#if:uses | '''Uses''': {{{uses}}}<br />}}
    {{#if:value | '''Value''': {{{value}}}<br />}}
  {{#if:description | '''Description''': {{{description}}}<br />}}
    {{#if:uses | '''Uses''': {{{uses}}}<br />}}
    {{#if:description | '''Description''': {{{description}}}<br />}}
  </div>
</div>
</div>

Latest revision as of 09:49, 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}}}