Template:Scrollable Math: Difference between revisions
Template page
More actions
No edit summary |
Fix long equation formatting |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 9: | Line 9: | ||
Usage: | Usage: | ||
< | {{Scrollable Math| | ||
<math>E = mc^2</math> | |||
}} | |||
{{Scrollable Math| | |||
<math>\text{attackerTroopLoss(tileOwner)} = | |||
\begin {cases} | |||
0.8 * \text{terrainDef} * \text{defensePost} * \text{botDebuff} * \text{largeAttackerBuff} * \text{largeDefenderDebuff} * \text{traitorDebuff} * \text{clampedTroopRatio} & \text{if player or nation or bot} &\\ | |||
\frac{\text{terrainDef} * \text{falloutDef}}{\text{attackerTypeBuff}} & \text{if wilderness} | |||
\end{cases}</math>}} | |||
} | |||
</ | |||
Latest revision as of 20:59, 17 November 2025
This template wraps math formulas in a horizontally scrollable container for mobile devices.
Usage: