Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
Line 32: | Line 32: | ||
let Z = Math.round(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A); /* Food yield for a single farm in the region */ | let Z = Math.round(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A); /* Food yield for a single farm in the region */ | ||
(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A) | (A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A) | ||
document.getElementById('outputvalue'). | document.getElementById('outputvalue').innerNumber= Z ; | ||
} | } | ||
Revision as of 23:46, 24 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}