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
 
(11 intermediate revisions by the same user not shown)
Line 9: Line 9:
                 border-radius: 10px; /* rounded corners */
                 border-radius: 10px; /* rounded corners */
                 margin: 0 auto; /* center horizontally */
                 margin: 0 auto; /* center horizontally */
                 overflow: hidden;"> <!-- hide overflow to contain image -->
                 padding: 5px; /* padding for inner content */
       {{#if:image | [[File:{{{image}}}|thumb|100px|alt=Image|link=]]}} <!-- Resize the image to fit the box -->
                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 -->
     </div>
     </div>
     {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->
     {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->
   </div>
   </div>
   <div style="background-color: transparent;"> <!-- Transparent background for text -->
   <div style="background-color: transparent; padding: 5px;"> <!-- Transparent background for text -->
     {{#if:caption | '''Caption''': {{{caption}}}<br />}}
     <div style="color: #007bff;"> <!-- Fancy color 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>
</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}}}