Difference between revisions of "Template:ShipBoxLarge"

From EVE University Wiki
Jump to: navigation, search
(finished adding parameter protection for this template)
Line 222: Line 222:
 
<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;'>{{{roles}}}</div></div>
+
<div class='title'><span style='font-size:16px'>&equiv;</span> {{#if:{{{class}}}|{{{class|SHIP}}}|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;'>{{{roles}}}</div></div>
 
<table style='width:100%;margin-bottom:5px;'>
 
<table style='width:100%;margin-bottom:5px;'>
 
<tr>
 
<tr>
 
<td style='padding: 5px; width: 256px;' valign='top'>
 
<td style='padding: 5px; width: 256px;' valign='top'>
<div style='border:1px solid #323931;' class='ship-img'>{{#ifexist: File:{{{shipimg}}}|[[Image:{{{shipimg}}}|center|256x256px|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]|[[Image:no-image.png|center|256x256px|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]}}</div>
+
<div style='border:1px solid #323931;' class='ship-img'>{{#ifexist: File:{{{shipimg}}}|[[Image:{{{shipimg|no-image.png}}}|center|256x256px|{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}]]|[[Image:no-image.png|center|256x256px|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]}}</div>
 
<div class='forum-link'>
 
<div class='forum-link'>
 
<div class='linkentry'>
 
<div class='linkentry'>
 
<div class='linkimg'>[[Image:Icon_capacity.png|center|20x20px|forum discussion]]</div>
 
<div class='linkimg'>[[Image:Icon_capacity.png|center|20x20px|forum discussion]]</div>
 
<div style='display: inline-block; font-size: 10px;'>Forum Discussions :</div>
 
<div style='display: inline-block; font-size: 10px;'>Forum Discussions :</div>
<div class='linkname'>{{#if:{{{forumlinks}}}|{{{forumlinks}}}|[http://forum.eveuniversity.org/viewforum.php?f=128 Start discussion thread]}}</div>
+
<div class='linkname'>{{#if:{{{forumlinks}}}|{{{forumlinks|[http://forum.eveuniversity.org/viewforum.php?f=128 Start discussion thread]}}}|[http://forum.eveuniversity.org/viewforum.php?f=128 Start discussion thread]}}</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</td>
 
</td>
 
<td style='padding: 5px 5px 5px 0pt; border-left: 1px solid #333333' valign='top'>
 
<td style='padding: 5px 5px 5px 0pt; border-left: 1px solid #333333' valign='top'>
<div style='position: absolute;'><div style='color: #F1EFCA; float: left; font-size: 180%; height: 30px; line-height: 30px; padding-left: 5px;'>{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}</div></div>
+
<div style='position: absolute;'><div style='color: #F1EFCA; float: left; font-size: 180%; height: 30px; line-height: 30px; padding-left: 5px;'>{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}</div></div>
 
<table class='collapsible collapsed attributes' style='width: 100%; margin-bottom: 5px;'>
 
<table class='collapsible collapsed attributes' style='width: 100%; margin-bottom: 5px;'>
 
<tr>
 
<tr>
Line 250: Line 250:
 
</div>
 
</div>
 
<div class='att-item' style='border-right:medium none;'>
 
<div class='att-item' style='border-right:medium none;'>
<div class='att-value'>{{#if:{{{highs}}}|{{{highs}}}|0}}</div><div class='att-img'>[[Image:icon_hi_slot.png|20px|middle|high slots]]</div><div class='att-label' style='color: #9A7535;'>highs</div>
+
<div class='att-value'>{{#if:{{{highs}}}|{{{highs|0}}}|0}}</div><div class='att-img'>[[Image:icon_hi_slot.png|20px|middle|high slots]]</div><div class='att-label' style='color: #9A7535;'>highs</div>
 
</div>
 
</div>
 
<div class='att-item' style='border-right:medium none;'>
 
<div class='att-item' style='border-right:medium none;'>
<div class='att-value'>{{#if:{{{launchers}}}|{{{launchers}}}|0}}</div><div class='att-img'>[[Image:icon_launcher_hp.png|20px|middle|launcher slots]]</div><div class='att-label'>launchers</div>
+
<div class='att-value'>{{#if:{{{launchers}}}|{{{launchers|0}}}|0}}</div><div class='att-img'>[[Image:icon_launcher_hp.png|20px|middle|launcher slots]]</div><div class='att-label'>launchers</div>
 
</div>
 
</div>
 
<div class='att-item'>
 
<div class='att-item'>
<div class='att-value'>{{#if:{{{turrets}}}|{{{turrets}}}|0}}</div><div class='att-img'>[[Image:icon_turret_hp.png|20px|middle|turret slots]]</div><div class='att-label'>turrets</div>
+
<div class='att-value'>{{#if:{{{turrets}}}|{{{turrets|0}}}|0}}</div><div class='att-img'>[[Image:icon_turret_hp.png|20px|middle|turret slots]]</div><div class='att-label'>turrets</div>
 
</div>
 
</div>
 
<div class='att-item'>
 
<div class='att-item'>
<div class='att-value'>{{#if:{{{mediums}}}|{{{mediums}}}|0}}</div><div class='att-img'>[[Image:icon_mid_slot.png|20px|middle|middle slots]]</div><div class='att-label' style='color: #9A7535;'>mediums</div>
+
<div class='att-value'>{{#if:{{{mediums}}}|{{{mediums|0}}}|0}}</div><div class='att-img'>[[Image:icon_mid_slot.png|20px|middle|middle slots]]</div><div class='att-label' style='color: #9A7535;'>mediums</div>
 
</div>
 
</div>
 
<div class='att-item'>
 
<div class='att-item'>
<div class='att-value'>{{#if:{{{lows}}}|{{{lows}}}|0}}</div><div class='att-img'>[[Image:icon_low_slot.png|20px|middle|low slots]]</div><div class='att-label' style='color: #9A7535;'>lows</div>
+
<div class='att-value'>{{#if:{{{lows}}}|{{{lows|0}}}|0}}</div><div class='att-img'>[[Image:icon_low_slot.png|20px|middle|low slots]]</div><div class='att-label' style='color: #9A7535;'>lows</div>
 
</div>
 
</div>
 
</div>
 
</div>
Line 310: Line 310:
 
</div>
 
</div>
 
<div class='att-item' style='width:87px;'>
 
<div class='att-item' style='width:87px;'>
<div class='att-value' style='width:30px'>{{{armorhp|0}}}</div><div class='att-img'>[[Image:icon_armor.png|20px|middle|armor]]</div><div class='att-label'>armor</div>
+
<div class='att-value' style='width:30px'>{{#if:{{{armorhp}}}|{{{armorhp|0}}}|0}}</div><div class='att-img'>[[Image:icon_armor.png|20px|middle|armor]]</div><div class='att-label'>armor</div>
 
</div>
 
</div>
 
<div class='att-item' style='border-right: medium none;'>
 
<div class='att-item' style='border-right: medium none;'>
 
<div class='att-img'>[[Image:icon_resist_em.png|20px|armor electromagnetic resistance|]]</div>
 
<div class='att-img'>[[Image:icon_resist_em.png|20px|armor electromagnetic resistance|]]</div>
 
<div style='display: inline-block;'>
 
<div style='display: inline-block;'>
<div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr:{{#expr:{{{armorem|0}}}/2}}round0}}px;'> <div class='value-text'>{{{armorem|0}}}</div></div></div>
+
<div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr:{{#expr:{{#if:{{{armorem}}}|{{{armorem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorem}}}|{{{armorem|0}}}|0}}</div></div></div>
 
</div>
 
</div>
 
<div class='att-img'>[[Image:icon_resist_therm.png|20px|armor thermal resistance|]]</div>
 
<div class='att-img'>[[Image:icon_resist_therm.png|20px|armor thermal resistance|]]</div>
 
<div style='display: inline-block;'>
 
<div style='display: inline-block;'>
<div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width:{{#expr:{{#expr:{{{armortherm|0}}}/2}}round0}}px;'> <div class='value-text'>{{{armortherm|0}}}</div></div></div>
+
<div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width:{{#expr:{{#expr:{{#if:{{{armortherm}}}|{{{armortherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armortherm}}}|{{{armortherm|0}}}|0}}</div></div></div>
 
</div>
 
</div>
 
<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:{{{armorkin|0}}}/2}}round0}}px;'> <div class='value-text'>{{{armorkin|0}}}</div></div></div>
+
<div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width:{{#expr:{{#expr:{{#if:{{{armorkin}}}|{{{armorkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorkin}}}|{{{armorkin|0}}}|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:{{{armorexp|0}}}/2}}round0}}px;'> <div class='value-text'>{{{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}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorexp}}}|{{{armorexp|0}}}|0}}</div></div></div>
 
</div>
 
</div>
 
</div>
 
</div>
Line 336: Line 336:
 
</div>
 
</div>
 
<div class='att-item'>
 
<div class='att-item'>
<div class='att-value' style='width:50px'>{{{targetrange|0 km}}}</div><div class='att-img'>[[Image:icon_target_range.png|20px|middle|max. targeting range]]</div><div class='att-label'>tgt. range</div>
+
<div class='att-value' style='width:50px'>{{#if:{{{targetrange}}}|{{{targetrange|0 km}}}|0 km}}</div><div class='att-img'>[[Image:icon_target_range.png|20px|middle|max. targeting range]]</div><div class='att-label'>tgt. range</div>
 
</div>
 
</div>
 
<div class='att-item'>
 
<div class='att-item'>
<div class='att-value' style='width:30px'>{{{sigradius|0 m}}}</div><div class='att-img'>[[Image:icon_ship_sig.png|20px|middle|ship signature radius]]</div><div class='att-label'>sig. radius</div>
+
<div class='att-value' style='width:30px'>{{#if:{{{sigradius}}}|{{{sigradius|0 m}}}|0 m}}</div><div class='att-img'>[[Image:icon_ship_sig.png|20px|middle|ship signature radius]]</div><div class='att-label'>sig. radius</div>
 
</div>
 
</div>
 
<div class='att-item' style='border-right:medium none;'>
 
<div class='att-item' style='border-right:medium none;'>
<div class='att-value' style='width:55px'>{{{maxvelocity|0 m/s}}}</div><div class='att-img'>[[Image:Icon_velocity.png|20px|middle|max. velocity]]</div><div class='att-label'>max. velocity</div>
+
<div class='att-value' style='width:55px'>{{#if:{{{maxvelocity}}}|{{{maxvelocity|0 m/s}}}|0 m/s}}</div><div class='att-img'>[[Image:Icon_velocity.png|20px|middle|max. velocity]]</div><div class='att-label'>max. velocity</div>
 
</div>
 
</div>
 
</div>
 
</div>
Line 351: Line 351:
 
<div class='ship-border-box' style='display:{{#if:{{{bonuses}}}|block|none}};margin:5px'>
 
<div class='ship-border-box' style='display:{{#if:{{{bonuses}}}|block|none}};margin: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>{{{bonuses|<i>no bonuses available for this ship</i>}}}</p>
+
<p>{{#if:{{{maxvelocity}}}|{{{maxvelocity|<i>no bonuses available for this ship</i>}}}|<i>no bonuses available for this ship</i>}}</p>
 
</div>
 
</div>
 
<p class='ship-desc'>{{{info}}}</p>
 
<p class='ship-desc'>{{{info}}}</p>
<div class='ship-variants'>Variations : {{{variations|<i>none</i>}}}</div>
+
<div class='ship-variants'>Variations : {{#if:{{{variations}}}|{{{variations|<i>none</i>}}}|<i>none</i>}}</div>
 
</td>
 
</td>
 
</tr>
 
</tr>

Revision as of 10:56, 7 September 2011

SHIP: INFORMATION
{{{roles}}}
{{{shipname}}}
Unknown Ship
S H I P   B O N U S E S

no bonuses available for this ship

{{{info}}}

Variations : none