Template:WeaponCard: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
QuinnBinn (talk | contribs)
m Hid description by default
QuinnBinn (talk | contribs)
m Added more dynamic vars
Line 7: Line 7:
|colspan="2" style="font-family:'Retail Demo'; |FALLOFF RANGE
|colspan="2" style="font-family:'Retail Demo'; |FALLOFF RANGE
|-
|-
|style="font-family:'Retail Demo Bold'; font-size:14px"|{{{falloff_min|22}}}m - {{{falloff_max|46}}}m
|style="font-family:'Retail Demo Bold'; font-size:14px"|{{#invoke:HeroData|get_hero_var|{{{Hero|Abrams}}}|FalloffStartRange|2}}m - {{#invoke:HeroData|get_hero_var|{{{Hero|Abrams}}}|FalloffEndRange|2}}m
|}
|}
</div>
</div>
</div>
</div>
<div style="position:absolute; top:0px; right:5px; ><div style="position:relative; color:#FFEFD7; font-family:'Retail Demo Bold'; font-size:14px;">{{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{{DPS|70}}} DPS}}</div> </div>
<div style="position:absolute; top:0px; right:5px; ><div style="position:relative; color:#FFEFD7; font-family:'Retail Demo Bold'; font-size:14px;">{{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{#invoke:HeroData|get_hero_var|{{{Hero|Abrams}}}|DPS|2}} DPS}}</div> </div>
</div>
</div>
|-
|-
Line 26: Line 26:
|}}
|}}
|}
|}
{{#if:{{{Weapon_Description|}}}
{{#if:{{#invoke:HeroData|get_localized_var|{{{Hero|Abrams}}}|WeaponDescription}}
|<tr></tr>
|<tr></tr>
<td colspan="2" style="background-color:#4A3617; color:#FFEFD7; height:40px; font-family:'Retail Demo'; font-size:14px; text-align:left;"><span style="margin-left:10px;">{{{Weapon_Description|}}}</span></td>
<td colspan="2" style="background-color:#4A3617; color:#FFEFD7; height:40px; font-family:'Retail Demo'; font-size:14px; text-align:left;"><span style="margin-left:10px;">{{#invoke:HeroData|get_localized_var|{{{Hero|Abrams}}}|WeaponDescription}}</span></td>
|}}
|}}
|}
|}
</div></onlyinclude>
</div></onlyinclude>

Revision as of 03:07, 22 September 2024

WEAPON STATS
FALLOFF RANGE
20m - 46m
70 DPS
Script error: The function "get_localized_var" does not exist.
Spreadshot Close Range
Script error: The function "get_localized_var" does not exist.