Difference between revisions of "Template:Weapon Iterated DPS Chart"
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: | + | <includeonly> {{#vardefine: string | {{Weapon DPS Iterator|{{{1|{{PAGENAME}} }}}|{{lc:{{{2|Normal}}}}}|{{{3|1}}}}} }}<!-- |
+ | -->{{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }}<!-- | ||
+ | -->{{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }}<!-- | ||
-->{{GraphChart|width=400 | -->{{GraphChart|width=400 | ||
|height=200 | |height=200 | ||
Line 9: | Line 11: | ||
|yAxisMax = 30 | |yAxisMax = 30 | ||
|yAxisTitle=DPS | |yAxisTitle=DPS | ||
− | |x= | + | |x= {{#var: x}} |
− | + | |y1= {{#var: y}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 15:12, 6 February 2021
Summary
Creates a graph showing the DPS that a ranged weapon is capable of at each range, including parameters for accounting for quality and the shooting accuracy of the wielder.
The dimensions and display are standardized to offer ease of comparison.
This template is dependent on Template: Weapon DPS Iterator, which in turn is dependent on Template:Weapon Iterated DPS Chart Segment
Usage
Without parameters, the template will display the chart for the current PAGENAME, assuming normal quality. For example, if the following was used on the assault rifle page:
{{Weapon Iterated DPS Chart}}
it would produce:
The first parameter, if present, allows the weapon to be chosen if it is not used on the page of the weapon in question. The template will display the chart for the chosen weapon, assuming normal quality. For example, if the following was used on any page:
{{Weapon Iterated DPS Chart|Sniper rifle}}
it would produce:
The second parameter, if present, allows the quality of the weapon to be chosen. It can be used with or without first parameter. The template will display the chart for the chosen weapon and quality. For example, if the following was used on the minigun page
{{Weapon Iterated DPS Chart||Legendary}}
it would produce:
The third parameter, if present, allows the Shooting Accuracy of the shooter to be chosen, expressed as a value from 0 to 1. It can be used with or without first and second parameter. The template will display the chart for the chosen weapon, quality and shooting accuracy. For example, if the following was used on the Charge rifle page
{{Weapon Iterated DPS Chart|||0.95}}
it would produce:
The above documentation is transcluded from Template:Weapon Iterated DPS Chart/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |