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 440: Line 440:
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Rig </div><div class='item att-img'>[[Image:icon_rigs.png|20px|middle|rigs]]</div>
 
           <div class='item att-label'>Rig </div><div class='item att-img'>[[Image:icon_rigs.png|20px|middle|rigs]]</div>
               {{#if: {{{rigs_count|}}}|<div class='item att-value'>{{{rigs_count}}}</div>|<div class='item att-value'>{{#switch:{{{class}}}|Corvette|Shuttle|Special Edition Shuttle|Freighter|Jump Freighter=0|#default={{#switch:{{{tech}}}|2=2|#default=3}}}}</div>}}
+
               {{#if: {{{rigs_count|}}}
              &nbsp;{{#if: {{{rigs_size|}}}|<div class='item att-value'>{{{rigs_size}}}</div>
+
              | <div class='item att-value'>{{{rigs_count}}}</div>
              |<div class='item att-value'>{{#switch:{{{class}}}|Shuttle|Special Edition Shuttle|Corvette|Assault Frigate|Logistics Frigate|Covert Ops|Destroyer|Command Destroyer|Tactical Destroyer|Electronic Attack Ship|Expedition Frigate|Frigate|Interceptor|Interdictor|Stealth Bomber=small|Attack Battlecruiser|Blockade Runner|Combat Battlecruiser|Combat Recon Ship|Command Ship|Cruiser|Deep Space Transport|Exhumer|Force Recon Ship|Heavy Assault Cruiser|Heavy Interdiction Cruiser|Industrial|Logistics Cruiser|Mining Barge|Strategic Cruiser=medium|Battleship|Black Ops|Industrial Command Ship|Marauder=large|Capital Industrial Ship|Carrier|Force Auxiliary|Dreadnought|Freighter|Jump Freighter|Supercarrier|Titan=capital|#default=?}}</div>
+
              | <div class='item att-value'>{{#switch: {{{class}}}
 +
                | Corvette
 +
                | Shuttle
 +
                | Special Edition Shuttle
 +
                | Freighter
 +
                | Jump Freighter= 0
 +
                | #default={{#switch:{{{tech}}}
 +
                  | 2= 2
 +
                  | #default= 3
 +
                  }}
 +
                }}</div>
 
               }}
 
               }}
               <div class='item att-label' style='color:#9E8F75;margin-left: 5px;'>Calibration </div><div class='item att-img'>[[Image:icon_calibration.png|16px|middle|calibration]]</div><div class='item att-value'>{{#IF: {{{rigs_calibration|}}}|{{{rigs_calibration|}}}|{{#switch:{{{class}}}|Corvette|Shuttle|Limited Edition Shuttle|Freighter|Jump Freighter=0|#default={{#switch:{{{grouping}}}|Pirate Faction Ships=350|#default=400}}}}}}</div>
+
              &nbsp;{{#if: {{{rigs_size|}}}
 +
                |<div class='item att-value'>{{{rigs_size}}}</div>
 +
                |<div class='item att-value'>{{#switch:{{{class}}}
 +
                  | Shuttle
 +
                  | Special Edition Shuttle
 +
                  | Corvette
 +
                  | Assault Frigate
 +
                  | Logistics Frigate
 +
                  | Covert Ops
 +
                  | Destroyer
 +
                  | Command Destroyer
 +
                  | Tactical Destroyer
 +
                  | Electronic Attack Ship
 +
                  | Expedition Frigate
 +
                  | Frigate
 +
                  | Interceptor
 +
                  | Interdictor
 +
                  | Stealth Bomber= small
 +
                  | Attack Battlecruiser
 +
                  | Blockade Runner
 +
                  | Combat Battlecruiser
 +
                  | Combat Recon Ship
 +
                  | Command Ship
 +
                  | Cruiser
 +
                  | Deep Space Transport
 +
                  | Exhumer
 +
                  | Force Recon Ship
 +
                  | Heavy Assault Cruiser
 +
                  | Heavy Interdiction Cruiser
 +
                  | Industrial
 +
                  | Logistics Cruiser
 +
                  | Mining Barge
 +
                  | Strategic Cruiser= medium
 +
                  | Battleship|Black Ops
 +
                  | Industrial Command Ship
 +
                  | Marauder= large
 +
                  | Capital Industrial Ship
 +
                  | Carrier
 +
                  | Force Auxiliary
 +
                  | Dreadnought
 +
                  | Freighter
 +
                  | Jump Freighter
 +
                  | Supercarrier
 +
                  | Titan= capital
 +
                  | #default= ?
 +
                }}</div>
 +
              }}
 +
<!-- Calibration -->
 +
               <div class='item att-label' style='color:#9E8F75;margin-left: 5px;'>Calibration </div><div class='item att-img'>[[Image:icon_calibration.png|16px|middle|calibration]]</div><div class='item att-value'>{{#if: {{{rigs_calibration|}}}
 +
                |{{{rigs_calibration|}}}
 +
                |{{#switch:{{{class}}}
 +
                  | Corvette
 +
                  | Shuttle
 +
                  | Limited Edition Shuttle
 +
                  | Freighter
 +
                  | Jump Freighter= 0
 +
                  | #default={{#switch:{{{grouping}}}
 +
                    | Pirate Faction Ships= 350
 +
                    | #default=400
 +
                  }}
 +
                }}
 +
              }}</div>
 
         </div>
 
         </div>
 
         </td>
 
         </td>
 
       </tr>
 
       </tr>
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 +
<!-- Ship attributes - Navigation -->
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Navigation</span></td>
 
         <td class='line-label'><span class='label'>Navigation</span></td>
 +
<!-- Max velocity -->
 
         <td class='att-line'>
 
         <td class='att-line'>
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Max Velocity</div><div class='item att-img'>[[Image:Icon_velocity.png|20px|middle|max. velocity]]</div><div class='item att-value'>{{{maxvelocity|0 m/s}}}</div>
 
           <div class='item att-label'>Max Velocity</div><div class='item att-img'>[[Image:Icon_velocity.png|20px|middle|max. velocity]]</div><div class='item att-value'>{{{maxvelocity|0 m/s}}}</div>
 
         </div>
 
         </div>
 +
<!-- inertia modifier -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Inertia Modifier</div><div class='item att-img'>[[Image:icon_inertia.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{inertia|0.0}}}</div>
 
           <div class='item att-label'>Inertia Modifier</div><div class='item att-img'>[[Image:icon_inertia.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{inertia|0.0}}}</div>
 
         </div>
 
         </div>
 +
<!-- Warp speed -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Warp Speed</div><div class='item att-img'>[[Image:Icon_warp_speed.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{warpspeed|0 AU/s}}}</div>
 
           <div class='item att-label'>Warp Speed</div><div class='item att-img'>[[Image:Icon_warp_speed.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{warpspeed|0 AU/s}}}</div>
 
         </div>
 
         </div>
 +
<!-- Base time to warp -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label' style='margin-right:3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|middle|base time to warp]]</div><div class='item att-value'>{{{warptime|0.0 s}}}</div><div class='item att-value snip'>what's this?<div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.</div></div>
 
           <div class='item att-label' style='margin-right:3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|middle|base time to warp]]</div><div class='item att-value'>{{{warptime|0.0 s}}}</div><div class='item att-value snip'>what's this?<div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.</div></div>
