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 604: Line 604:
 
<!--** Ship attributes - Drones/Fighters **-->
 
<!--** Ship attributes - Drones/Fighters **-->
 
       <tr class='token' {{#if: {{{fighterbay|}}}
 
       <tr class='token' {{#if: {{{fighterbay|}}}
        |style="display: none;"}}>
+
          | style="display: none;"
        <td class='line-label'><span class='label'>Drones</span></td>
+
        }}>
        <td class='att-line' {{#if:{{{dronebay|}}}|style="display: none;"}}>
+
        <td class='line-label'><span class='label'>Drones</span></td>
 +
        <td class='att-line' {{#if: {{{dronebay|}}}
 +
            | style="display: none;"
 +
          }}>
 
           <div class='att-item'>
 
           <div class='att-item'>
 
           <div class='item att-label' style="font-style: italic;">No drone bay.</div>
 
           <div class='item att-label' style="font-style: italic;">No drone bay.</div>
Line 613: Line 616:
  
 
         <td class='att-line' {{#if: {{{dronebay|}}}
 
         <td class='att-line' {{#if: {{{dronebay|}}}
          |  
+
            |  
          |style="display: none;"
+
            | style="display: none;"
          }}>
+
          }}>
          <div class='att-item'>
+
        <div class='att-item'>
            <div class='item att-label'>Drone Capacity</div>
+
          <div class='item att-label'>Drone Capacity</div><div class='item att-img'>[[Image:icon_drone_capacity.png|20px|middle|drone capacity]]</div><div class='item att-value'>{{{dronebay|0 m&#179;}}}</div>
            <div class='item att-img'>[[Image:icon_drone_capacity.png|20px|middle|drone capacity]]</div>
+
        </div>
            <div class='item att-value'>{{{dronebay|0 m&#179;}}}</div>
 
          </div>
 
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|drone bandwidth]]</div><div class='item att-value'>{{{bandwidth|0 Mbit/sec}}}</div>
 
           <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|drone bandwidth]]</div><div class='item att-value'>{{{bandwidth|0 Mbit/sec}}}</div>
Line 627: Line 628:
 
       </tr>
 
       </tr>
  
       <tr class='token' {{#if:{{{fighterbay|}}}| |style="display: none;"}}>
+
       <tr class='token' {{#if: {{{fighterbay|}}}
 +
          |  
 +
          | style="display: none;"
 +
          }}>
 
         <td class='line-label'><span class='label'>Fighters</span></td>
 
         <td class='line-label'><span class='label'>Fighters</span></td>
 
         <td class='att-line'>
 
         <td class='att-line'>
Line 636: Line 640:
 
           <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|fighter tubes]]</div><div class='item att-value'>{{{fightertubes|0}}}</div>
 
           <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|fighter tubes]]</div><div class='item att-value'>{{{fightertubes|0}}}</div>
 
         </div>
 
         </div>
         <div class='att-item' {{#if:{{{lightfightersquadlimit|}}}| |style="display: none;"}}>
+
         <div class='att-item' {{#if: {{{lightfightersquadlimit|}}}
 +
            |  
 +
            | style="display: none;"
 +
            }}>
 
           <div class='item att-label'>Light Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{lightfightersquadlimit|0}}}</div>
 
           <div class='item att-label'>Light Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{lightfightersquadlimit|0}}}</div>
 
         </div>
 
         </div>
         <div class='att-item' {{#if:{{{heavyfightersquadlimit|}}}| |style="display: none;"}}>
+
         <div class='att-item' {{#if: {{{heavyfightersquadlimit|}}}
 +
            |  
 +
            |style="display: none;"
 +
            }}>
 
           <div class='item att-label'>Heavy Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{heavyfightersquadlimit|0}}}</div>
 
           <div class='item att-label'>Heavy Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{heavyfightersquadlimit|0}}}</div>
 
         </div>
 
         </div>
         <div class='att-item' {{#if:{{{supportfightersquadlimit|}}}| |style="display: none;"}}>
+
         <div class='att-item' {{#if: {{{supportfightersquadlimit|}}}
 +
            |  
 +
            |style="display: none;"
 +
            }}>
 
           <div class='item att-label'>Support Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{supportfightersquadlimit|0}}}</div>
 
           <div class='item att-label'>Support Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{supportfightersquadlimit|0}}}</div>
 
         </div>
 
         </div>
