Difference between revisions of "Template:Frac"

From Zero-K
Jump to navigation Jump to search
(Removed parentheses from style-less view and changed the way solidus is hidden. It will now be used when the text is copied. Added defaults.)
m (Changed solidus to obelus. Hopefully, it doesn't look too much like plus.)
 
Line 1: Line 1:
−
<span style="display:inline-block;vertical-align:-52%;text-align:center><span style="display:block;border-bottom:solid thin">{{{1|<var>numerator</var>}}}</span><span style="position:absolute;left:-9999px;display:inline-block;width:1px;height:1px;overflow:hidden"> / </span><span style="display:inline-block">{{{2|<var>denominator</var>}}}</span></span><noinclude><!--A simple-minded workaround for the absence of a good way to create mathematical fractions. Do not edit spacing, it is critical here.-->
+
<span style="display:inline-block;vertical-align:-52%;text-align:center><span style="display:block;border-bottom:solid thin">{{{1|<var>numerator</var>}}}</span><span style="position:absolute;left:-9999px;display:inline-block;width:1px;height:1px;overflow:hidden"> &divide; </span><span style="display:inline-block">{{{2|<var>denominator</var>}}}</span></span><noinclude><!--A simple-minded workaround for the absence of a good way to create mathematical fractions. Do not edit spacing, it is critical here.-->
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Latest revision as of 18:34, 20 August 2021

numerator ÷ denominator Lua error: Internal error: The interpreter exited with status 1.