Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
let z = Math.floor(a*b+b*5*h+5+(a+5*h)*(e/100)+(h-1)*5+a); /* Food yield for a single farm in the region */ | let z = Math.floor(a*b+b*5*h+5+(a+5*h)*(e/100)+(h-1)*5+a); /* Food yield for a single farm in the region */ | ||
msg="z"; | msg="z"; | ||
document.getElementById('outputvalue').innerText=msg; | |||
} | } | ||
</script> | </script> | ||
<span id="outputvalue">outputvalue</span> | |||
</includeonly> | </includeonly> |
Revision as of 22:40, 24 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}