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

Template:Missiondetails: Difference between revisions

Template page
m Change padding on the on the right of the "box". It now mirrors the padding on the left. Did so because I saw an instance where a rather long text butted up right to the right border.
m Fase 4: Replace multiple identical switch statements wit sub-template.
Line 47: Line 47:
   <td class="MssnDtls-label">Best damage to deal</td>
   <td class="MssnDtls-label">Best damage to deal</td>
   <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal1|}}}
   <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal1|}}}
  |{{{DamageToDeal1}}}
    |{{{DamageToDeal1}}}
  |{{#switch: {{{Faction1}}}
     |{{Damage to deal| {{{Faction1}}}
     | Serpentis = {{Damagetype|Kin|Th}}
    | Angel
    | Angel Cartel = {{Damagetype|Ex|Kin}}
    | Syndicate
    | The Syndicate = {{Damagetype|Kin|Th}}
    | Guristas pirates
    | Guristas = {{Damagetype|Kin|Th}}
    | Sansha
    | Sansha's Nation = {{Damagetype|Em|Th}}
    | Blood Raider Covenant
    | Blood Raiders = {{Damagetype|Em|Th}}
    | Mordu's
    | Mordu's Legion = {{Damagetype|Kin|Em}}
    | EOM
    | Equilibrium of Mankind = {{Damagetype|Kin}}
    | CONCORD = {{Damagetype|Kin|Th}}
    | Amarr Empire
    | Amarr = {{Damagetype|Em|Th}}
    | Ammatar = {{Damagetype|Em|Th}}
    | Minmatar Republic
    | Thukker Tribe
    | Minmatar = {{Damagetype|Ex|Kin}}
    | Gallente Federation
    | Gallente = {{Damagetype|Kin|Th}}
    | Caldari State
    | Caldari = {{Damagetype|Kin|Th}}
    | Khanid Kingdom
    | Khanid = {{Damagetype|Em|Th}}
    | Mercenaries = {{Damagetype|Kin|Th}}
    | Rogue Drones = {{Damagetype|Em|Th}}
    | Damage to deal not defined for faction 1
   }}
   }}
   }}</span>{{#if: {{{Faction2|}}}
   }}</span>{{#if: {{{Faction2|}}}
             |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal2|}}}
             |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal2|}}}
             |{{{DamageToDeal2}}}
             |{{{DamageToDeal2}}}
             |{{#switch: {{{Faction2}}}
             |{{Damage to deal| {{{Faction2}}}
              | Serpentis = {{Damagetype|Kin|Th}}
  }}
              | Angel
              | Angel Cartel = {{Damagetype|Ex|Kin}}
              | Syndicate
              | The Syndicate = {{Damagetype|Kin|Th}}
              | Guristas pirates
              | Guristas = {{Damagetype|Kin|Th}}
              | Sansha
              | Sansha's Nation = {{Damagetype|Em|Th}}
              | Blood Raider Covenant
              | Blood Raiders = {{Damagetype|Em|Th}}
              | Mordu's
              | Mordu's Legion = {{Damagetype|Kin|Em}}
              | EOM
              | Equilibrium of Mankind = {{Damagetype|Kin}}
              | CONCORD = {{Damagetype|Kin|Th}}
              | Amarr Empire
              | Amarr = {{Damagetype|Em|Th}}
              | Ammatar = {{Damagetype|Em|Th}}
              | Minmatar Republic
              | Thukker Tribe
              | Minmatar = {{Damagetype|Ex|Kin}}
              | Gallente Federation
              | Gallente = {{Damagetype|Kin|Th}}
              | Caldari State
              | Caldari = {{Damagetype|Kin|Th}}
              | Khanid Kingdom
              | Khanid = {{Damagetype|Em|Th}}
              | Mercenaries = {{Damagetype|Kin|Th}}
              | Rogue Drones = {{Damagetype|Em|Th}}
              | Damage to deal not defined for faction 2
            }}
   }}</span>}}{{#if: {{{Faction3|}}}
   }}</span>}}{{#if: {{{Faction3|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal3|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal3|}}}
                 |{{{DamageToDeal3}}}
                 |{{{DamageToDeal3}}}
                 |{{#switch: {{{Faction3}}}
                 |{{Damage to deal| {{{Faction3}}}
                | Serpentis = {{Damagetype|Kin|Th}}
  }}
                | Angel
                | Angel Cartel = {{Damagetype|Ex|Kin}}
                | Syndicate
                | The Syndicate = {{Damagetype|Kin|Th}}
                | Guristas pirates
                | Guristas = {{Damagetype|Kin|Th}}
                | Sansha
                | Sansha's Nation = {{Damagetype|Em|Th}}
                | Blood Raider Covenant
                | Blood Raiders = {{Damagetype|Em|Th}}
                | Mordu's
                | Mordu's Legion = {{Damagetype|Kin|Em}}
                | EOM
                | Equilibrium of Mankind = {{Damagetype|Kin}}
                | CONCORD = {{Damagetype|Kin|Th}}
                | Amarr Empire
                | Amarr = {{Damagetype|Em|Th}}
                | Ammatar = {{Damagetype|Em|Th}}
                | Minmatar Republic
                | Thukker Tribe
                | Minmatar = {{Damagetype|Ex|Kin}}
                | Gallente Federation
                | Gallente = {{Damagetype|Kin|Th}}
                | Caldari State
                | Caldari = {{Damagetype|Kin|Th}}
                | Khanid Kingdom
                | Khanid = {{Damagetype|Em|Th}}
                | Mercenaries = {{Damagetype|Kin|Th}}
                | Rogue Drones = {{Damagetype|Em|Th}}
                | Damage to deal not defined for faction 3
                }}
   }}</span>}}{{#if: {{{Faction4|}}}
   }}</span>}}{{#if: {{{Faction4|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal4|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToDeal4|}}}
                 |{{{DamageToDeal4}}}
                 |{{{DamageToDeal4}}}
                 |{{#switch: {{{Faction4}}}
                 |{{Damage to deal {{{Faction4}}}
                | Serpentis = {{Damagetype|Kin|Th}}
  }}
                | Angel
                | Angel Cartel = {{Damagetype|Ex|Kin}}
                | Syndicate
                | The Syndicate = {{Damagetype|Kin|Th}}
                | Guristas pirates
                | Guristas = {{Damagetype|Kin|Th}}
                | Sansha
                | Sansha's Nation = {{Damagetype|Em|Th}}
                | Blood Raider Covenant
                | Blood Raiders = {{Damagetype|Em|Th}}
                | Mordu's
                | Mordu's Legion = {{Damagetype|Kin|Em}}
                | EOM
                | Equilibrium of Mankind = {{Damagetype|Kin}}
                | CONCORD = {{Damagetype|Kin|Th}}
                | Amarr Empire
                | Amarr = {{Damagetype|Em|Th}}
                | Ammatar = {{Damagetype|Em|Th}}
                | Minmatar Republic
                | Thukker Tribe
                | Minmatar = {{Damagetype|Ex|Kin}}
                | Gallente Federation
                | Gallente = {{Damagetype|Kin|Th}}
                | Caldari State
                | Caldari = {{Damagetype|Kin|Th}}
                | Khanid Kingdom
                | Khanid = {{Damagetype|Em|Th}}
                | Mercenaries = {{Damagetype|Kin|Th}}
                | Rogue Drones = {{Damagetype|Em|Th}}
                | Damage to deal not defined for faction 4
                }}
   }}</span>}}{{#if:{{{Faction1|}}}
   }}</span>}}{{#if:{{{Faction1|}}}
               |</td> </tr>
               |</td> </tr>
Line 200: Line 76:
   <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist1|}}}
   <td class="MssnDtls-data"><span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist1|}}}
     |{{{DamageToResist1}}}
     |{{{DamageToResist1}}}
     |{{#switch: {{{Faction1}}}
     |{{Damage to resist| {{{Faction1}}}  
    | Serpentis = {{Damagetype|Th|Kin}}
  }}
    | Angel
    | Angel Cartel = {{Damagetype|Ex|Kin}}
    | Syndicate
    | The Syndicate = {{Damagetype|Kin|Th}}
    | Guristas pirates
    | Guristas = {{Damagetype|Kin|Th}}
    | Sansha
    | Sansha's Nation = {{Damagetype|Em|Th}}
    | Blood Raider Covenant
    | Blood Raiders = {{Damagetype|Em|Th}}
    | Mordu's
    | Mordu's Legion = {{Damagetype|Kin|th}}{{icon|small info|16|Battleships deal almost purely kinetic damage. Smaller things deal both kinetic and thermal}}
    | EOM
    | Equilibrium of Mankind = {{Damagetype|Kin|Th}}
    | CONCORD = {{Damagetype|Omni}}
    | Amarr Empire
    | Amarr = {{Damagetype|Em|Th}}
    | Ammatar = {{Damagetype|Em|Th}}
    | Minmatar Republic
    | Thukker Tribe
    | Minmatar = {{Damagetype|Ex|Kin}}
    | Gallente Federation
    | Gallente = {{Damagetype|Kin|Th}}
    | Caldari State
    | Caldari = {{Damagetype|Kin|Th}}
    | Khanid Kingdom
    | Khanid = {{Damagetype|Th|Em}}
    | Mercenaries = {{Damagetype|Kin|Th}}
    | Rogue Drones = {{Damagetype|Ex|Kin|Th}}
    | Damage to resist not defined for faction 1
    }}
   }}</span>{{#if: {{{Faction2|}}}
   }}</span>{{#if: {{{Faction2|}}}
             |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist2|}}}
             |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist2|}}}
             |{{{DamageToResist2}}}
             |{{{DamageToResist2}}}
             |{{#switch: {{{Faction2}}}
             |{{Damage to resist| {{{Faction2}}}  
              | Serpentis = {{Damagetype|Th|Kin}}
            }}
              | Angel
              | Angel Cartel = {{Damagetype|Ex|Kin}}
              | Syndicate
              | The Syndicate = {{Damagetype|Kin|Th}}
              | Guristas pirates
              | Guristas = {{Damagetype|Kin|Th}}
              | Sansha
              | Sansha's Nation = {{Damagetype|Em|Th}}
              | Blood Raider Covenant
              | Blood Raiders = {{Damagetype|Em|Th}}
              | Mordu's
              | Mordu's Legion = {{Damagetype|Kin|th}}{{icon|small info|16|Battleships deal almost purely kinetic damage. Smaller things deal both kinetic and thermal}}
              | EOM
              | Equilibrium of Mankind = {{Damagetype|Kin|Th}}
              | CONCORD = {{Damagetype|Omni}}
              | Amarr Empire
              | Amarr = {{Damagetype|Em|Th}}
              | Ammatar = {{Damagetype|Em|Th}}
              | Minmatar Republic
              | Thukker Tribe
              | Minmatar = {{Damagetype|Ex|Kin}}
              | Gallente Federation
              | Gallente = {{Damagetype|Kin|Th}}
              | Caldari State
              | Caldari = {{Damagetype|Kin|Th}}
              | Khanid Kingdom
              | Khanid = {{Damagetype|Th|Em}}
              | Mercenaries = {{Damagetype|Kin|Th}}
              | Rogue Drones = {{Damagetype|Ex|Kin|Th}}
              | Damage to resist not defined for faction 2
            }}
   }}</span>}}{{#if: {{{Faction3|}}}
   }}</span>}}{{#if: {{{Faction3|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist3|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist3|}}}
               |{{{DamageToResist3}}}
               |{{{DamageToResist3}}}
               |{{#switch: {{{Faction3}}}
               |{{Damage to resist| {{{Faction3}}}  
                | Serpentis = {{Damagetype|Th|Kin}}
              }}
                | Angel
                | Angel Cartel = {{Damagetype|Ex|Kin}}
                | Syndicate
                | The Syndicate = {{Damagetype|Kin|Th}}
                | Guristas pirates
                | Guristas = {{Damagetype|Kin|Th}}
                | Sansha
                | Sansha's Nation = {{Damagetype|Em|Th}}
                | Blood Raider Covenant
                | Blood Raiders = {{Damagetype|Em|Th}}
                | Mordu's
                | Mordu's Legion = {{Damagetype|Kin|th}}{{icon|small info|16|Battleships deal almost purely kinetic damage. Smaller things deal both kinetic and thermal}}
                | EOM
                | Equilibrium of Mankind = {{Damagetype|Kin|Th}}
                | CONCORD = {{Damagetype|Omni}}
                | Amarr Empire
                | Amarr = {{Damagetype|Em|Th}}
                | Ammatar = {{Damagetype|Em|Th}}
                | Minmatar Republic
                | Thukker Tribe
                | Minmatar = {{Damagetype|Ex|Kin}}
                | Gallente Federation
                | Gallente = {{Damagetype|Kin|Th}}
                | Caldari State
                | Caldari = {{Damagetype|Kin|Th}}
                | Khanid Kingdom
                | Khanid = {{Damagetype|Th|Em}}
                | Mercenaries = {{Damagetype|Kin|Th}}
                | Rogue Drones = {{Damagetype|Ex|Kin|Th}}
                | Damage to resist not defined for faction 3
              }}
   }}</span>}}{{#if: {{{Faction4|}}}
   }}</span>}}{{#if: {{{Faction4|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist4|}}}
               |<span class="MssnDtls-factioninfo">{{#if:{{{DamageToResist4|}}}
                 |{{{DamageToResist4}}}
                 |{{{DamageToResist4}}}
                 |{{#switch: {{{Faction4}}}
                 |{{Damage to resist| {{{Faction4}}}  
                | Serpentis = {{Damagetype|Th|Kin}}
              }}
                | Angel
                | Angel Cartel = {{Damagetype|Ex|Kin}}
                | Syndicate
                | The Syndicate = {{Damagetype|Kin|Th}}
                | Guristas pirates
                | Guristas = {{Damagetype|Kin|Th}}
                | Sansha
                | Sansha's Nation = {{Damagetype|Em|Th}}
                | Blood Raider Covenant
                | Blood Raiders = {{Damagetype|Em|Th}}
                | Mordu's
                | Mordu's Legion = {{Damagetype|Kin|th}}{{icon|small info|16|Battleships deal almost purely kinetic damage. Smaller things deal both kinetic and thermal}}
                | EOM
                | Equilibrium of Mankind = {{Damagetype|Kin|Th}}
                | CONCORD = {{Damagetype|Omni}}
                | Amarr Empire
                | Amarr = {{Damagetype|Em|Th}}
                | Ammatar = {{Damagetype|Em|Th}}
                | Minmatar Republic
                | Thukker Tribe
                | Minmatar = {{Damagetype|Ex|Kin}}
                | Gallente Federation
                | Gallente = {{Damagetype|Kin|Th}}
                | Caldari State
                | Caldari = {{Damagetype|Kin|Th}}
                | Khanid Kingdom
                | Khanid = {{Damagetype|Th|Em}}
                | Mercenaries = {{Damagetype|Kin|Th}}
                | Rogue Drones = {{Damagetype|Ex|Kin|Th}}
                | Damage to resist not defined for faction 4
                }}
   }}</span>|}}{{#if:{{{Faction1|}}}
   }}</span>|}}{{#if:{{{Faction1|}}}
               |</td> </tr>
               |</td> </tr>