Template:Ability card: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
No edit summary
Saag (talk | contribs)
m Added label for ability link
 
(45 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{anchor|{{{ability_name|}}}}}<!-- -->
<includeonly>{{anchor|{{{ability_name|}}}}}
 
  <div style="display:flex; flex-direction:column;">
<div style="display:flex; flex-direction:column;"><!-- Show video under box
    <div class="ability_details_main" style="display: flex; flex-wrap: wrap; align-items: flex-start;">
--><div class="ability_details_main" style="display: flex; flex-wrap: wrap; align-items: flex-start;"><!-- Allows notes to be on the side of the infobox if there is space.
      <div class="ability_box" style="flex:0 1 650px; margin-right:15px;">
  --><div class="ability_box" style="flex:0 1 450px; margin-right:15px;"><!--
        <div class="abilityHeader"
          style="color: #ffefd7; font-weight:bold; font-size:140%; padding: 10px 10px 10px 10px; background: #121212;">
          <div style="display: flex; align-items: center;"> {{#if:{{{name_link|}}}|[[{{{name_link}}}|{{{name}}}]]|{{{name}}}}}</div>
        </div>
        <div class="summaryInfoAndImage" style="display:inline-flex; background: #353535; width:100%">
          <div style="display:flex; flex-direction:column;  margin:5px 5px;">
            <div class="abilityImage" style="display:inline-block; width:128px; height:128px;">
              <div style="position:absolute;">[[File:Passive ability frame.png|128x128px|link=]]</div>
              <div class="ability-icon"
                style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;">
                {{#if:{{{ability icon|}}}|[[File:{{{ability icon}}}|90x90px|middle|center|link=]]|[[File:{{{name}}}.png|link=|90x90px|middle|center]]}}
              </div>
            </div>
          </div>
          <div style="color: #ffefd7; padding:5px; padding-left: 10px; padding-right: 10px; padding-bottom: 5px;">
{{{description}}}
            {{#if:{{{radius|}}}|{{Ability card/Data row|name=Radius|value={{{radius}}} }} }}<!--
      -->{{#if:{{{range|}}}|{{Ability card/Data row|name=Range|value={{{range}}} }} }}<!--
      -->{{#if:{{{ability_width|}}}|{{Ability card/Data row|name=Ability width|value={{{ability_width}}} }} }}<!--
      -->{{#if:{{{duration|}}}|{{Ability card/Data row|name=Duration|value={{{duration}}} }} }}<!--
      -->{{#if:{{{cooldown|}}}|{{Ability card/Data row|name=Cooldown|value={{{cooldown}}} }} }}<!--
      -->{{#if:{{{effect1|}}}|{{Template:Ability card/Effect row|{{{effect1}}} }} }}<!--
      -->{{#if:{{{effect2|}}}|{{Template:Ability card/Effect row|{{{effect2}}} }} }}<!--
      -->{{#if:{{{effect3|}}}|{{Template:Ability card/Effect row|{{{effect3}}} }} }}<!--
      -->{{#if:{{{effect4|}}}|{{Template:Ability card/Effect row|{{{effect4}}} }} }}<!--
      -->{{#if:{{{effect5|}}}|{{Template:Ability card/Effect row|{{{effect5}}} }} }}<!--
      -->{{#if:{{{effect6|}}}|{{Template:Ability card/Effect row|{{{effect6}}} }} }}<!--
      -->{{#if:{{{effect7|}}}|{{Template:Ability card/Effect row|{{{effect7}}} }} }}<!--
      -->{{#if:{{{effect8|}}}|{{Template:Ability card/Effect row|{{{effect8}}} }} }}<!--
      -->{{#if:{{{effect9|}}}|{{Template:Ability card/Effect row|{{{effect9}}} }} }}<!--
      -->{{#if:{{{upgrade1|}}}|{{Template:Ability card/Upgrade row|ap=1|description={{{upgrade1}}} }} }}<!--
      -->{{#if:{{{upgrade2|}}}|{{Template:Ability card/Upgrade row|ap=2|description={{{upgrade2}}} }} }}<!--
      -->{{#if:{{{upgrade3|}}}|{{Template:Ability card/Upgrade row|ap=5|description={{{upgrade3}}} }} }}</div></div></div></div></div>
</includeonly>
<noinclude>
  {{doc}}
    
    
  --><div class="abilityHeader" style="color: #ffefd7; font-weight:bold; font-size:140%; padding: 10px 10px 10px 10px; background: #121212;"><!--Begin box header
 
    --><div style="display: flex; align-items: center;">{{{name}}}</div><!--
  [[Category:Infobox templates]]
    --><div style="float:right;"><!--
<templatedata>
        -->{{#if:{{#var:{{{ability_name}}} key_alternative}}|<div class="abilityIcons" style="display:inline-block; font-size:60%; margin-right:5px; color:#0f0f0f; padding-left:0.59em; padding-right:0.59em; text-align:center; background-color:rgba(255,255,255,1); border-radius: 2px;">{{Tooltip|{{{key|}}}|Default key}}</div><!--
{
  --></div><!-- End box header
"params": {
 
"ability_name": {},
  --><div class="summaryInfoAndImage" style="display:inline-flex; background: #353535; width:100%"><!--Begin summary info and image
"name": {
    --><div style="display:flex; flex-direction:column;  margin:5px 5px;"><!--
"description": "Name of the ability (must match exactly)",
    --><div class="abilityImage" style="display:inline-block; width:128px; height:128px;"><!--
"example": "Siphon Life",
      --><div style="position:absolute;"><!--
"type": "string"
        -->[[File:Passive ability frame.png|128x128px|link=]]<!--
},
      --></div><!--
"ability icon": {
      --><div class="ability-icon" style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;"><!--
"description": "Optional: If the ability uses another icon enter it here. Most likely for unreleased characters",
        -->[[File:{{#if:{{{ability_image|}}}|{{{ability_image}}}|Placeholder_ability_icon.png}}|link=|100x100px|middle|center]]<!--
"example": "Siphon Life.png",
      --></div><!--
"type": "wiki-file-name"
    --></div><!--
},
      --></div><!--
"description": {},
    --></div><!--
"radius": {},
    --><div style="padding-right: 5px; vertical-align:top; font-size:85%;"><!--
"range": {},
      -->'' {{{official_description|}}} ''<!--
"ability_width": {},
    --></div><!--
"duration": {},
    --></div><!--End summary info
"cooldown": {},
  --></div><!--End summary info and icon
"effect1": {},
 
"effect2": {},
  --><div style="padding:5px; padding-left: 10px; padding-right: 10px; padding-bottom: 5px;"><!-- START main content
"effect3": {},
    -->{{#if:{{{radius|}}}|{{Ability card/Data row|name=Radius|value={{{radius}}} }} }}<!--
"effect4": {},
    -->{{#if:{{{duration|}}}|{{Ability card/Data row|name=Duration|value={{{duration}}} }} }}<!--
"effect5": {},
    -->{{#if:{{{cooldown|}}}|{{Ability card/Data row|name=Cooldown|value={{{cooldown}}} }} }}<!--
"effect6": {},
    -->{{#if:{{{description|}}}|{{Ability card/Data row|name=Description|value={{{description}}} }} }}<!--
"effect7": {},
    -->{{#if:{{{effect1|}}}|{{Ability card/Data row|name={{{effect1}}}|value={{{value1}}} }} }}<!--
"effect8": {},
    -->{{#if:{{{effect2|}}}|{{Ability card/Data row|name={{{effect2}}}|value={{{value2}}} }} }}<!--
"effect9": {},
    -->{{#if:{{{effect3|}}}|{{Ability card/Data row|name={{{effect3}}}|value={{{value3}}} }} }}<!--
"upgrade1": {},
    -->{{#if:{{{upgrade1_effect|}}}|{{Ability card/Data row|name={{{upgrade1_effect}}}|value={{{upgrade1_value}}} }} }}<!--
"upgrade2": {},
    -->{{#if:{{{upgrade2_effect|}}}|{{Ability card/Data row|name={{{upgrade2_effect}}}|value={{{upgrade2_value}}} }} }}<!--
"upgrade3": {}
    -->{{#if:{{{upgrade3_effect|}}}|{{Ability card/Data row|name={{{upgrade3_effect}}}|value={{{upgrade3_value}}} }} }}<!--
}
    --></div><!--
}
--></div><!--
</templatedata></noinclude>
    -->}}<!--
  --></div><!--END main content
  --></div><div style="margin: 0.5em 0;"></div><nowiki/>
</includeonly><noinclude>
 
{{doc}}
 
[[Category:Infobox templates]]
</noinclude>

Latest revision as of 15:46, 14 September 2024


 Template:Doc

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
ability_nameability_name

no description

Unknownoptional
namename

Name of the ability (must match exactly)

Example
Siphon Life
Stringoptional
ability iconability icon

Optional: If the ability uses another icon enter it here. Most likely for unreleased characters

Example
Siphon Life.png
Fileoptional
descriptiondescription

no description

Unknownoptional
radiusradius

no description

Unknownoptional
rangerange

no description

Unknownoptional
ability_widthability_width

no description

Unknownoptional
durationduration

no description

Unknownoptional
cooldowncooldown

no description

Unknownoptional
effect1effect1

no description

Unknownoptional
effect2effect2

no description

Unknownoptional
effect3effect3

no description

Unknownoptional
effect4effect4

no description

Unknownoptional
effect5effect5

no description

Unknownoptional
effect6effect6

no description

Unknownoptional
effect7effect7

no description

Unknownoptional
effect8effect8

no description

Unknownoptional
effect9effect9

no description

Unknownoptional
upgrade1upgrade1

no description

Unknownoptional
upgrade2upgrade2

no description

Unknownoptional
upgrade3upgrade3

no description

Unknownoptional