Template:Ability card v2/Card: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m padding reduced slightlyyy
Sur (talk | contribs)
m if name_link is passed, link to the notes page is also added, though only exists in development atm
Line 37: Line 37:
   {{#if: {{{notes|}}}|
   {{#if: {{{notes|}}}|
   <div style="align-self: flex-start; margin: 10px 0 10px 20px; font-size: 0.9rem;">
   <div style="align-self: flex-start; margin: 10px 0 10px 20px; font-size: 0.9rem;">
     <div style="font-size:1.25rem;"> {{#invoke:Dictionary|translate|Notes}} </div>
     <div style="font-size:1.25rem;"> {{#if: {{{name_link|}}}|
    {{#vardefine:notes_localized|{{#invoke:Dictionary|translate|Notes|show_needs_translation=false}}}}
[[{{{name_link}}}/{{#var:notes_localized}}|{{#var:notes_localized}}]]
|
{{#invoke:Dictionary|translate|Notes}}
}} </div>
<div>
<div>
{{{notes}}}
{{{notes}}}

Revision as of 00:35, 16 October 2024

Eg. {{#invoke:AbilityData|get_ability_card|<hero_name>|<ability_number>|<link_on_name>|<notes>}} Script error: The function "get_ability_card" does not exist.