Difference between revisions of "Template:ShipBoxLarge"
From EVE University Wiki
m (Refactor Armor and Shield resistance logic) |
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.) |
||
Line 321: | Line 321: | ||
}} | }} | ||
</div> | </div> | ||
− | <div style='position: absolute; margin-left: 200px; margin-top: -60px;'>[[Image:{{#switch: {{{faction}}} | + | <div style='position: absolute; margin-left: 200px; margin-top: -60px;'>[[Image:{{#switch: {{lc: {{{faction}}} }} |
− | | | + | | angel cartel= Logo_faction_angel_cartel.png |
− | | | + | | amarr empire= Logo_faction_amarr_empire.png |
− | | | + | | blood raiders= Logo_faction_the_blood_raider_covenant.png |
− | | | + | | caldari state= Logo_faction_caldari_state.png |
− | | | + | | concord= Logo_faction_concord_assembly.png |
− | | | + | | edencom= Logo_faction_edencom.png |
− | | | + | | gallente federation= Logo_faction_gallente_federation.png |
− | | | + | | guristas= Logo_faction_guristas_pirates.png |
− | | | + | | intaki syndicate= Logo faction the syndicate.png |
− | | | + | | interbus= Logo faction the interbus.png |
− | | | + | | jovian directorate= Logo faction jove empire.png |
− | | | + | | khanid kingdom= Logo_faction_khanid_kingdom.png |
− | | | + | | minmatar republic= Logo_faction_minmatar_republic.png |
− | | | + | | mordu's legion= Logo_faction_mordus_legion.png |
− | | | + | | outer ring excavations= Logo_faction_outer_ring_excavations.png |
− | |#default= | + | | sansha's nation= Logo_faction_sanshas_nation.png |
+ | | serpentis= Logo_faction_serpentis.png | ||
+ | | sisters of eve =Logo_faction_sisters_of_eve.png | ||
+ | | society of conscious thought =Logo_faction_the_society.png | ||
+ | | triglavian collective= Logo_faction_triglavian_collective.png | ||
+ | | #default= no-image.png | ||
}}|60x60px|{{#if: {{{faction|}}} | }}|60x60px|{{#if: {{{faction|}}} | ||
|{{{faction}}} | |{{{faction}}} | ||
Line 426: | Line 431: | ||
<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 440: | 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:{{# | + | <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 19:17, 18 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}}