Line 467: Line 543:
 
       </tr>
 
       </tr>
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 +
<!-- Ship attributes - Drones/Fighters -->
 
       <tr class='token' {{#if:{{{fighterbay|}}}|style="display: none;"}}>
 
       <tr class='token' {{#if:{{{fighterbay|}}}|style="display: none;"}}>
 
         <td class='line-label'><span class='label'>Drones</span></td>
 
         <td class='line-label'><span class='label'>Drones</span></td>
Line 474: Line 551:
 
         </div>
 
         </div>
 
         </td>
 
         </td>
 +
 
         <td class='att-line' {{#if:{{{dronebay|}}}| |style="display: none;"}}>
 
         <td class='att-line' {{#if:{{{dronebay|}}}| |style="display: none;"}}>
 
         <div class='att-item'>
 
         <div class='att-item'>
Line 483: Line 561:
 
         </td>
 
         </td>
 
       </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>
Line 504: Line 583:
 
       </tr>
 
       </tr>
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 +
<!-- Ship attributes - Targeting -->
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Targeting</span></td>
 
         <td class='line-label'><span class='label'>Targeting</span></td>
 +
<!-- Max range -->
 
         <td class='att-line'>
 
         <td class='att-line'>
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Max Tgt. Range</div><div class='item att-img'>[[Image:icon_target_range.png|20px|middle|max. targeting range]]</div><div class='item att-value'>{{{targetrange|0 km}}}</div>
 
           <div class='item att-label'>Max Tgt. Range</div><div class='item att-img'>[[Image:icon_target_range.png|20px|middle|max. targeting range]]</div><div class='item att-value'>{{{targetrange|0 km}}}</div>
 
         </div>
 
         </div>
 +
<!-- Max targets -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Max Locked Targets</div><div class='item att-img'>[[Image:icon_target_max.png|20px|middle|max. locked targets]]</div><div class='item att-value'>{{{maxlockedtargets|0}}}</div>
 
           <div class='item att-label'>Max Locked Targets</div><div class='item att-img'>[[Image:icon_target_max.png|20px|middle|max. locked targets]]</div><div class='item att-value'>{{{maxlockedtargets|0}}}</div>
 
         </div>
 
         </div>
 +
<!-- 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}}}|RADAR=[[Image:Icon_sensor_radar.png|20px|middle|RADAR sensor strength]]|Gravimetric=[[Image:Icon_sensor_gravimetric.png|20px|middle|Gravimetric sensor strength]]|Magnetometric=[[Image:Icon_sensor_magnetometric.png|20px|middle|Magnetometric 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>
+
           <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]]
 +
              | Gravimetric=[[Image:Icon_sensor_gravimetric.png|20px|middle|Gravimetric sensor strength]]
 +
              | Magnetometric=[[Image:Icon_sensor_magnetometric.png|20px|middle|Magnetometric 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>
 
         </div>
 
         </div>
 +
<!-- Signature radius -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Sig. Radius</div><div class='item att-img'>[[Image:icon_ship_sig.png|20px|middle|ship signature radius]]</div><div class='item att-value'>{{{sigradius|0 m}}}</div>
 
           <div class='item att-label'>Sig. Radius</div><div class='item att-img'>[[Image:icon_ship_sig.png|20px|middle|ship signature radius]]</div><div class='item att-value'>{{{sigradius|0 m}}}</div>
 
         </div>
 
         </div>
 +
<!-- Scan resolution -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Scan Res.</div><div class='item att-img'>[[Image:icon_sensor_resolution.png|20px|middle|scan resolution]]</div><div class='item att-value'>{{{scanres|0 mm}}}</div>
 
           <div class='item att-label'>Scan Res.</div><div class='item att-img'>[[Image:icon_sensor_resolution.png|20px|middle|scan resolution]]</div><div class='item att-value'>{{{scanres|0 mm}}}</div>
Line 526: Line 616:
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 
       <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'>
 
         <td class='att-line'>
 +
<!-- hitpoints -->
 
         <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>
 
         </div>
 
         </div>
 +
<!-- Mass -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Mass</div><div class='item att-img'>[[Image:icon_mass.png|20px|middle|ship mass]]</div><div class='item att-value'>{{{mass|0 kg}}}</div>
 
           <div class='item att-label'>Mass</div><div class='item att-img'>[[Image:icon_mass.png|20px|middle|ship mass]]</div><div class='item att-value'>{{{mass|0 kg}}}</div>
 
         </div>
 
         </div>
 +
<!-- Volume -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Volume</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|ship volume]]</div><div class='item att-value'>{{{volume|0 m&#179;}}}</div>
 
           <div class='item att-label'>Volume</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|ship volume]]</div><div class='item att-value'>{{{volume|0 m&#179;}}}</div>
 
         </div>
 
         </div>
 +
<!-- Cargo capacity -->
 
         <div class='att-item'>
 
         <div class='att-item'>
 
           <div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|cargo capacity]]</div><div class='item att-value'>{{{cargohold|0 m&#179;}}}</div>
 
           <div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|cargo capacity]]</div><div class='item att-value'>{{{cargohold|0 m&#179;}}}</div>
 
         </div>
 
         </div>
 +
<!-- Escape bay -->
 
         <div class='att-item' {{#ifeq:{{{class|}}}|Battleship| |style="display: none;"}}>
 
         <div class='att-item' {{#ifeq:{{{class|}}}|Battleship| |style="display: none;"}}>
 
           <div class='item att-label'>Frigate Escape Bay</div><div class='item att-img'>[[Image:Isis_frigate.png|center|20x20px|Frigate Capacity]]</div><div class='item att-value'>1 Frigate</div>
 
           <div class='item att-label'>Frigate Escape Bay</div><div class='item att-img'>[[Image:Isis_frigate.png|center|20x20px|Frigate Capacity]]</div><div class='item att-value'>1 Frigate</div>
 
         </div>
 
         </div>
 +
<!-- Extrahold -->
 
         <div class='att-item' {{#if:{{{extrahold|}}}| |style="display: none;"}}>
 
         <div class='att-item' {{#if:{{{extrahold|}}}| |style="display: none;"}}>
 
           <div class='item att-label'>{{{extraholdtype}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold|0 m&#179;}}}</div>
 
           <div class='item att-label'>{{{extraholdtype}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold|0 m&#179;}}}</div>
 
         </div>
 
         </div>
 +
<!-- Extrahold 2 -->
 
         <div class='att-item' {{#if:{{{extrahold2|}}}| |style="display: none;"}}>
 
         <div class='att-item' {{#if:{{{extrahold2|}}}| |style="display: none;"}}>
 
           <div class='item att-label'>{{{extrahold2type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold2|0 m&#179;}}}</div>
 
           <div class='item att-label'>{{{extrahold2type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold2|0 m&#179;}}}</div>
 
         </div>
 
         </div>
 +
<!-- Extrahold 3 -->
 
         <div class='att-item' {{#if:{{{extrahold3|}}}| |style="display: none;"}}>
 
         <div class='att-item' {{#if:{{{extrahold3|}}}| |style="display: none;"}}>
 
           <div class='item att-label'>{{{extrahold3type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold3|0 m&#179;}}}</div>
 
           <div class='item att-label'>{{{extrahold3type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold3|0 m&#179;}}}</div>
 
         </div>
 
         </div>
 +
<!-- Extrahold 4 -->
 
<div class='att-item' {{#if:{{{extrahold4|}}}| |style="display: none;"}}>
 
<div class='att-item' {{#if:{{{extrahold4|}}}| |style="display: none;"}}>
 
           <div class='item att-label'>{{{extrahold4type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold4|0 m&#179;}}}</div>
 
           <div class='item att-label'>{{{extrahold4type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold4|0 m&#179;}}}</div>
Line 558: Line 658:
 
       </tr>
 
       </tr>
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 +
<!-- Ship attributes - Shield -->
 
       <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>
Line 596: Line 697:
 
       </tr>
 
       </tr>
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
 +
<!-- Ship attributes - Armor -->
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Armor</span></td>
 
         <td class='line-label'><span class='label'>Armor</span></td>
Line 633: Line 735:
 
         </td>
 
         </td>
 
       </tr>
 
       </tr>
 +
 
       </table>
 
       </table>
 
     </div>
 
     </div>
Line 638: Line 741:
 
   </tr>
 
   </tr>
 
   </table>
 
   </table>
 +
 
  </div>
 
  </div>
 
</div></includeonly>
 
</div></includeonly>

Revision as of 16:59, 22 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?)