User:Sur: Difference between revisions
Jump to navigation
Jump to search
m onlyBody > only_body and example2 via invoke |
m invoke localize_category |
||
(4 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">{{{ | <div class="infobox-hero-name">{{{name_localized}}}</div> | ||
<div style="padding-left: 10px;">[[Image:{{{ | <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:{{{ | <th colspan="2" style="padding:0px; background-color:#a79986;">[[File:{{{name_english}}} card.png|200px|alt={{{BASEPAGENAME}}}]]</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th colspan="2" style="color: # | <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> | ||
<tr> | <tr> | ||
<th colspan="2" style="background-color: #d5903f; font-weight: bold; font-size: | <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}}}|<b><i>{{{weapon_name|}}}</i></b>}}</th> | ||
</tr> | </tr> | ||
<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:{{{ | <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_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}}} }} | ||
<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;" | <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;">{{#invoke:AttributeData|localize_category|Vitality}}</th> | ||
</tr> | </tr> | ||
{{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }} | |||
</table> | </table> | ||
</div> | </div> | ||
{{Quotation||<b>{{{role}}}</b><br>{{{playstyle}}} | {{Quotation||<b>{{{role}}}</b><br>{{{playstyle}}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
</includeonly><noinclude> | |||
{{ | |||
</noinclude> | </noinclude> |
Latest revision as of 23:15, 21 September 2024
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
|
|
---|---|
Weapon | |
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