User:Sur: Difference between revisions
Jump to navigation
Jump to search
m initial hero infobox |
m vars snake case to no space pascal |
||
(3 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
</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}}} card.png|200px|alt={{{BASEPAGENAME}}}]]</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 25: | Line 25: | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">DPS</th> | <th style="color: #999999; background-color: #2F2F2F;">DPS</th> | ||
<td>{{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{{ | <td>{{Icon/Brown|[[File:Damage.png|20px|link=Damage per second]]|{{{DPS}}}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Ammo</th> | <th style="color: #999999; background-color: #2F2F2F;">Ammo</th> | ||
<td>{{Icon/Grey|[[File:Clip size icon.png|20px|link=Ammo]]|{{{ | <td>{{Icon/Grey|[[File:Clip size icon.png|20px|link=Ammo]]|{{{ClipBonus}}}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Bullets per sec</th> | <th style="color: #999999; background-color: #2F2F2F;">Bullets per sec</th> | ||
<td>{{Icon/Grey|[[File:Bullets per sec icon.png|20px|link=Fire Rate]]|{{{ | <td>{{Icon/Grey|[[File:Bullets per sec icon.png|20px|link=Fire Rate]]|{{{RoundsPerSecond}}}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Reload Time</th> | <th style="color: #999999; background-color: #2F2F2F;">Reload Time</th> | ||
<td>{{Icon/Grey|[[File:Reload Time.png|20px|link=Reload Speed]]|{{{ | <td>{{Icon/Grey|[[File:Reload Time.png|20px|link=Reload Speed]]|{{{ReloadTime}}}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 44: | Line 44: | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Health</th> | <th style="color: #999999; background-color: #2F2F2F;">Health</th> | ||
<td>{{Icon/Grey|[[File:Extra Health.png|20px|link=Health]]|{{{ | <td>{{Icon/Grey|[[File:Extra Health.png|20px|link=Health]]|{{{MaxHealth}}}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Bullet Resist</th> | <th style="color: #999999; background-color: #2F2F2F;">Bullet Resist</th> | ||
<td>{{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{ | <td>{{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{BulletResist}}}%}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Spirit Resist</th> | <th style="color: #999999; background-color: #2F2F2F;">Spirit Resist</th> | ||
<td>{{Icon/Grey|[[File:Spirit Armor.png|20px|link=Spirit Resist]]|{{{ | <td>{{Icon/Grey|[[File:Spirit Armor.png|20px|link=Spirit Resist]]|{{{SpiritResist}}}%}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th style="color: #999999; background-color: #2F2F2F;">Move Speed</th> | <th style="color: #999999; background-color: #2F2F2F;">Move Speed</th> | ||
<td>{{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{ | <td>{{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{MaxMoveSpeed}}} m/s}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 63: | Line 63: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<!-- | |||
Example<br> | Example<br> | ||
Line 78: | Line 79: | ||
| move_speed = 6.5 | | move_speed = 6.5 | ||
| weapon_name = Case Closed | | weapon_name = Case Closed | ||
}}</noinclude> | }}--> | ||
Example2<br> | |||
{{#invoke:HeroData|write_infobox|Abrams}} | |||
</noinclude> |
Latest revision as of 22:18, 20 September 2024
Example2
Attribute in infobox_attributes is not in Data:AttributeData