Talk:Enchanting potion
For consideration, two different methods of displaying formulas.
The first, not sensitive to screen size / viewing area assigned (it's a graphic and it shows as a graphic (presently) without resizing / scaling capabilities). This is the current method.
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle \mathrm{Modifiers} = \mathrm{MIU_{Bonus}} + \mathrm{LOG_{Bonus}} + \mathrm{INT_{Bonus}} + \Big\lfloor \frac{\mathrm{AUR_{Bonus} + WIS_{Bonus}}}{2} \Big\rfloor + \mathrm{Potion_{Bonus}} - \mathrm{ItemEnchant_{Bonus}} - \mathrm{Encumbrance_{Penalty}} - \mathrm{Armor_{Penalty}}} |
The second, sensitive to viewing area assigned (it's HTML text output and will honor margins and size limits).
Modifiers = MIU_{Bonus} + LOG_{Bonus} + INT_{Bonus} + trunc
+ Potion_{bonus} - Item Enchant_{bonus} - Encumbrance_{penalty} – Armor_{penalty}</span> |
To see the difference most visually demonstrated, grab the side of your browser window and move it in (reduce the viewable space in your browser.)
You might also note that option two shows up faster than option one. That's because option one actually goes to a third-party system to render the graphic, while the second option builds the string as part of the page presentation. Benefit: we're not tied to whether the third party system is available.
CON: Very complex mathematical formulas (of which we have few, I believe - please correct if wrong) are a pain in the kiester to get well represented outside of a very graphical depiction. So this might not work for all of our game formulas. Just most of them.
Happy to hear thoughts on this. DOUG (talk) 12:46, 12 October 2017 (CDT)