Template:Sfrac: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
(use invisible plus sign (but not U+2064 yet), add ARIA role=math, add classes to prepare for Template:Frac/styles.css)
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Unsubst||$B=<span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span class="visualhide">&nbsp;</span><span}} <!--
{{ {{{|safesubst:}}}#invoke:Unsubst||$B=<span role="math" class="sfrac {{{class|}}} nowrap{{#if:{{{3|}}}|"><span class="int">{{{1}}}</span><span class="plus visualhide">+</span><span class="}} <!--
  -->style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!--
  -->tion" style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!--
   --><span style="display:block; line-height:1em; margin:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!--
   --><span class="num" style="display:block; line-height:1em; margin:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!--
   --><span class="visualhide">/</span><!--
   --><span class="slash visualhide">/</span><!--
   --><span style="display:block; line-height:1em; margin:0 0.1em; border-top:1px solid;">{{{3|{{{2|{{{1}}}}}}}}}</span><!--
   --><span class="den" style="display:block; line-height:1em; margin:0 0.1em; border-top:1px solid;">{{{3|{{{2|{{{1|1}}}}}}}}}</span><!--
  -->{{#if:{{{3|}}}|</span>}}<!--
  -->{{#if:{{{3|}}}|</span>}}<!--
--></span>}}<noinclude>
--></span>}}<noinclude>

Revision as of 15:14, 19 September 2019

1/1