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
Refactor "ship bonuses" part to not parse html when no bonuses, instead of using display: none.
Refactor "training time" part from "required skills" to not parse html when no required skills, instead of using display: none.
Line 411: Line 411:
<!--  -->{{{reqskills|<i>none</i>}}} <!-- comment in front is to suppress <pre> parsing -->
<!--  -->{{{reqskills|<i>none</i>}}} <!-- comment in front is to suppress <pre> parsing -->
<!--** Training time **-->
<!--** Training time **-->
           <div class='skillstime' style='display: {{#if: {{{reqskills|}}}
           {{#if: {{{reqskills|}}}
              | block
            | <div class='skillstime'>
              | none
                <span style='font-variant: small-caps;'>Training Time </span><span style='font-size: 70%;'>what's this?</span><div class='value'>{{{totaltraintime|}}}</div>
            }}'>
                <div class='desc'>Estimated training time only for the listed skills based on zero [[Skills_and_learning#Implants|implants]] and without [[Skills_and_learning#Neural_remaps|neural remaps]].
          <span style='font-variant: small-caps;'>Training Time</span> <span style='color: #656565; font-size: 70%;'>what's this?</span><div class='value'>{{{totaltraintime|}}}</div>
                </div>
            <div class='desc'>Estimated training time only for the listed skills based on zero [[Skills_and_Learning#Implants|implants]] and without [[Skills_and_Learning#Neural_Remaps|neural remaps]].
              </div>
            </div>
          }}
          </div>
         </td>
         </td>