Widget:YieldCalc: Difference between revisions

From Ara: History Untold Wiki
No edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 5: Line 5:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<form id="foodYieldForm" size="50" style="width=400px;">
 
   <input type="number" id="cityProd"><br />
<form id="foodYieldForm" size="5>
   <input type="number" id="regiYield"><br />
   <input type="number" id="cityProd"> City Production<br />
   <input type="number" id="farmCount"><br />
   <input type="number" size="5" id="regiYield"> Yield(Apples) of the region<br />
   <input type="number" id="percBonus"><br />
   <input type="number" size="5" id="farmCount"> Amount of Farms in the region<br />
   <input type="number" size="5" id="percBonus"> Total Percentage Bonus (e.g. 50% from a Plow)<br />
   <input type="submit" value="Calculate" onClick="yieldScript()">   
   <input type="submit" value="Calculate" onClick="yieldScript()">   
</form>
</form>
<span id="outputvalue">Output Goes Here</span>
<span id="outputvalue">Output Goes Here</span>
<script type="text/javascript">
<script type="text/javascript">
// Prevent Submit button from reloading page
// Prevent Submit button from reloading page

Revision as of 01:02, 25 October 2024

This widget is used to display and calculate the yield with the values submitted by the user.

Usage: ‎{{#Widget:YieldCalc}}