Template:Sfrac: Difference between revisions

From Vigyanwiki
Template>MusikAnimal
m (Protected "Template:Sfrac": Highly visible template; 2,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
Template>Crissov
(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 20:44, 19 September 2019

1/1

Template documentation