Template:Ability card v2/Card: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
No edit summary
Saag (talk | contribs)
Support for multiple info sections
Line 26: Line 26:
    
    
   <!-- INFO SECTIONS -->
   <!-- INFO SECTIONS -->
  <div style="display:flex; flex-direction:column; align-items: center; margin: 5px 10px 20px 10px; width: calc(100% - 18px);">
{{Ability card v2/Info section|{{{hero_name}}}|{{{ability_num}}}|1}}
    <div style="padding: 20px 10px 20px 10px">{{{description}}}</div>
{{Ability card v2/Info section|{{{hero_name}}}|{{{ability_num}}}|2}}
      <!-- Main Info -->
 
      <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(97% - 5px); min-width: 280px;">
        {{#invoke: AbilityData|get_info_main|{{{hero_name}}}|{{{ability_num}}}|1}}
      </div>
     
      <!-- Alt Info -->
      <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px">
        {{#invoke: AbilityData|get_info_alt|{{{hero_name}}}|{{{ability_num}}}|1}}
      </div>
  </div>
 
   <!-- UPGRADES -->
   <!-- UPGRADES -->
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; width: calc(97% - 16px); min-width: 280px;>
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; width: calc(97% - 16px); min-width: 280px;>

Revision as of 14:33, 28 September 2024

Script error: The function "get_ability_card" does not exist.