Difference between revisions of "Template:Weapon DPS Iterator/doc"
(Created page with "Returns a string of the DPS values of a weapon at each range seperated by commas, optionally modified by Quality and Shooting Accuracy. It is intended to be used to di...") |
m (category) |
||
Line 1: | Line 1: | ||
+ | == Summary == | ||
Returns a string of the DPS values of a weapon at each range seperated by commas, optionally modified by [[Quality]] and [[Shooting Accuracy]]. It is intended to be used to display the information using [[Template:Graph:Chart]] | Returns a string of the DPS values of a weapon at each range seperated by commas, optionally modified by [[Quality]] and [[Shooting Accuracy]]. It is intended to be used to display the information using [[Template:Graph:Chart]] | ||
This template is dependent on [[Template: Weapon Iterated DPS Chart Segment]] | This template is dependent on [[Template: Weapon Iterated DPS Chart Segment]] | ||
− | ==Usage== | + | == Usage == |
Without parameters, the template will return the values for the current PAGENAME, assuming normal [[quality]]. For example, if the following was used on the [[assault rifle]] page: | Without parameters, the template will return the values for the current PAGENAME, assuming normal [[quality]]. For example, if the following was used on the [[assault rifle]] page: | ||
<nowiki>{{Weapon DPS Iterator}}</nowiki> | <nowiki>{{Weapon DPS Iterator}}</nowiki> | ||
Line 23: | Line 24: | ||
it would produce: | it would produce: | ||
{{Weapon DPS Iterator|Charge rifle||0.95}} | {{Weapon DPS Iterator|Charge rifle||0.95}} | ||
+ | |||
+ | <includeonly>[[Category:Math templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 09:22, 23 October 2022
Summary[edit]
Returns a string of the DPS values of a weapon at each range seperated by commas, optionally modified by Quality and Shooting Accuracy. It is intended to be used to display the information using Template:Graph:Chart
This template is dependent on Template: Weapon Iterated DPS Chart Segment
Usage[edit]
Without parameters, the template will return the values for the current PAGENAME, assuming normal quality. For example, if the following was used on the assault rifle page:
{{Weapon DPS Iterator}}
it would produce:
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 && 6.528, 6.528, 6.6488888888889, 6.7697777777778, 6.8906666666667, 7.0115555555556, 7.1324444444444, 7.2533333333333, 7.3742222222222, 7.4951111111111, 7.616, 7.5741538461538, 7.5323076923077, 7.4904615384615, 7.4486153846154, 7.4067692307692, 7.3649230769231, 7.3230769230769, 7.2812307692308, 7.2393846153846, 7.1975384615385, 7.1556923076923, 7.1138461538462, 7.072, 6.9994666666667, 6.9269333333333, 6.8544, 6.7818666666667, 6.7093333333333, 6.6368
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 return the values for the chosen weapon, assuming normal quality. For example, if the following was used on any page:
{{Weapon DPS Iterator|Sniper rifle}}
it would produce:
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45 && 2.155, 2.155, 2.2507777777778, 2.3465555555556, 2.4423333333333, 2.5381111111111, 2.6338888888889, 2.7296666666667, 2.8254444444444, 2.9212222222222, 3.017, 3.0700461538462, 3.1230923076923, 3.1761384615385, 3.2291846153846, 3.2822307692308, 3.3352769230769, 3.3883230769231, 3.4413692307692, 3.4944153846154, 3.5474615384615, 3.6005076923077, 3.6535538461538, 3.7066, 3.7123466666667, 3.7180933333333, 3.72384, 3.7295866666667, 3.7353333333333, 3.74108, 3.7468266666667, 3.7525733333333, 3.75832, 3.7640666666667, 3.7698133333333, 3.77556, 3.7813066666667, 3.7870533333333, 3.7928, 3.7985466666667, 3.8042933333333, 3.81004, 3.8157866666667, 3.8215333333333
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 will return the values for the chosen weapon and quality. For example, if the following was used on the minigun page
{{Weapon DPS Iterator||Legendary}}
it would produce:
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 && 12.4065, 12.4065, 13.3255, 14.2445, 15.1635, 16.0825, 17.0015, 17.9205, 18.8395, 19.7585, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.6775, 20.29152, 19.90554, 19.51956, 19.13358, 18.7476, 18.36162
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 will return the values for the chosen weapon, quality and shooting accuracy. For example, if the following was used on the Charge rifle page
{{Weapon DPS Iterator|||0.95}}
it would produce:
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 && 7.282, 6.24340475, 6.03907514, 5.839569979125, 5.6449176464875, 5.4551316221659, 5.2702119061603, 5.0901463326998, 4.91491178682, 4.7444753296964, 4.5787952388181, 4.3028017517668, 4.0429606253235, 3.7983466071451, 3.5680865892213, 3.351356706572, 3.1473795957146, 2.9554218041764, 2.7747913428029, 2.6048353730562, 2.4449380219272, 2.2945183174784, 2.1530282384197, 2.0199508714732, 1.8956932875614