|
|
(17 intermediate revisions by the same user not shown) |
Line 6: |
Line 6: |
| <div style="display: flex; justify-content: space-between;"> | | <div style="display: flex; justify-content: space-between;"> |
| <div style="width: 50px;"></div> | | <div style="width: 50px;"></div> |
| <div class="infobox-hero-name">{{{name|Abrams}}}</div> | | <div class="infobox-hero-name">{{{name_localized}}}</div> |
| <div style="padding-left: 10px;">[[Image:{{{name|Abrams}}}_MM.png|frameless|center|40px]]</div> | | <div style="padding-left: 10px;">[[Image:{{{name_english}}}_MM.png|frameless|center|40px]]</div> |
| </div> | | </div> |
| </th> | | </th> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <th colspan="2" style="padding:0px; background-color:#a79986;">[[File:{{{card}}}|200px|alt={{{BASEPAGENAME}}}]]</th> | | <th colspan="2" style="padding:0px; background-color:#a79986;">[[File:{{{name_english}}} card.png|200px|alt={{{BASEPAGENAME}}}]]</th> |
| </tr> | | </tr> |
| | <tr><td>Voice Actor</td><td>IDK</td></tr> |
| | <tr><td>Release Date</td><td>IDK</td></tr> |
| | <tr><td>Last Updated</td><td>IDK</td></tr> |
| <tr> | | <tr> |
| <th colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 14px; font-family: 'PT Serif','Palatino','Georgia',serif; font-style: italic; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black;"><b>Summarized Base Stats</b></th> | | <th colspan="2" style="background-color: #d5903f; font-weight: bold; font-size: 17px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; border-bottom: none">{{#invoke:AttributeData|localize_category|Weapon}}</th> |
| </tr> | | </tr> |
| | {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }} |
| <tr> | | <tr> |
| <th colspan="2" style="background-color: #d5903f; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7; border-bottom: none;">Weapon</th> | | <th colspan="2" style="background-color: #74b01c; font-weight: bold; font-size: 17px; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 2px 4px black, 1px 1px 2px black, 0px 0px 1px black; color:#FFEFD7; border-bottom: none">{{#invoke:AttributeData|localize_category|Vitality}}</th> |
| </tr>
| |
| <tr>
| |
| <th colspan="2" style="background-color: #d5903f; font-weight: bold; font-size: 12px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 3px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7; border-top: none;">{{#if:{{{weapon_name}}}|''"{{{weapon_name|}}}"''}}</th>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">DPS</th>
| |
| <td>{{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{{dps}}}}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Ammo</th>
| |
| <td>{{Icon/Grey|[[File:Clip size icon.png|20px|link=Ammo]]|{{{ammo}}}}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Bullets per sec</th>
| |
| <td>{{Icon/Grey|[[File:Bullets per sec icon.png|20px|link=Fire Rate]]|{{{bullets_per_sec}}}}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Reload Time</th>
| |
| <td>{{Icon/Grey|[[File:Reload Time.png|20px|link=Reload Speed]]|{{{reload_time}}}}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th colspan="2" style="background-color: #74b01c; font-weight: bold; font-size: 16px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black; color:#FFEFD7;">Vitality</th>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Health</th>
| |
| <td>{{Icon/Grey|[[File:Extra Health.png|20px|link=Health]]|{{{max_health}}}}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Bullet Resist</th>
| |
| <td>{{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{bullet_resist}}}%}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Spirit Resist</th>
| |
| <td>{{Icon/Grey|[[File:Spirit Armor.png|20px|link=Spirit Resist]]|{{{spirit_resist}}}%}}</td>
| |
| </tr>
| |
| <tr>
| |
| <th style="color: #999999; background-color: #2F2F2F;">Move Speed</th>
| |
| <td>{{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed}}} m/s}}</td>
| |
| </tr> | | </tr> |
| | {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }} |
| </table> | | </table> |
| </div> | | </div></includeonly><noinclude> |
| {{Quotation||<b>{{Summary_hero|{{{name}}}}}</b><br>{{Description_hero|{{{name}}}}}}}<noinclude>{{Documentation}}</noinclude>
| | {{Documentation}} |
| | | </noinclude> |
| </includeonly><noinclude>
| |
| Example<br>
| |
| | |
| {{User:Sur
| |
| | name = Abrams
| |
| | art = Abrams full.png
| |
| | card = Abrams card.png
| |
| | summary = Charges into close combat
| |
| | description = Abrams has the bulk and sustain to lead from the front, often running into the middle of his foes and watching them scatter. If his enemies waste their fire on him, his back-line teammates can lay out damage with impunity.
| |
| | dps = 63
| |
| | bullet_damage = 4.68
| |
| | ammo = 9
| |
| | bullets_per_sec = 1.67
| |
| | light_melee = 63
| |
| | heavy_melee = 116
| |
| | max_health = 600
| |
| | health_regen = 1
| |
| | bullet_resist = 0
| |
| | spirit_resist = 0
| |
| | move_speed = 6.5
| |
| | sprint_speed = 0
| |
| | stamina = 3
| |
| | increase1_value = 0.32
| |
| | increase1_stat = Base Bullet Damage
| |
| | increase2_value = 3.4
| |
| | increase2_stat = Base Melee Damage
| |
| | increase3_value = 32
| |
| | increase3_stat = Base Health
| |
| | range = 22m → 46m
| |
| | weapon_name = Case Closed
| |
| }}</noinclude>
| |
Creates a summarized infobox for a given hero.
Recommended to use Module:HeroData's write_infobox function to generate this dynamically, for example
{{#invoke:HeroData|write_infobox|Abrams}}
Outputs
|
|
Voice Actor | IDK |
Release Date | IDK |
Last Updated | IDK |
Weapon |
DPS |
70.1 |
Ammo |
9 |
Bullets per sec |
1.67 |
Reload Time |
0.353s |
Vitality |
Max Health |
570 |
Bullet Resist |
0% |
Spirit Resist |
0% |
Move Speed |
6.8m/s |
Parameters are passed from
Module:HeroData, see there for more documentation