Template:Scrollable Math: Difference between revisions
Template page
More actions
Created page with "<includeonly> <templatestyles src="Scrollable Math/styles.css" /> <div class="scrollable-math"> {{{1}}} </div> </includeonly> <noinclude> This template wraps math formulas in a horizontally scrollable container for mobile devices. Usage: {{Scrollable Math|<math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math>}} </noinclude>" |
Fix long equation formatting |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Scrollable Math/styles.css" /> | ||
<templatestyles src="Scrollable Math/styles.css" /> | |||
<div class="scrollable-math"> | <div class="scrollable-math"> | ||
{{{1}}} | {{{1}}} | ||
</div> | </div></includeonly> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
| Line 11: | 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: