Difference between revisions of "Template:Weapon damage table"

From Isleward Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>== Damage == This table shows the overall minimum damage and the maximum damage per level of this weapon. {| class="wikitable" style="margin-left: 10px; text-alig...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>== Damage ==
+
<includeonly>{{#ifeq: {{lc|{{{title|y}}}}} | y |== Damage ==
This table shows the overall minimum damage and the maximum damage per level of this weapon.
+
This table shows the overall minimum damage and the maximum damage per level of this weapon.}}<!--
{| class="wikitable" style="margin-left: 10px; text-align:center"
+
-->{{Ability stat table|{{{1}}}|{{{2}}}|title=n|stat=Damage}}</includeonly><noinclude>
! Minimum
 
! 1
 
! 2
 
! 3
 
! 4
 
! 5
 
! 6
 
! 7
 
! 8
 
! 9
 
! 10
 
! 11
 
! 12
 
! 13
 
! 14
 
! 15
 
! 16
 
! 17
 
! 18
 
! 19
 
! 20
 
|-
 
| {{{1}}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (1 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (2 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (3 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (4 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (5 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (6 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (7 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (8 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (9 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (10 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (11 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (12 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (13 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (14 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (15 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (16 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (17 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (18 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (19 / 20))|2}}
 
| {{roundcalc|{{{1}}} + (({{{2}}} - {{{1}}}) * (20 / 20))|2}}
 
|}</includeonly><noinclude>
 
 
== Description ==
 
== Description ==
 
Generates a weapon damage table from the min and max values.
 
Generates a weapon damage table from the min and max values.
Line 55: Line 11:
  
 
== Example ==
 
== Example ==
 +
<pre>
 +
{{Weapon damage table|1.76|11.58|title=n}}
 +
</pre>
 +
Produces:
 
{{Weapon damage table|1.76|11.58}}
 
{{Weapon damage table|1.76|11.58}}
 +
</noinclude>

Latest revision as of 01:17, 31 May 2022

Description[edit]

Generates a weapon damage table from the min and max values.

Usage[edit]

{{Weapon damage table|min value|max value}}

Example[edit]

{{Weapon damage table|1.76|11.58|title=n}}

Produces:

Minimum 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1.76 2.25 2.74 3.23 3.72 4.22 4.71 5.2 5.69 6.18 6.67 7.16 7.65 8.14 8.63 9.13 9.62 10.11 10.6 11.09 11.58