Editing Template:WeaponCard

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly><!--
<onlyinclude>
-->{{#if: {{{key|}}} |<!-- If key is provided
<div style="display:inline-block; margin: 15px 10px 15px 10px; width:min(600px, 90vw);">
-->{{#vardefine:hero_key_or_en|{{{key}}}}}<!-- key
{|- style="text-align:center; background-image: linear-gradient(#180E02, #30220C); border-collapse:collapse; font-size: 12px; font-family: 'PT Serif','Palatino','Georgia',serif;"
-->{{#vardefine:hero_en|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}<!-- en
| style="width:300px; color:#CDBFAB; font-family: 'Forevs Demo Medium';" | WEAPON STATS
-->|<!-- If key is not provided, use {{{1}}} and assume its in english where it will be re-localized to current language in called functions
| rowspan="3" style="bottom:50px;" | <div style="display:inline-block; position:relative;">[[File:{{{Hero|Abrams}}} Weapon.png|300x200px]] <div style="position:absolute; bottom:0px; right:0px;><div style="position:relative; color:#FFEFD7;">
-->{{#vardefine:hero_key_or_en|{{{1}}}}}<!-- en
{|- style="background-color:rgba(0, 0, 0, 0.4); width:100px"
-->{{#vardefine:hero_en|{{{1}}}}}<!-- en
|colspan="2" style="font-family:'Retail Demo'; |FALLOFF RANGE
-->}}
|-
<div class="weaponcard-container">
|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 class="weapon-display">
|}
<div class="name-stats-container">
<div class="weapon-name">'''{{{weapon_name|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|NameKey|true}}}}}'''</div>
<div class="weapon-type-container">
{{#if:{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|1|true}}
|<div class="weapon-type">{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|1|true}}</div>
|}}<!--
-->{{#if:{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|2|true}}
|<div class="weapon-type">{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|2|true}}</div>
|}}<!--
-->{{#if:{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|3|true}}
|<div class="weapon-type">{{#invoke:HeroData|get_list_elem|{{#var:hero_key_or_en}}|WeaponTypes|3|true}}</div>
|}}
</div></div>
<div class="second-half-container">
<div class="dps-text">[[File:Bullet_damage.png|20px|link=Damage per second]] <span style="color:#ffefd7;>{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|DPS|2}}</span> <span style="color:#ccbca8;">{{#invoke:Lang|get_string|DPS_label}}</span>
</div>
</div>
<div class="falloff-range-container">
<div class="falloff-range-text">{{#invoke:Lang|get_string|CitadelHeroStats_Weapon_Falloff}}</div><!--
--><div class="falloff-range-numbers">{{#ifeq:{{{no_falloff|}}}|true|N/A|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffStartRange|2}}{{#invoke:Lang|get_string|StatDesc_WeaponRangeFalloffMin_postfix}}  ➞ {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffEndRange|2}}{{#invoke:Lang|get_string|StatDesc_WeaponRangeFalloffMax_postfix}}}}</div>
</div>
</div>
<div class="weapon-image">{{#ifexist:File:{{#var:hero_en}} Weapon.png|[[File:{{#var:hero_en}} Weapon.png|320x200px|link=]]|[[File:Placeholder Weapon.png|320x200px|link=]]}}
<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>
</div>
|-
</div>
| style="text-align:center; font-family: 'Retail Demo Bold'; color:#FFEFD7; height:20px; font-size:25px; line-height:8px;" | {{#invoke:HeroData|get_localized_var|{{{Hero|Abrams}}}|WeaponName}}
<div class="notes-box">{{#ifeq:{{{no_description|}}}|true||{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|DescKey|true}}}}</div>
|-
</div></includeonly><templatestyles src="WeaponCard/styles.css"/><noinclude>{{Documentation}}</noinclude>
|
{| style="text-align:center; color:#FFEFD7; font-family:'Retail Demo Bold'; font-size:15px; background-color:#1B160C; border-radius:15px; margin:auto;"
| <span style="margin-left:5px">{{{WeaponType_1|Spreadshot}}}</span>
| style="background-color:rgba(0, 0, 0, 0); width:20px;"|
| {{{WeaponType_2|Close Range}}}
{{#if:{{{WeaponType_3|}}}
|<td style="background-color:rgba(0, 0, 0, 0); width:20px;"></td>
<td> <span style="margin-right:5px">{{{WeaponType_3}}}</span></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>
|}
</div></onlyinclude>
 
{{WeaponCard|Hero=Dynamo|WeaponType_3=Projectile}}
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template