Template:Infobox Item: Difference between revisions

From RexKraft
Jump to navigation Jump to search
No edit summary
Tags: Manual revert Reverted
No edit summary
 
(8 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 */">
{{#if:image | [[File:{{{image}}}|frameless|center|300px]]<br />}}
  <div style="text-align: center;">
{{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Move the name right below the image and make it bold -->
    <div style="width: 100px; height: 100px; border: 2px solid #007bff; /* blue border */
{{#if:caption | '''Caption''': {{{caption}}}<br />}}
                border-radius: 10px; /* rounded corners */
{{#if:type | '''Type''': {{{type}}}<br />}}
                margin: 0 auto; /* center horizontally */
{{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
                padding: 5px; /* padding for inner content */
{{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
                display: flex; /* enable flexbox */
{{#if:cost | '''Cost''': {{{cost}}}<br />}}
                justify-content: center; /* center horizontally */
{{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
                align-items: center;"> <!-- center vertically -->
{{#if:effects | '''Effects''': {{{effects}}}<br />}}
      {{#if:image | [[File:{{{image}}}|frameless|100px]]}} <!-- Fixed size for the image -->
{{#if:durability | '''Durability''': {{{durability}}}<br />}}
    </div>
{{#if:weight | '''Weight''': {{{weight}}}<br />}}
    {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->
{{#if:value | '''Value''': {{{value}}}<br />}}
  </div>
{{#if:uses | '''Uses''': {{{uses}}}<br />}}
  <div style="background-color: transparent;"> <!-- Transparent background for text -->
{{#if:description | '''Description''': {{{description}}}<br />}}
    {{#if:caption | '''Caption''': {{{caption}}}<br />}}
    {{#if:type | '''Type''': {{{type}}}<br />}}
    {{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
    {{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
    {{#if:cost | '''Cost''': {{{cost}}}<br />}}
    {{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
    {{#if:effects | '''Effects''': {{{effects}}}<br />}}
    {{#if:durability | '''Durability''': {{{durability}}}<br />}}
    {{#if:weight | '''Weight''': {{{weight}}}<br />}}
    {{#if:value | '''Value''': {{{value}}}<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}}}