Difference between revisions of "User:Evon R'al/Sandbox template"

From EVE University Wiki
Jump to: navigation, search
m (Coding and testing.)
m (Coding and testing.)
Line 304: Line 304:
 
<div style='float: left; clear: both; width: 100%'>
 
<div style='float: left; clear: both; width: 100%'>
 
   <div class='ship-info'>
 
   <div class='ship-info'>
     <div class='title'><span style='font-size: 16px'>&equiv;</span> {{#if: {{{class}}} |{{{class}}} |SHIP}}: INFORMATION<div style='display: {{#if: {{{roles}}} |block |none}}; float: right; font-weight: bold; font-family: trebuchet MS; text-transform: uppercase; font-size: 80%; line-height: 20px; color: #F1EFCA;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}</div></div>
+
     <div class='title'><span style='font-size: 16px'>&equiv;</span> {{#if: {{{class|}}} |{{{class}}} |SHIP}}: INFORMATION<div style='display: {{#if: {{{roles|}}} |block |none}}; float: right; font-weight: bold; font-family: trebuchet MS; text-transform: uppercase; font-size: 80%; line-height: 20px; color: #F1EFCA;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}</div></div>
 
     <table style='width:100%;'>
 
     <table style='width:100%;'>
 
       <tr>
 
       <tr>
Line 312: Line 312:
 
             |
 
             |
 
           }}{{#ifexist: File:{{{shipimg}}}
 
           }}{{#ifexist: File:{{{shipimg}}}
                 | [[Image:{{{shipimg|no-image.png}}}|center|256x256px|{{#if: {{{shipname}}}
+
                 | [[Image:{{{shipimg|no-image.png}}}|center|256x256px|{{#if: {{{shipname|}}}
 
                   | {{{shipname}}}
 
                   | {{{shipname}}}
 
                   | Unknown Ship
 
                   | Unknown Ship
 
                 }}]]
 
                 }}]]
                 | [[Image:no-image.png|center|256x256px|{{#if: {{{shipname}}}
+
                 | [[Image:no-image.png|center|256x256px|{{#if: {{{shipname|}}}
 
                   | {{{shipname}}}
 
                   | {{{shipname}}}
 
                   | Unknown Ship}}]]
 
                   | Unknown Ship}}]]
Line 338: Line 338:
 
                 |CONCORD=Logo_faction_concord_assembly.png
 
                 |CONCORD=Logo_faction_concord_assembly.png
 
                 |#default=Logo_faction_khanid_kingdom.png
 
                 |#default=Logo_faction_khanid_kingdom.png
               }}|center|60x60px|{{#if:{{{faction}}}
+
               }}|center|60x60px|{{#if: {{{faction|}}}
                   |{{{faction|Unknown Faction}}}
+
                   |{{{faction}}}
 
                   |Unknown Faction
 
                   |Unknown Faction
 
                 }}]]</div>
 
                 }}]]</div>
 
           <div style='display: {{#ifexist: File:{{{shipimg}}} |none |block}}; text-align: center;' class='forum-link'>
 
           <div style='display: {{#ifexist: File:{{{shipimg}}} |none |block}}; text-align: center;' class='forum-link'>
 
             <div class='linkentry'>
 
             <div class='linkentry'>
               <div class='linkname' style='font-weight: bold;'>{{#if: {{{shipimg}}}
+
               <div class='linkname' style='font-weight: bold;'>{{#if: {{{shipimg|}}}
 
                   | [[File:{{{shipimg}}}| Upload {{{shipimg}}} for this ship image.]]
 
                   | [[File:{{{shipimg}}}| Upload {{{shipimg}}} for this ship image.]]
 
                   | <span style='font-weight: normal; font-size: 11px; line-height: 120%;'>Please upload an image for this ship and edit the respective entry on the ship database, see "editing database entry" [[Template:Ship|here]].</span>
 
                   | <span style='font-weight: normal; font-size: 11px; line-height: 120%;'>Please upload an image for this ship and edit the respective entry on the ship database, see "editing database entry" [[Template:Ship|here]].</span>
Line 448: Line 448:
 
                       <div class='att-img'>[[Image:icon_resist_kin.png|20px|armor kinetic resistance|]]</div>
 
                       <div class='att-img'>[[Image:icon_resist_kin.png|20px|armor kinetic resistance|]]</div>
 
                       <div style='display: inline-block;'>
 
                       <div style='display: inline-block;'>
                         <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width: {{#expr:{{#expr:{{#if: {{{armorkin|}}}|{{{armorkin}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{armorkin}}}|{{{armorkin|0}}}|0}}</div></div></div>
+
                         <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width: {{#expr:{{#expr:{{#if: {{{armorkin|}}}|{{{armorkin}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{armorkin|}}}|{{{armorkin}}}|0}}</div></div></div>
 
                       </div>
 
                       </div>
 
                       <div class='att-img'>[[Image:icon_resist_exp.png|20px|armor explosive resistance|]]</div>
 
                       <div class='att-img'>[[Image:icon_resist_exp.png|20px|armor explosive resistance|]]</div>
 
                       <div style='display: inline-block;'>
 
                       <div style='display: inline-block;'>
                         <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width:{{#expr:{{#expr:{{#if:{{{armorexp|}}}|{{{armorexp}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{armorexp|}}}|{{{armorexp}}}|0}}</div></div></div>
+
                         <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width:{{#expr:{{#expr:{{#if: {{{armorexp|}}}|{{{armorexp}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{armorexp|}}}|{{{armorexp}}}|0}}</div></div></div>
 
                       </div>
 
                       </div>
 
                     </div>
 
                     </div>
Line 474: Line 474:
 
             </tr>
 
             </tr>
 
           </table>
 
           </table>
           <div class='ship-border-box' style='display: {{#if: {{{bonuses}}}|block|none}}; margin: 10px 5px 5px'>
+
           <div class='ship-border-box' style='display: {{#if: {{{bonuses|}}}|block|none}}; margin: 10px 5px 5px'>
 
             <div class='label'><div class='inner'>S H I P&nbsp;&nbsp;&nbsp;B O N U S E S</div></div>  
 
             <div class='label'><div class='inner'>S H I P&nbsp;&nbsp;&nbsp;B O N U S E S</div></div>  
 
             <p>{{#if: {{{bonuses|}}} |{{{bonuses}}} |<i>no bonuses available for this ship</i>}}</p>
 
             <p>{{#if: {{{bonuses|}}} |{{{bonuses}}} |<i>no bonuses available for this ship</i>}}</p>
 
           </div>
 
           </div>
           <p class='ship-desc'>{{#if: {{{info}}} |{{{info|&nbsp;}}} |&nbsp;}}</p>
+
           <p class='ship-desc'>{{#if: {{{info|}}} |{{{info}}} |&nbsp;}}</p>
 
           <!--<div class='ship-variants'>Variations : {{#if: {{{variations|}}} |{{{variations}}} |<i>none</i>}}</div>-->
 
           <!--<div class='ship-variants'>Variations : {{#if: {{{variations|}}} |{{{variations}}} |<i>none</i>}}</div>-->
 
           <div class='box-footer'>[[{{{shipname|}}}]] =></div>
 
           <div class='box-footer'>[[{{{shipname|}}}]] =></div>

Revision as of 15:27, 18 January 2023

Template documentation (for the above template, sometimes hidden or invisible)
Visit User:Evon R'al/Sandbox template/doc to edit this text! (How does this work?) (Refresh this text - why?)