User:Sur: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Sur (talk | contribs)
m borders fixed
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
test
<includeonly>
 
<div style="margin-left: 2em;">
 
<table class="wikitable infobox" style="color: #FFEFD7; background-color: #2F2F2F; font-weight: bold;">
 
  <tr>
 
    <th colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 25px; font-family: 'PT Serif','Palatino','Georgia',serif; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 0px black, 0px 0px 0px black;">
 
      <div style="display: flex; justify-content: space-between;">
 
        <div style="width: 50px;"></div>
 
        <div class="infobox-hero-name">{{{name_localized}}}</div>
 
         <div style="padding-left: 10px;">[[Image:{{{name_english}}}_MM.png|frameless|center|40px]]</div>
 
      </div>
 
    </th>
 
  </tr>
 
  <tr>
 
    <th colspan="2" style="padding:0px; background-color:#a79986;">[[File:{{{name_english}}} card.png|200px|alt={{{BASEPAGENAME}}}]]</th>
 
  </tr>
<div class="hover-box">
  <tr>
    <div class="hover-box-content">
    <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>
        <!-- Centered Icon and Label -->
  </tr>
        [[File:Spirit_icon.png|40px|center|class=hover-box-icon]]
  <tr>
        <div class="hover-box-label">Spirit</div>
    <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>
    </div>
  </tr>
    <div class="hover-box-hidden">
  <tr>
        <!-- Table inside hidden box -->
    <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>
         <table class="hover-box-table">
  </tr>
            <tr>
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{weapon_values}}} }}
                <th>Header 1</th>
  <tr>
                <th>Header 2</th>
    <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; border-top: none;">{{#invoke:AttributeData|localize_category|Vitality}}</th>
                <th>Header 3</th>
  </tr>
            </tr>
  {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }}
            <tr>
</table>
                <td>Data 1</td>
                <td>Data 2</td>
                <td>Data 3</td>
            </tr>
            <tr>
                <td>Data 4</td>
                <td>Data 5</td>
                <td>Data 6</td>
            </tr>
        </table>
    </div>
</div>
</div>
{{Quotation||<b>{{{role}}}</b><br>{{{playstyle}}}}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 00:58, 22 September 2024

Documentation [view] [edit] [purge]

Overview[edit | edit source]

Creates a summarized infobox for a given hero.

Also displays the hero's role and playstyle below.

Example[edit | edit source]

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

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


Outputs


Abrams
{{{BASEPAGENAME}}}
Weapon
"Case Closed"
Reloads single shells at a time. Can be interrupted
DPS 7.79
Ammo 9
Bullets per sec 1.67
Reload Time 0.353s
Vitality
Max Health 600
Bullet Resist 0%
Spirit Resist 0%
Move Speed 6.5m/s

Charges into close combat
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 backline teammates can lay out damage with impunity.

Parameters[edit | edit source]

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