Template:Ability card v2/Card/Info section: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
Sur (talk | contribs)
m internal functions now use hero_key instead of hero_name, removing the need to redo O(N)
Line 1: Line 1:
<includeonly><div style="display:flex; flex-direction:column; align-items: center; width: 100%">
<includeonly><div style="display:flex; flex-direction:column; align-items: center; width: 100%">
   <div style="padding: 0 10px 0 10px">{{#invoke:AbilityData|get_info_desc|{{{hero_name}}}|{{{ability_num}}}|{{{info_section_num}}}}}</div>
   <div style="padding: 0 10px 0 10px">{{#invoke:AbilityData|get_info_desc|{{{hero_key}}}|{{{ability_num}}}|{{{info_section_num}}}}}</div>
     <!-- Main Info -->
     <!-- Main Info -->
     <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(97% - 5px); min-width: 280px;">
     <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}}}|{{{info_section_num}}}}}
       {{#invoke: AbilityData|get_info_main|{{{hero_key}}}|{{{ability_num}}}|{{{info_section_num}}}}}
     </div>
     </div>


     <!-- Alt Info -->
     <!-- 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">
     <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}}}|{{{info_section_num}}}}}
       {{#invoke: AbilityData|get_info_alt|{{{hero_key}}}|{{{ability_num}}}|{{{info_section_num}}}}}
     </div>
     </div>
</div></includeonly>
</div></includeonly>

Revision as of 02:26, 12 October 2024


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