Difference between revisions of "Template:Stat Factors Table Row"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
| {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100}} }} {{#ifexpr: {{#var: tempValue}} > {{#var: statMax}} | {{#var: statMax}} | {{#ifexpr: {{#var: tempValue}} < {{#var: statMin}} | {{#var: statMin}} | {{#var: tempValue}} }} }}%<!-- | | {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100}} }} {{#ifexpr: {{#var: tempValue}} > {{#var: statMax}} | {{#var: statMax}} | {{#ifexpr: {{#var: tempValue}} < {{#var: statMin}} | {{#var: statMin}} | {{#var: tempValue}} }} }}%<!-- | ||
-->{{#ifexpr: {{#var: resultCols}} >= 2 | | -->{{#ifexpr: {{#var: resultCols}} >= 2 | | ||
− | <td> {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100*(1+({{#var: capImportance}}*0.25))}} }} {{#ifexpr: {{#var: tempValue}} > {{#var: statMax}} | {{#var: statMax}} | {{#ifexpr: {{#var: tempValue}} < {{#var: statMin}} | {{#var: statMin}} | {{#var: tempValue}} }} }}% | + | <td> {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100*(1+({{#var: capImportance}}*{{#ifexpr: {{#var: capLimit}} >= 1.25 | 0.25 | ({{#var: capLimit}} - 1) }} ))}} }} {{#ifexpr: {{#var: tempValue}} > {{#var: statMax}} | {{#var: statMax}} | {{#ifexpr: {{#var: tempValue}} < {{#var: statMin}} | {{#var: statMin}} | {{#var: tempValue}} }} }}% |
}}<!-- | }}<!-- | ||
-->{{#ifexpr: {{#var: resultCols}} >= 3 | | -->{{#ifexpr: {{#var: resultCols}} >= 3 | | ||
− | <td> {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100*(1+({{#var: capImportance}}*0. | + | <td> {{#vardefine: tempValue | {{#expr: ({{#var: skillBase}} + {{#var: skillBonus}}*{{{1}}})*100*(1+({{#var: capImportance}}*{{#ifexpr: {{#var: capLimit}} >= 1.5 | 0.5 | ({{#var: capLimit}} - 1) }} ))}} }} {{#ifexpr: {{#var: tempValue}} > {{#var: statMax}} | {{#var: statMax}} | {{#ifexpr: {{#var: tempValue}} < {{#var: statMin}} | {{#var: statMin}} | {{#var: tempValue}} }} }}% |
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 04:06, 25 April 2022
This template generates the table rows for the Template: Stat Factors Table. See that page for details on template function.
Examples
As this template is not intended for use without its parent, the parent is used below.
{{Stat Factors Table}}
on the Butchery Efficiency page would produce:
Cooking Skill Level | Butchery Efficiency | ||
---|---|---|---|
100% Manipulation | 125% Manipulation | 150% Manipulation | |
0 | 1.5% | 1.5% | 1.5% |
1 | 1.5% | 1.5% | 1.5% |
2 | 1.5% | 1.5% | 1.5% |
3 | 1.5% | 1.5% | 1.5% |
4 | 1.5% | 1.5% | 1.5% |
5 | 1.5% | 1.5% | 1.5% |
6 | 1.5% | 1.5% | 1.5% |
7 | 1.5% | 1.5% | 1.5% |
8 | 1.5% | 1.5% | 1.5% |
9 | 1.5% | 1.5% | 1.5% |
10 | 1.5% | 1.5% | 1.5% |
11 | 1.5% | 1.5% | 1.5% |
12 | 1.5% | 1.5% | 1.5% |
13 | 1.5% | 1.5% | 1.5% |
14 | 1.5% | 1.5% | 1.5% |
15 | 1.5% | 1.5% | 1.5% |
16 | 1.5% | 1.5% | 1.5% |
17 | 1.5% | 1.5% | 1.5% |
18 | 1.5% | 1.5% | 1.5% |
19 | 1.5% | 1.5% | 1.5% |
20 | 1.5% | 1.5% | 1.5% |
{{Stat Factors Table|Animal Gather Speed}}
on any page would produce:
Animals Skill Level | Animal Gather Speed | ||
---|---|---|---|
100% Manipulation | 125% Manipulation | 150% Manipulation | |
0 | 4% | 5% | 6% |
1 | 16% | 20% | 24% |
2 | 28% | 35% | 42% |
3 | 40% | 50% | 60% |
4 | 52% | 65% | 78% |
5 | 64% | 80% | 96% |
6 | 76% | 95% | 114% |
7 | 88% | 110% | 132% |
8 | 100% | 125% | 150% |
9 | 112% | 140% | 168% |
10 | 124% | 155% | 186% |
11 | 136% | 170% | 204% |
12 | 148% | 185% | 222% |
13 | 160% | 200% | 240% |
14 | 172% | 215% | 258% |
15 | 184% | 230% | 276% |
16 | 196% | 245% | 294% |
17 | 208% | 260% | 312% |
18 | 220% | 275% | 330% |
19 | 232% | 290% | 348% |
20 | 244% | 305% | 366% |
Example when limit is 100%:
{{Stat Factors Table|Arrest Success Chance}}
it produces:
Social Skill Level | Arrest Success Chance |
---|---|
0 | 1% |
1 | 1% |
2 | 1% |
3 | 1% |
4 | 1% |
5 | 1% |
6 | 1% |
7 | 1% |
8 | 1% |
9 | 1% |
10 | 1% |
11 | 1% |
12 | 1% |
13 | 1% |
14 | 1% |
15 | 1% |
16 | 1% |
17 | 1% |
18 | 1% |
19 | 1% |
20 | 1% |
Example when limit is >100% but <125%: Note: Research Speed is not an appropriate use of the template, as it relies equally on two different capacities, however, at the time of writing no compatible example of an inter-column limit exists:
{{Stat Factors Table|Research Speed }}
on any page would produce:
Intellectual Skill Level | Research Speed | |
---|---|---|
100% Manipulation | 110%+ Manipulation | |
0 | 8% | 8.4% |
1 | 19.5% | 20.475% |
2 | 31% | 32.55% |
3 | 42.5% | 44.625% |
4 | 54% | 56.7% |
5 | 65.5% | 68.775% |
6 | 77% | 80.85% |
7 | 88.5% | 92.925% |
8 | 100% | 105% |
9 | 111.5% | 117.075% |
10 | 123% | 129.15% |
11 | 134.5% | 141.225% |
12 | 146% | 153.3% |
13 | 157.5% | 165.375% |
14 | 169% | 177.45% |
15 | 180.5% | 189.525% |
16 | 192% | 201.6% |
17 | 203.5% | 213.675% |
18 | 215% | 225.75% |
19 | 226.5% | 237.825% |
20 | 238% | 249.9% |
Example when skills have to be specifically defined:
{{Stat Factors Table|Plant Harvest Yield|l0=0.60|l1=0.70|l2=0.75|l3=0.80|l4=0.85|l5=0.90|l6=0.95|l7=0.98|l8=1.00|l9=1.01|l10=1.02|l11=1.03|l12=1.04|l13=1.05|l14=1.06|l15=1.07|l16=1.08|l17=1.09|l18=1.10|l19=1.12|l20=1.13}}
it produces:
Plants Skill Level | Plant Harvest Yield | ||
---|---|---|---|
100% Manipulation | 125% Manipulation | 150% Manipulation | |
0 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
1 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
2 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
3 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
4 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
5 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
6 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
7 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
8 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
9 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
10 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
11 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
12 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
13 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
14 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
15 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
16 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
17 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
18 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
19 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
20 | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% | Expression error: Unexpected < operator.% |
The above documentation is transcluded from Template:Stat Factors Table Row/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. |