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 Refactor highlights part to not parse html when no highlights. Clean-up comments.
Refactor "ship bonuses" part to not parse html when no bonuses, instead of using display: none.
Line 392: Line 392:
       __TOC__
       __TOC__
<!---->{{{info|}}} <!-- Comment in front is to suppress <pre> parsing -->
<!---->{{{info|}}} <!-- Comment in front is to suppress <pre> parsing -->
     </div>
     </div><!--


<!--* Ship bonuses(traits) *-->
* Ship bonuses(traits) *-->
     <div class='box-line box-bonuses' style='display: {{#if: {{{bonuses|}}}
     {{#if: {{{bonuses|}}}
        |block
      | <div class='box-line box-bonuses'>
        |none
          <div class='label'>SHIP BONUSES</div>
        }}'>
<!--   -->{{{bonuses|}}} <!-- Comment in front is to suppress <pre> parsing -->
      <div class='label'>SHIP BONUSES</div>
        </div>
<!---->{{{bonuses|}}} <!-- Comment in front is to suppress <pre> parsing -->
    }}<!--
    </div>


    <div class='box-line'>
-->  <div class='box-line'>
       <table class='midinfo' cellspacing='0' cellpadding='0'>
       <table class='midinfo' cellspacing='0' cellpadding='0'>
       <tr>
       <tr>