Template:Frac

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(pretty formatting for fractions)
 
m (delete extra CR)
Line 1: Line 1:
<span style="font-size:80%;vertical-align:top">{{{1}}}</span>/<span style="font-size:80%;vertical-align:sub">{{{2}}}</span>
+
<span style="font-size:80%;vertical-align:top">{{{1}}}</span>/<span style="font-size:80%;vertical-align:sub">{{{2}}}</span><noinclude>----
<noinclude>----
+
 
;Usage:
 
;Usage:
 
:'''<nowiki>{{</nowiki>Frac|''numerator''|''denominator''}}'''
 
:'''<nowiki>{{</nowiki>Frac|''numerator''|''denominator''}}'''

Revision as of 02:17, 21 September 2014

{{{1}}}/{{{2}}}----

Usage
{{Frac|numerator|denominator}}
Sample Output
Resize to 1/2 original size.
Why is it worth using?

Because it looks a little better.

  • The usual fraction - no special formatting:
Resize to 1/2 original size.
  • The alternative fraction - using HTML <sup>/<sub>
Resize to 1/2 original size.
Personal tools