Template:Item: Difference between revisions

From Blockgame Wiki
mNo edit summary
mNo edit summary
Line 2: Line 2:
   <div style="font-size: 120%; font-weight: bold; margin-bottom: 5px;">{{#if: {{{name|}}} | {{{name}}} | Item Name }}</div>
   <div style="font-size: 120%; font-weight: bold; margin-bottom: 5px;">{{#if: {{{name|}}} | {{{name}}} | Item Name }}</div>
   {{#if: {{{image|}}}
   {{#if: {{{image|}}}
     | <div style="text-align: center;"><img src="{{{image}}}" alt="{{{name|Item Image}}}" style="max-width: 100%;"></div>
     | <div style="text-align: center;">{{{image}}}</div>
   }}
   }}
   {{#if: {{{description|}}}
   {{#if: {{{description|}}}
Line 14: Line 14:
   }}
   }}
   {{#if: {{{rarity|}}}
   {{#if: {{{rarity|}}}
     | <div><strong>Rarity:</strong>
     | <div><strong>Rarity:</strong>  
       {{#switch: {{{rarity}}}
       {{#switch: {{{rarity}}}
         | Common = <span style="color:#c8c8c8;">Common</span>
         | Common = <span style="color:#c8c8c8;">Common</span>

Revision as of 17:07, 29 October 2023

Item Name