FANDOM


  • How to insert style="padding" into {{#if}} part?

    {| class="wikitable" style="width:98%; border-collapse:collapse; white-space:nowrap; text-align:center; font-size:95%;"
    ! style="padding:3px;"|Tier
    ! style="padding:2px;"|Portrait
    ! style="padding:3px;"|Rarity
    ! style="padding:3px;"|Speed
    ! style="padding:3px;"|Stamina
    ! style="padding:3px;"|Jump
    ! style="padding:3px;"|Max Energy
    ! style="padding:3px; width:13%;"|Max Sell<br />Price
    ! style="padding:3px;"|Max Income<br /><sup>(Per Hour)</sup>
    |-
    ! style="padding:3px;"|Tier 1
    | style="padding:2px;"|{{{t1portrait}}}
    | style="padding:3px;"|{{{t1rarity}}}
    | style="padding:3px;"|{{{t1speed}}}
    | style="padding:3px;"|{{{t1stamina}}}
    | style="padding:3px;"|{{{t1jump}}}
    | {{{t1maxenergy}}} {{Energy}}
    | {{{t1maxprice}}}
    | {{{t1maxincome}}} {{Coin}}
    |-
    {{#if: {{{t4portrait|}}} |
    {{!}}-
    ! Tier 4
    {{!}}{{{t4portrait}}}
    {{!}}{{{t4rarity}}}
    {{!}}{{{t4speed}}}
    {{!}}{{{t4stamina}}}
    {{!}}{{{t4jump}}}
    {{!}}{{{t4maxenergy}}} {{Energy}}
    {{!}}{{{t4maxprice}}} {{Diamond}}
    {{!}}{{{t4maxincome}}} {{Coin}}
    }}
    |}
    
      Loading editor
    • Which #if part? Are you talking about adding a new #if part somewhere or are you talking about adding the padding property to the cells already in the #if part?

        Loading editor
    • Adding the padding property to the cells already in the #if part.

        Loading editor
    • {{#if: {{{t4portrait|}}} |
      {{!}}-
      ! style="padding:3px;"{{!}}Tier 4
      {{!}} style="padding:2px;"{{!}}{{{t4portrait}}}
      {{!}} style="padding:3px;"{{!}}{{{t4rarity}}}
      {{!}} style="padding:3px;"{{!}}{{{t4speed}}}
      {{!}} style="padding:3px;"{{!}}{{{t4stamina}}}
      {{!}} style="padding:3px;"{{!}}{{{t4jump}}}
      {{!}}{{{t4maxenergy}}} {{Energy}}
      {{!}}{{{t4maxprice}}} {{Diamond}}
      {{!}}{{{t4maxincome}}} {{Coin}}
      }}
      
        Loading editor
    • Thank you!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.