Difference between revisions of "Template:ShipBoxLarge"
From EVE University Wiki
m (Sorted faction logic options alphabetically. Made the default no image instead of a "random" faction. Add factions from {{ShipArticle}} that where not here. Make logic case insensitive.) |
m (Replace {{{parameter|default}}} with {{#if:}}, inconsistent behavior.) |
||
Line 344: | Line 344: | ||
| #default= no-image.png | | #default= no-image.png | ||
}}|60x60px|{{#if: {{{faction|}}} | }}|60x60px|{{#if: {{{faction|}}} | ||
− | |{{{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'> | ||
Line 380: | Line 380: | ||
</div> | </div> | ||
<div class='att-item' style='border-right: medium none;'> | <div class='att-item' style='border-right: medium none;'> | ||
− | <div class='att-value'>{{{highs|0 | + | <div class='att-value'>{{#if: {{{highs|}}}|{{{highs}}}|0}}</div><div class='att-img'>[[Image:icon_hi_slot.png|20px|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'>{{{launchers|0 | + | <div class='att-value'>{{#if: {{{launchers|}}}|{{{launchers}}}|0}}</div><div class='att-img'>[[Image:icon_launcher_hp.png|20px|launcher hardpoints]]</div><div class='att-label'>launchers</div> |
</div> | </div> | ||
<div class='att-item'> | <div class='att-item'> | ||
− | <div class='att-value'>{{{turrets|0 | + | <div class='att-value'>{{#if: {{{turrets|}}}|{{{turrets}}}|0}}</div><div class='att-img'>[[Image:icon_turret_hp.png|20px|turret hardpoints]]</div><div class='att-label'>turrets</div> |
</div> | </div> | ||
<div class='att-item'> | <div class='att-item'> | ||
− | <div class='att-value'>{{{mediums|0 | + | <div class='att-value'>{{#if: {{{mediums|}}}|{{{mediums}}}|0}}</div><div class='att-img'>[[Image:icon_mid_slot.png|20px|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'>{{{lows|0 | + | <div class='att-value'>{{#if: {{{lows|}}}|{{{lows}}}|0}}</div><div class='att-img'>[[Image:icon_low_slot.png|20px|low slots]]</div><div class='att-label' style='color: #9A7535;'>lows</div> |
</div> | </div> | ||
</div> | </div> | ||
Line 400: | Line 400: | ||
</div> | </div> | ||
<div class='att-item'> | <div class='att-item'> | ||
− | <div class='att-value' style='width: 40px;'>{{{dronebay|0 m3}}}</div><div class='att-img'>[[Image:icon_drone_capacity.png|20px|drone capacity]]</div><div class='att-label'>drones</div> | + | <div class='att-value' style='width: 40px;'>{{#if: {{{dronebay|}}}|{{{dronebay}}}|0 {{m3}} }}</div><div class='att-img'>[[Image:icon_drone_capacity.png|20px|drone capacity]]</div><div class='att-label'>drones</div> |
</div> | </div> | ||
<div class='att-item'> | <div class='att-item'> | ||
− | <div class='att-value' style='width: 80px;'>{{{bandwidth|0 Mbit/sec | + | <div class='att-value' style='width: 80px;'>{{#if: {{{bandwidth|}}}|{{{bandwidth}}}|0 Mbit/sec}}</div><div class='att-img'>[[Image:icon_drone_bandwith.png|20px|drone bandwidth]]</div><div class='att-label'>b/w</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: 70px;'>{{{cargohold|0 m3}}}</div><div class='att-img'>[[Image:Icon_capacity.png|20px|cargo capacity]]</div><div class='att-label'>cargo</div> | + | <div class='att-value' style='width: 70px;'>{{#if: {{{cargohold|}}}|{{{cargohold}}}|0 {{m3}} }}</div><div class='att-img'>[[Image:Icon_capacity.png|20px|cargo capacity]]</div><div class='att-label'>cargo</div> |
</div> | </div> | ||
</div> | </div> | ||
Line 414: | Line 414: | ||
</div> | </div> | ||
<div class='att-item' style='width: 87px; margin-left: 95px; text-align: right;'> | <div class='att-item' style='width: 87px; margin-left: 95px; text-align: right;'> | ||
− | <div class='att-value' style='width: auto'>{{#if: {{{shieldhp|}}} |{{{shieldhp}}} |0 HP}}</div><div class='att-img'>[[Image:icon_shield.png|20px|shields]]</div> | + | <div class='att-value' style='width: auto'>{{#if: {{{shieldhp|}}}|{{{shieldhp}}}|0 HP}}</div><div class='att-img'>[[Image:icon_shield.png|20px|shields]]</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|shield electromagnetic resistance]]</div> | <div class='att-img'>[[Image:icon_resist_em.png|20px|shield 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: {{#if:{{{shieldem|}}} |{{{shieldem}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldem|}}} |{{{shieldem}}} |0}}</div></div></div> | + | <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width: {{#expr: {{#if: {{{shieldem|}}}|{{{shieldem}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldem|}}}|{{{shieldem}}}|0}}</div></div></div> |
</div> | </div> | ||
<div class='att-img'>[[Image:icon_resist_therm.png|20px|shield thermal resistance]]</div> | <div class='att-img'>[[Image:icon_resist_therm.png|20px|shield 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: {{#if: {{{shieldtherm|}}} |{{{shieldtherm}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldtherm|}}} |{{{shieldtherm}}} |0}}</div></div></div> | + | <div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width: {{#expr: {{#if: {{{shieldtherm|}}}|{{{shieldtherm}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldtherm|}}}|{{{shieldtherm}}}|0}}</div></div></div> |
</div> | </div> | ||
<div class='att-img'>[[Image:icon_resist_kin.png|20px|shield kinetic resistance]]</div> | <div class='att-img'>[[Image:icon_resist_kin.png|20px|shield 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: {{#if:{{{shieldkin|}}} |{{{shieldkin}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldkin|}}} |{{{shieldkin}}} |0}}</div></div></div> | + | <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width: {{#expr: {{#if: {{{shieldkin|}}}|{{{shieldkin}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldkin|}}}|{{{shieldkin}}}|0}}</div></div></div> |
</div> | </div> | ||
<div class='att-img'>[[Image:icon_resist_exp.png|20px|shield explosive resistance]]</div> | <div class='att-img'>[[Image:icon_resist_exp.png|20px|shield 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: {{#if:{{{shieldexp|}}} |{{{shieldexp}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldexp|}}} |{{{shieldexp}}} |0}}</div></div></div> | + | <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width: {{#expr: {{#if: {{{shieldexp|}}}|{{{shieldexp}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{shieldexp|}}}|{{{shieldexp}}}|0}}</div></div></div> |
</div> | </div> | ||
</div> | </div> | ||
Line 445: | Line 445: | ||
<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: {{#if:{{{armorem|}}} |{{{armorem}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if:{{{armorem|}}}|{{{armorem}}}|0}}</div></div></div> | + | <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width: {{#expr: {{#if:{{{armorem|}}}|{{{armorem}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if:{{{armorem|}}}|{{{armorem}}}|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: {{#if:{{{armortherm|}}} |{{{armortherm}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{armortherm|}}}|{{{armortherm}}}|0}}</div></div></div> | + | <div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width:{{#expr: {{#if:{{{armortherm|}}}|{{{armortherm}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{armortherm|}}}|{{{armortherm}}}|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: {{#if: {{{armorkin|}}} |{{{armorkin}}} |0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{armorkin|}}}|{{{armorkin}}}|0}}</div></div></div> | + | <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width: {{#expr: {{#if: {{{armorkin|}}}|{{{armorkin}}}|0}}/2 round 0}}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: {{#if: {{{armorexp|}}} |{{{armorexp}}} |0}}/2 round 0}}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: {{#if: {{{armorexp|}}}|{{{armorexp}}}|0}}/2 round 0}}px;'> <div class='value-text'>{{#if: {{{armorexp|}}}|{{{armorexp}}}|0}}</div></div></div> |
</div> | </div> | ||
</div> | </div> |
Revision as of 15:28, 19 January 2023
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- Creates a info box with a subset of the ships stats.
- Dependencies
-
- Uses
- no-image.png Default ship image when shipimg is not given.
- Helpicon.png Default faction logo when faction is empty or unknown.
{{Imageserver}}
When no local image of ship is available and shipid is known.- Part of the parameter set of
{{ShipArticle}}
- Build-in UniWiki links to
- Ships
- Build-in external links to
- zKillboard
- EVE Workbench
- Janice
- EVE Ref
- Syntax
- ShipBoxLarge is not to be used on its own. It is to be called by using the wrapper template
{{Ship}}
- Template set
- {{ShipArticle}}
- {{Ship}}
- {{ShipBoxLarge}}
- {{ShipBoxTooltip}}