User:Sur: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m borders fixed
Sur (talk | contribs)
m weapon name, description removed from infobox
Line 16: Line 16:
   <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;">{{#invoke:AttributeData|localize_category|Weapon}}</th>
     <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;">{{#invoke:AttributeData|localize_category|Weapon}}</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; border-bottom: none;">{{#if:{{{weapon_name}}}|"{{{weapon_name|}}}"}}</th>
  </tr>
  <tr>
    <th colspan="2" style="background-color: #d5903f; font-size: 10px; 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_description}}}|<i>{{{weapon_description|}}}</i>}}</th>
   </tr>
   </tr>
   {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }}
   {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }}

Revision as of 18:02, 22 September 2024

Documentation [view] [edit] [history] [purge]

Overview

Creates a summarized infobox for a given hero.

Example

Recommended to use Module:HeroData's write_infobox function to generate this dynamically, for example

{{#invoke:HeroData|write_infobox|Abrams}}


Outputs


Abrams
{{{BASEPAGENAME}}}
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
{{{role}}}
{{{playstyle}}}

Parameters

Parameters are passed from Module:HeroData, see there for more documentation