Difference between revisions of "User:Evon R'al/Sandbox template"
From EVE University Wiki
m (Coding and testing.) |
m (Coding and testing.) |
||
Line 304: | Line 304: | ||
<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'>≡</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;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}</div></div> | + | <div class='title'><span style='font-size: 16px'>≡</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;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}</div></div> |
<table style='width:100%;'> | <table style='width:100%;'> | ||
<tr> | <tr> | ||
Line 316: | Line 316: | ||
| Unknown Ship | | Unknown Ship | ||
}}]] | }}]] | ||
− | | [[Image:no-image.png|center|256x256px|{{#if:{{{shipname}}} | + | | [[Image:no-image.png|center|256x256px|{{#if: {{{shipname}}} |
| {{{shipname}}} | | {{{shipname}}} | ||
| Unknown Ship}}]] | | Unknown Ship}}]] | ||
Line 342: | Line 342: | ||
|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'> |
<div class='linkentry'> | <div class='linkentry'> | ||
− | <div class='linkname' style='font-weight: bold;'>{{#if:{{{shipimg}}} | + | <div class='linkname' style='font-weight: bold;'>{{#if: {{{shipimg}}} |
| [[File:{{{shipimg}}}| Upload {{{shipimg}}} for this ship image.]] | | [[File:{{{shipimg}}}| Upload {{{shipimg}}} for this ship image.]] | ||
| <span style='font-weight: normal; font-size: 11px; line-height: 120%;'>Please upload an image for this ship and edit the respective entry on the ship database, see "editing database entry" [[Template:Ship|here]].</span> | | <span style='font-weight: normal; font-size: 11px; line-height: 120%;'>Please upload an image for this ship and edit the respective entry on the ship database, see "editing database entry" [[Template:Ship|here]].</span> | ||
Line 354: | Line 354: | ||
<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'>[https://forum.eveuniversity.org/search.php?keywords={{urlencode:{{{shipname|}}}}}&terms=all&author=&fid%5B%5D=129&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search PvP Forums] , [https://forum.eveuniversity.org/search.php?keywords={{urlencode:{{{shipname|}}}}}&terms=all&author=&fid%5B%5D=128&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search PvE Forums]</div> | + | <div class='linkname'>[https://forum.eveuniversity.org/search.php?keywords={{urlencode:{{{shipname|}}}}}&terms=all&author=&fid%5B%5D=129&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search PvP Forums], [https://forum.eveuniversity.org/search.php?keywords={{urlencode:{{{shipname|}}}}}&terms=all&author=&fid%5B%5D=128&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search PvE Forums]</div> |
</div> | </div> | ||
</div> | </div> | ||
</td> | </td> | ||
<td style='padding: 5px 5px 5px 0; border-left: 1px solid #333333' valign='top'> | <td style='padding: 5px 5px 5px 0; border-left: 1px solid #333333' valign='top'> | ||
− | <div class='titlename' style='position: absolute; display:{{#if:{{{shipname|}}}|block|block}};'>[[{{{shipname|}}}]]</div> | + | <div class='titlename' style='position: absolute; display:{{#if: {{{shipname|}}} |block |block}};'>[[{{{shipname|}}}]]</div> |
<table class='collapsible attributes' style='width: 100%; margin-bottom: 5px;'> | <table class='collapsible attributes' style='width: 100%; margin-bottom: 5px;'> | ||
<tr> | <tr> | ||
<th><div style='float: left; width: 100px; font-family: trebuchet MS; margin-left: -3px;'>SHOW ATTRIBUTES</div></th> | <th><div style='float: left; width: 100px; font-family: trebuchet MS; margin-left: -3px;'>SHOW ATTRIBUTES</div></th> | ||
</tr> | </tr> | ||
− | <tr><td style='padding: 0; margin: 0;'><div style='height: 15px; line-height: 15px;'> </div></td></tr> | + | <tr> |
+ | <td style='padding: 0; margin: 0;'><div style='height: 15px; line-height: 15px;'> </div></td> | ||
+ | </tr> | ||
<tr> | <tr> | ||
<td> | <td> | ||
Line 393: | Line 395: | ||
</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|middle|drone capacity]]</div><div class='att-label'>drones</div> | + | <div class='att-value' style='width: 40px;'>{{{dronebay|0 m3}}}</div><div class='att-img'>[[Image:icon_drone_capacity.png|20px|middle|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><div class='att-img'>[[Image:icon_drone_bandwith.png|20px|middle|drone bandwidth]]</div><div class='att-label'>b/w</div> | + | <div class='att-value' style='width: 80px;'>{{{bandwidth|0 Mbit/sec}}}</div><div class='att-img'>[[Image:icon_drone_bandwith.png|20px|middle|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|middle|cargo capacity]]</div><div class='att-label'>cargo</div> | + | <div class='att-value' style='width: 70px;'>{{{cargohold|0 m3}}}</div><div class='att-img'>[[Image:Icon_capacity.png|20px|middle|cargo capacity]]</div><div class='att-label'>cargo</div> |
</div> | </div> | ||
</div> | </div> | ||
Line 407: | Line 409: | ||
</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}}}|0}}</div><div class='att-img'>[[Image:icon_shield.png|20px|middle|shields]]</div> | + | <div class='att-value' style='width: auto'>{{#if: {{{shieldhp}}} |{{{shieldhp|0}}} |0}}</div><div class='att-img'>[[Image:icon_shield.png|20px|middle|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:{{#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 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:{{#expr:{{#if:{{{shieldtherm}}}|{{{shieldtherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldtherm}}}|{{{shieldtherm|0}}}|0}}</div></div></div> | + | <div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width: {{#expr:{{#expr:{{#if: {{{shieldtherm}}}|{{{shieldtherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{shieldtherm}}}|{{{shieldtherm|0}}}|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:{{#expr:{{#if:{{{shieldkin}}}|{{{shieldkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldkin}}}|{{{shieldkin|0}}}|0}}</div></div></div> | + | <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width: {{#expr:{{#expr:{{#if:{{{shieldkin}}}|{{{shieldkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{shieldkin}}}|{{{shieldkin|0}}}|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:{{#expr:{{#if:{{{shieldexp}}}|{{{shieldexp|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldexp}}}|{{{shieldexp|0}}}|0}}</div></div></div> | + | <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width: {{#expr:{{#expr:{{#if:{{{shieldexp}}}|{{{shieldexp|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if: {{{shieldexp}}}|{{{shieldexp|0}}}|0}}</div></div></div> |
</div> | </div> | ||
</div> | </div> | ||
Line 433: | Line 435: | ||
</div> | </div> | ||
<div class='att-item' style='width: 87px; text-align: right;'> | <div class='att-item' style='width: 87px; text-align: right;'> | ||
− | <div class='att-value' style='width:auto'>{{#if:{{{armorhp}}}|{{{armorhp|0}}}|0}}</div><div class='att-img'>[[Image:icon_armor.png|20px|middle|armor]]</div> | + | <div class='att-value' style='width: auto'>{{#if: {{{armorhp}}} |{{{armorhp|0}}} |0}}</div><div class='att-img'>[[Image:icon_armor.png|20px|middle|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:{{#if:{{{armorem}}}|{{{armorem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorem}}}|{{{armorem|0}}}|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:{{#if:{{{armortherm}}}|{{{armortherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armortherm}}}|{{{armortherm|0}}}|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:{{#if:{{{armorkin}}}|{{{armorkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorkin}}}|{{{armorkin|0}}}|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:{{#if:{{{armorexp}}}|{{{armorexp|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorexp}}}|{{{armorexp|0}}}|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 459: | Line 461: | ||
</div> | </div> | ||
<div class='att-item'> | <div class='att-item'> | ||
− | <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 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'>{{#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 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'>{{#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 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 472: | Line 474: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | <div class='ship-border-box' style='display: {{#if:{{{bonuses}}}|block|none}}; margin: 10px 5px 5px'> | + | <div class='ship-border-box' style='display: {{#if: {{{bonuses}}}|block|none}}; margin: 10px 5px 5px'> |
<div class='label'><div class='inner'>S H I P B O N U S E S</div></div> | <div class='label'><div class='inner'>S H I P B O N U S E S</div></div> | ||
− | <p>{{#if:{{{bonuses}}}|{{{bonuses|<i>no bonuses available for this ship</i>}}}|<i>no bonuses available for this ship</i>}}</p> | + | <p>{{#if: {{{bonuses}}} |{{{bonuses| <i>no bonuses available for this ship</i>}}} |<i>no bonuses available for this ship</i>}}</p> |
</div> | </div> | ||
− | <p class='ship-desc'>{{#if:{{{info}}}|{{{info| }}}| }}</p> | + | <p class='ship-desc'>{{#if: {{{info}}} |{{{info| }}} | }}</p> |
− | <!--<div class='ship-variants'>Variations : {{#if:{{{variations}}}|{{{variations|<i>none</i>}}}|<i>none</i>}}</div>--> | + | <!--<div class='ship-variants'>Variations : {{#if: {{{variations}}} |{{{variations|<i>none</i>}}} |<i>none</i>}}</div>--> |
<div class='box-footer'>[[{{{shipname|}}}]] =></div> | <div class='box-footer'>[[{{{shipname|}}}]] =></div> | ||
</td> | </td> |
Revision as of 14:11, 18 January 2023
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?)