Difference between revisions of "User:RotatcepS/table/Generic stats"

From Team Fortress Wiki
Jump to: navigation, search
(create generic row that works with arg 1)
 
m (bug fix?)
Line 1: Line 1:
{{#ifeq:{{{weapon|{{{1}}}}}}|{{{1}}}|
+
{| class="wikitable grid" style="text-align: center;"
{{!}}-
+
{{#ifeq:{{{heading|yes}}}|yes|{{User:RotatcepS/table/stats_header|nocrits={{{nocrits|}}}|noammo={{{noammo|}}}|baseonly={{{baseonly|}}}|nointerval={{{nointerval|}}}|nokillicon={{{nokillicon|}}}|dps={{{dps|yes}}}|accuracy={{{accuracy|yes}}} }} }}
 +
<onlyinclude>
 +
|-
 
! {{Table icon|{{{1}}}|}}
 
! {{Table icon|{{{1}}}|}}
 
{{#ifeq:{{{nokillicon|}}}|yes||  
 
{{#ifeq:{{{nokillicon|}}}|yes||  
 
{{!!}} {{Icon killicon|weapon={{{1}}}}} }}
 
{{!!}} {{Icon killicon|weapon={{{1}}}}} }}
{{!!}} {{tooltip|{{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=loaded}}|{{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=reload-times}}}} {{!!}} {{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=carried}}
+
|| {{tooltip|{{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=loaded}}|{{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=reload-times}}}} || {{User:RotatcepS/tests/Ammo weapon|{{{1}}}|type=carried}}
 
{{#ifeq:{{{nointerval|}}}|yes||  
 
{{#ifeq:{{{nointerval|}}}|yes||  
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=interval}} seconds }}{{#ifeq:{{{baseonly|}}}|yes||
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=interval}} seconds }}{{#ifeq:{{{baseonly|}}}|yes||
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close-minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close-crit}} }}}}
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close-minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=close-crit}} }}}}
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=crit}} }}
+
|| {{User:RotatcepS/tests/Damage weapon|{{{1}}}}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=crit}} }}
 
{{#ifeq:{{{baseonly|}}}|yes||
 
{{#ifeq:{{{baseonly|}}}|yes||
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far-minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far-crit}}}}}}
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far}}{{#ifeq:{{{nocrits|}}}|yes||<br/>mini-crit: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far-minicrit}}<br/>critical: {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=far-crit}}}}}}
Line 15: Line 17:
 
{{#ifeq:{{{accuracy|yes}}}|yes|
 
{{#ifeq:{{{accuracy|yes}}}|yes|
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=accuracy}}}}
 
{{!!}} {{User:RotatcepS/tests/Damage weapon|{{{1}}}|type=accuracy}}}}
 +
</onlyinclude>|}

Revision as of 00:33, 29 December 2021

Weapon Kill Icon Ammo Attack interval Damage Accurate Range
Loaded Carried Point blank Medium range (Base) Long range DPS
[[File:Item icon {{{1}}}.png|link={{{1}}}|100x100px|{{{1}}}]]
[[{{{1}}}|{{dictionary/items/{{{1}}}|null=|list=}}]]
[[File:Killicon {{{1}}}.png]] {{{1}}} {{{1}}} {{{1}}} seconds {{{1}}}
mini-crit: {{{1}}}
critical: {{{1}}}
{{{1}}}
mini-crit: {{{1}}}
critical: {{{1}}}
{{{1}}}
mini-crit: {{{1}}}
critical: {{{1}}}
<div style="border:solid black 1px;background:#FFDDAD; width:33px; height:Expression error: Unrecognized punctuation character "{".px"> 
{{{1}}}
{{{1}}}