Difference between revisions of "Template:Quality table"

From Underrail Wiki
Jump to navigation Jump to search
(third col)
(move calculation to other template)
Line 3: Line 3:
 
|-
 
|-
 
! Quality
 
! Quality
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR1|0}}}%/{{{base_DT1|0}}} + {{{quality_DR1|1}}}*quality DR% and {{{quality_DT1|1}}}*quality DT">{{{col1}}} DR% / DT</span>
+
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR1}}}%/{{{base_DT1}}} + {{{quality_DR1}}}*quality DR% and {{{quality_DT1}}}*quality DT">{{{col1}}} DR% / DT</span>   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR2}}}%/{{{base_DT2}}} + {{{quality_DR2}}}*quality DR% and {{{quality_DT2}}}*quality DT">{{{col2}}} DR% / DT</span>|}}{{#if: {{{col3|}}}|&nbsp;
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR2|0}}}%/{{{base_DT2|0}}} + {{{quality_DR2|1}}}*quality DR% and {{{quality_DT2|1}}}*quality DT">{{{col2}}} DR% / DT</span>
+
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR2}}}%/{{{base_DT3}}} + {{{quality_DR3}}}*quality DR% and {{{quality_DT3}}}*quality DT">{{{col3}}} DR% / DT</span>|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
! colspan="2"{{!}}<span style="cursor:help" title="Formula: {{{base_DR2|0}}}%/{{{base_DT3|0}}} + {{{quality_DR3|1}}}*quality DR% and {{{quality_DT3|1}}}*quality DT">{{{col3}}} DR% / DT</span>|}}
 
 
|-
 
|-
 
!  1
 
!  1
{{!}} {{#expr: {{{base_DR1|0}}} +  1*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  1*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|1}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|1}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  1*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  1*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|1}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  1*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  1*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  10
 
!  10
{{!}} {{#expr: {{{base_DR1|0}}} +  10*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  10*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|10}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|10}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  10*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  10*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|10}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  10*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  10*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  20
 
!  20
{{!}} {{#expr: {{{base_DR1|0}}} +  20*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  20*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|20}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|20}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  20*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  20*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|20}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  20*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  20*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  30
 
!  30
{{!}} {{#expr: {{{base_DR1|0}}} +  30*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  30*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|30}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|30}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  30*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  30*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|30}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  30*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  30*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  40
 
!  40
{{!}} {{#expr: {{{base_DR1|0}}} +  40*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  40*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|40}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|40}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  40*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  40*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|40}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  40*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  40*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  50
 
!  50
{{!}} {{#expr: {{{base_DR1|0}}} +  50*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  50*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|50}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|50}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  50*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  50*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|50}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  50*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  50*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  60
 
!  60
{{!}} {{#expr: {{{base_DR1|0}}} +  60*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  60*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|60}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|60}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  60*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  60*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|60}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  60*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  60*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  70
 
!  70
{{!}} {{#expr: {{{base_DR1|0}}} +  70*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  70*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|70}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|70}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  70*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  70*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|70}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  70*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  70*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  80
 
!  80
{{!}} {{#expr: {{{base_DR1|0}}} +  80*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  80*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|80}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|80}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  80*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  80*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|80}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  80*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  80*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
!  90
 
!  90
{{!}} {{#expr: {{{base_DR1|0}}} +  90*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} +  90*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|90}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|90}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} +  90*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} +  90*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|90}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} +  90*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} +  90*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 100
 
! 100
{{!}} {{#expr: {{{base_DR1|0}}} + 100*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 100*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|100}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|100}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 100*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 100*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|100}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 100*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 100*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 110
 
! 110
{{!}} {{#expr: {{{base_DR1|0}}} + 110*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 110*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|110}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|110}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 110*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 110*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|110}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 110*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 110*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 120
 
! 120
{{!}} {{#expr: {{{base_DR1|0}}} + 120*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 120*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|120}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|120}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 120*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 120*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|120}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 120*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 120*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 130
 
! 130
{{!}} {{#expr: {{{base_DR1|0}}} + 130*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 130*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|130}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|130}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 130*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 130*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|130}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 130*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 130*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 140
 
! 140
{{!}} {{#expr: {{{base_DR1|0}}} + 140*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 140*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|140}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|140}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 140*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 140*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|140}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 140*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 140*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 150
 
! 150
{{!}} {{#expr: {{{base_DR1|0}}} + 150*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 150*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|150}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|150}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 150*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 150*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|150}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 150*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 150*({{{quality_DT3|1}}}) )}}|}}
 
 
|-
 
|-
 
! 160
 
! 160
{{!}} {{#expr: {{{base_DR1|0}}} + 160*({{{quality_DR1|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT1|0}}} + 160*({{{quality_DT1|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR1|0}}}|{{{quality_DR1|1}}}|{{{base_DT1|0}}}|{{{quality_DT1|1}}}|160}}   {{#if: {{{col2|}}}|&nbsp;
{{#if: {{{col2|}}}|
+
{{!}} {{CalcDRDT|{{{base_DR2|0}}}|{{{quality_DR2|1}}}|{{{base_DT2|0}}}|{{{quality_DT2|1}}}|160}}|}}{{#if: {{{col3|}}}|&nbsp;
{{!}} {{#expr: {{{base_DR2|0}}} + 160*({{{quality_DR2|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT2|0}}} + 160*({{{quality_DT2|1}}}) )}}
+
{{!}} {{CalcDRDT|{{{base_DR3|0}}}|{{{quality_DR3|1}}}|{{{base_DT3|0}}}|{{{quality_DT3|1}}}|160}}|}}
|}}{{#if: {{{col3|}}}|&nbsp;
 
{{!}} {{#expr: {{{base_DR3|0}}} + 160*({{{quality_DR3|1}}}) round 0}}% {{!}}{{!}} {{#expr: floor( {{{base_DT3|0}}} + 160*({{{quality_DT3|1}}}) )}}|}}
 
 
|}<noinclude>
 
|}<noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 06:17, 11 May 2017

{{{name}}}
Quality {{{col1}}} DR% / DT
1 1% 1
10 10% 10
20 20% 20
30 30% 30
40 40% 40
50 50% 50
60 60% 60
70 70% 70
80 80% 80
90 90% 90
100 100% 100
110 110% 110
120 120% 120
130 130% 130
140 140% 140
150 150% 150
160 160% 160
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Quality_table/doc to view this documentation. (edit) (How does this work?)
Description
This template is used to autogenerate quality tables for various properties of crafted items - armor DR%/DT, etc.
Parameters
{{Quality table
| style       = optional css for the table

| name        = name for the table
| min_quality = minimum quality to display
| max_quality = maximum quality to display

| col_resist# = name (damage type) for resistance/threshold column #
| base_DR#    = resist column # base Damage Resistance %
| base_DT#    = resist column # base Damage Threshold
| quality_DR# = resist column # Damage Resistance % quality multiplier
| quality_DT# = resist column # Damage Threshold quality multiplier

| col_common# = name for generic quality scaling column #
| base#       = common column # base factor
| quality#    = common column # quality multiplier
| min#        = common column # min value (optional)
| max#        = common column # max value (optional)

| col_damage#  = name for damage column #
| base_dmg#    = damage column # base damage
| level_dmg#   = damage column # level multiplier
| dmgspread_L# = damage column # lower damage spread
| dmgspread_U# = damage column # upper damage spread
}}