Template:Infobox Item: Difference between revisions

From RexKraft
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
(7 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: rgba(0, 0, 0, 0.5); /* black transparent background */
             margin-left: 10px; /* Add some left margin to separate it from other content */">
            color: white; /* white text color */">
  <div style="text-align: center;">
{{#if:image | <hr style="border-color: #007bff; margin-top: 0px; margin-bottom: 10px;" /> <!-- Line before image -->
    <div style="width: 100px; height: 100px; border: 2px solid #007bff; /* blue border */
[[File:{{{image}}}|frameless|center|300px]] <!-- Image -->
                border-radius: 10px; /* rounded corners */
<hr style="border-color: #007bff; margin-top: 10px; margin-bottom: 0px;" /> <!-- Line after image -->
                margin: 0 auto; /* center horizontally */
<br />}}
                padding: 5px; /* padding for inner content */
{{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Name of the item -->
                display: flex; /* enable flexbox */
{{#if:caption | '''Caption''': {{{caption}}}<br />}}
                justify-content: center; /* center horizontally */
{{#if:type | '''Type''': {{{type}}}<br />}}
                align-items: center;"> <!-- center vertically -->
{{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
      {{#if:image | [[File:{{{image}}}|frameless|100px]]}} <!-- Fixed size for the image -->
{{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
    </div>
{{#if:cost | '''Cost''': {{{cost}}}<br />}}
    {{#if:name | '''<center>{{{name}}}</center>'''}} <!-- Center-align the name -->
{{#if:obtainable_from | '''Obtainable From''': {{{obtainable_from}}}<br />}}
  </div>
{{#if:effects | '''Effects''': {{{effects}}}<br />}}
  <div style="background-color: transparent;"> <!-- Transparent background for text -->
{{#if:durability | '''Durability''': {{{durability}}}<br />}}
    {{#if:caption | '''Caption''': {{{caption}}}<br />}}
{{#if:weight | '''Weight''': {{{weight}}}<br />}}
    {{#if:type | '''Type''': {{{type}}}<br />}}
{{#if:value | '''Value''': {{{value}}}<br />}}
    {{#if:rarity | '''Rarity''': {{{rarity}}}<br />}}
{{#if:uses | '''Uses''': {{{uses}}}<br />}}
    {{#if:mining_power | '''Mining Power''': {{{mining_power}}}<br />}}
{{#if:description | '''Description''': {{{description}}}<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}}}