User:Sur: Difference between revisions
Jump to navigation
Jump to search
m example commented out |
m invoke localize_category |
||
Line 15: | Line 15: | ||
</tr> | </tr> | ||
<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;">Weapon</th> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 28: | Line 25: | ||
{{#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;">Vitality</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;">{{#invoke:AttributeData|localize_category|Vitality}}</th> | ||
</tr> | </tr> | ||
{{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }} | {{#invoke: TableGenerator | generateHtmlTable | cols=2 | only_body=true | cell_values={{{vitality_values}}} }} |
Revision as of 23:15, 21 September 2024
Overview
Creates a summarized infobox for a given hero.
Also displays the hero's role and playstyle below.
Example
Recommended to use Module:HeroData's write_infobox function to generate this dynamically, for example
{{#invoke:HeroData|write_infobox|Abrams}}
Outputs
“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
Parameters are passed from Module:HeroData, see there for more documentation