Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ShipArticle: Difference between revisions

Template page
m Quick edit to make the resist values somewhat vissible
Make header better readable in light mode. Replace hard-coded error text color with design-token.
Line 159: Line 159:
   width: 50px;
   width: 50px;
  }
  }
<!--*** override "MediaWiki:Common.css" ***-->
#ship-article .header .shipname
{
  color: white;
}
#ship-article .breadcrumbs
{
  background-color: transparant;
}


<!--***  overrides(end)  ***-->
<!--***  overrides(end)  ***-->
Line 192: Line 204:
   <div class='mask'>&nbsp;</div>
   <div class='mask'>&nbsp;</div>
   <div class='dbtitle'>Ship Database</div>
   <div class='dbtitle'>Ship Database</div>
   <div class='shipname'>{{#if: {{{shipname|}}} |{{{shipname}}} |{{Co|red|! shipname missing !}} }}</div>
   <div class='shipname'>{{#if: {{{shipname|}}} |{{{shipname}}} |{{Co|var(--color-error)|! shipname missing !}} }}</div>
  </div>
  </div>


<!--####    breadcrumbs    ####-->
<!--####    breadcrumbs    ####-->
<!--* Breadcrumbs *-->
<!--* Breadcrumbs *-->
  <div class='breadcrumbs'>[[:Category:Ship Database|Ship Database]]<span class='separator'>&#9656;</span>{{#if: {{{grouping|}}} |[[:Category:{{{grouping}}}|{{{grouping}}}]] |{{Co|red|! grouping missing !}} }}<span class='separator'>&#9656;</span>{{#if: {{{shipname|}}} | [[{{{shipname}}}]] }}
  <div class='breadcrumbs'>[[:Category:Ship Database|Ship Database]]<span class='separator'>&#9656;</span>{{#if: {{{grouping|}}} |[[:Category:{{{grouping}}}|{{{grouping}}}]] |{{Co|var(--color-error)|! grouping missing !}} }}<span class='separator'>&#9656;</span>{{#if: {{{shipname|}}} | [[{{{shipname}}}]] }}
  </div>
  </div>


Line 254: Line 266:


<!--** Ship image block "caption" center, line 1 **-->
<!--** Ship image block "caption" center, line 1 **-->
         <td class='faction'>{{#if: {{{faction|}}} |{{{faction}}} |{{Co|red|! faction missing !}} }}</td>
         <td class='faction'>{{#if: {{{faction|}}} |{{{faction}}} |{{Co|var(--color-error)|! faction missing !}} }}</td>


<!--** Ship image block "caption" center, line 2 **-->
<!--** Ship image block "caption" center, line 2 **-->
Line 263: Line 275:
<!--** Ship image block "caption" center, line 3 **-->
<!--** Ship image block "caption" center, line 3 **-->
       <tr>
       <tr>
         <td class='hull-title'>{{#if: {{{hulltype|}}} |{{{hulltype}}} |{{Co|red|! hulltype missing !}} }}</td>
         <td class='hull-title'>{{#if: {{{hulltype|}}} |{{{hulltype}}} |{{Co|var(--color-error)|! hulltype missing !}} }}</td>
       </tr>
       </tr>


Line 270: Line 282:


* class missing error *
* class missing error *
-->  {{#if: {{{class|}}} | <!-- Nothing --> | <div class='box-discussion' style='text-align: center; color: red;'> ! class missing ! </div> }}<!--
-->  {{#if: {{{class|}}} | <!-- Nothing --> | <div class='box-discussion' style='text-align: center; color: var(--color-error);'> ! class missing ! </div> }}<!--


* Highlights *
* Highlights *
Line 505: Line 517:
                   | titan= capital
                   | titan= capital


                   | #default= {{Co|red|?}}
                   | #default= {{Co|var(--color-error)|?}}
                 }}</div>
                 }}</div>
               }}
               }}
Line 561: Line 573:
<!--*** Base time to warp ***-->
<!--*** Base time to warp ***-->
         <div class='att-item'>
         <div class='att-item'>
           <div class='item att-label' style='margin-right: 3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|base time to warp]]</div><div class='item att-value'>{{#if: {{{warptime|}}} |{{{warptime}}} |{{Co|red|?}} }}</div><div class='item att-value snip'>what's this?
           <div class='item att-label' style='margin-right: 3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|base time to warp]]</div><div class='item att-value'>{{#if: {{{warptime|}}} |{{{warptime}}} |{{Co|var(--color-error)|?}} }}</div><div class='item att-value snip'>what's this?
           <div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.
           <div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.
           </div>
           </div>
Line 580: Line 592:
               </div>
               </div>
               <div class='att-item'>
               <div class='att-item'>
                 <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|fighter squad tubes]]</div><div class='item att-value'>{{#if: {{{fightertubes|}}} |{{{fightertubes}}} |{{Co|red|?}} }}</div>
                 <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|fighter squad tubes]]</div><div class='item att-value'>{{#if: {{{fightertubes|}}} |{{{fightertubes}}} |{{Co|var(--color-error)|?}} }}</div>
               </div>
               </div>
<!--        -->{{#if: {{{lightfightersquadlimit|}}}
<!--        -->{{#if: {{{lightfightersquadlimit|}}}
Line 605: Line 617:
               </div>
               </div>
               <div class='att-item'>
               <div class='att-item'>
                   <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|drone bandwidth]]</div><div class='item att-value'>{{#if: {{{bandwidth|}}} |{{{bandwidth}}} |{{Co|red|?}} }}</div>
                   <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|drone bandwidth]]</div><div class='item att-value'>{{#if: {{{bandwidth|}}} |{{{bandwidth}}} |{{Co|var(--color-error)|?}} }}</div>
               </div>
               </div>