Template:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
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 # | border: 2px solid #007bff; /* blue border */ | ||
border-radius: 10px; /* | 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 */"> | ||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
<div style="width: 100px; height: 100px; | <div style="width: 100px; height: 100px; border: 2px solid #007bff; /* blue border */ | ||
margin: 0 auto; /* | border-radius: 10px; /* rounded corners */ | ||
padding: 5px; /* | margin: 0 auto; /* center horizontally */ | ||
display: flex; /* | padding: 5px; /* padding for inner content */ | ||
justify-content: center; /* | display: flex; /* enable flexbox */ | ||
align-items: center; | 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> | ||
<div> | <div style="background-color: transparent; padding: 5px;"> <!-- Transparent background for text --> | ||
<div style="color: #007bff;"> <!-- Fancy color for text --> | |||
{{#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> | ||
</div> | </div> |
Revision as of 10:11, 13 April 2024
[[File:{{{image}}}|frameless|100px]]
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}}}