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 219: Line 219:
 
       | <div class="techcorner">[[Image:CornerT{{{tech|2}}}h.png|link=]]</div>
 
       | <div class="techcorner">[[Image:CornerT{{{tech|2}}}h.png|link=]]</div>
 
       |
 
       |
       }}{{#ifexist:File:{{{shipimg}}}
+
       }}{{#ifexist: File:{{{shipimg}}}
 
         | [[Image:{{{shipimg|no-image.png}}}|center|link= |256x256px|{{#if:{{{shipname}}}
 
         | [[Image:{{{shipimg|no-image.png}}}|center|link= |256x256px|{{#if:{{{shipname}}}
 
           | {{{shipname|Unknown Ship}}}
 
           | {{{shipname|Unknown Ship}}}
 
           | Unknown Ship
 
           | Unknown Ship
 
           }}]]
 
           }}]]
         |{{#if: {{{shipid}}}
+
         |{{#if: {{{shipid|}}}
 
<!--          | {{Imageserver|types|{{{shipid}}}|render|size=256}} Test code for using the Imageserver template-->
 
<!--          | {{Imageserver|types|{{{shipid}}}|render|size=256}} Test code for using the Imageserver template-->
 
           | https://images.evetech.net/types/{{{shipid}}}/render?size=256&.jpg
 
           | https://images.evetech.net/types/{{{shipid}}}/render?size=256&.jpg
Line 793: Line 793:
 
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|shield electromagnetic resistance]]</div>
 
           <div class='item 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}}}
+
             <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}}}
 
               | {{{shieldem|0}}}
 
               | 0
 
               | 0

Revision as of 12:14, 28 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?)