Line 667: Line 680:
 
<!--*** Sensor ***-->
 
<!--*** Sensor ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>{{{sensortype|Multi}}} Sensor</div><div class='item att-img'>{{#switch:{{{sensortype}}}
+
           <div class='item att-label'>{{{sensortype|Multi}}} Sensor</div><div class='item att-img'>{{#switch: {{{sensortype}}}
               | RADAR=[[Image:Icon_sensor_radar.png|20px|middle|RADAR sensor strength]]
+
               | RADAR= [[Image:Icon_sensor_radar.png|20px|middle|RADAR sensor strength]]
               | Gravimetric=[[Image:Icon_sensor_gravimetric.png|20px|middle|Gravimetric sensor strength]]
+
               | Gravimetric= [[Image:Icon_sensor_gravimetric.png|20px|middle|Gravimetric sensor strength]]
               | Magnetometric=[[Image:Icon_sensor_magnetometric.png|20px|middle|Magnetometric sensor strength]]
+
               | Magnetometric= [[Image:Icon_sensor_magnetometric.png|20px|middle|Magnetometric sensor strength]]
               | LADAR=[[Image:Icon_sensor_ladar.png|20px|middle|LADAR sensor strength]]
+
               | LADAR= [[Image:Icon_sensor_ladar.png|20px|middle|LADAR sensor strength]]
               |#default=[[Image:Icon_sensor_gravimetric.png|20px|middle|Multitype sensor strength]]}}</div><div class='item att-value'>{{{sensorvalue|0 points}}}</div>
+
               |#default= [[Image:Icon_sensor_gravimetric.png|20px|middle|Multitype sensor strength]]}}</div><div class='item att-value'>{{{sensorvalue|0 points}}}</div>
 
         </div>
 
         </div>
  
Line 689: Line 702:
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
  
 +
<!--** Ship attributes - Structure **-->
 
       <tr class='token'>
 
       <tr class='token'>
 
<!--** Ship attributes - Structure **-->
 
 
         <td class='line-label'><span class='label'>Structure</span></td>
 
         <td class='line-label'><span class='label'>Structure</span></td>
        <td class='att-line'>
 
  
 
<!--*** hitpoints ***-->
 
<!--*** hitpoints ***-->
 +
        <td class='att-line'>
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Structure Hitpoints</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|structure hitpoints]]</div><div class='item att-value'>{{{structurehp|0 HP}}}</div>
 
           <div class='item att-label'>Structure Hitpoints</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|structure hitpoints]]</div><div class='item att-value'>{{{structurehp|0 HP}}}</div>
Line 747: Line 759:
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Shields</span></td>
 
         <td class='line-label'><span class='label'>Shields</span></td>
        <td class='att-line'>
 
  
 
<!--*** hitpoints ***-->
 
<!--*** hitpoints ***-->
 +
        <td class='att-line'>
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Shield Capacity</div><div class='item att-img'>[[Image:icon_shield.png|20px|middle|shields]]</div><div class='item att-value'>{{{shieldhp|0 HP}}}</div>
 
           <div class='item att-label'>Shield Capacity</div><div class='item att-img'>[[Image:icon_shield.png|20px|middle|shields]]</div><div class='item att-value'>{{{shieldhp|0 HP}}}</div>
  
 
<!--*** resistances ***-->
 
<!--*** resistances ***-->
           <div class='item att-label' style='margin-left:5px;'>Shield Resistances</div>
+
           <div class='item att-label' style='margin-left: 5px;'>Shield Resistances</div>
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>EM</div>
 
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>EM</div>
 
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|shield electromagnetic resistance]]</div>
 
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|shield electromagnetic resistance]]</div>
           <div style='display: inline-block;'>
+
           <div style='display: inline-block;'> <!-- Here -->
             <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr:{{#expr:{{#if:{{{shieldem}}}|{{{shieldem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldem}}}|{{{shieldem|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr: {{#expr: {{#if: {{{shieldem}}}|{{{shieldem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{shieldem}}}
 +
              | {{{shieldem|0}}}
 +
              | 0
 +
              }}</div></div></div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>

Revision as of 15:35, 27 November 2022


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?)