Difference between revisions of "Template:1/2/doc"

From blackwiki
< Template:1‎ | 2
Jump to navigation Jump to search
blackwiki>E^pi*i batch
m (→‎See also: Moving to specific category Category:Fraction templates.)
m (42 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
  
The templates {{tl|1/2}}, {{tl|1/3}}, {{tl|2/3}}, {{tl|1/4}} and {{tl|3/4}} use [[HTML]] markup to create large, readable, common fractions "{{1/2}}, {{1/3}}, {{2/3}}, {{1/4}}, {{3/4}}", as opposed to the often illegible "½, ⅓, ⅔, ¼, ¾" or horizontal "1/2, 1/3, 2/3, 1/4, 3/4". They are intended as concise, easily interpreted alternatives to <code><nowiki>{{frac|1|2}}, {{frac|1|3}}, {{frac|2|3}}, {{frac|1|4}}, {{frac|3|4}}</nowiki></code>.
+
The templates {{tl|1/2}}, {{tl|1/3}}, {{tl|2/3}}, {{tl|1/4}} and {{tl|3/4}} use [[HTML]] markup to create large, readable, common fractions "{{1/2}}, {{1/3}}, {{2/3}}, {{1/4}}, {{3/4}}", as opposed to the often illegible "½, ⅓, ⅔, ¼, ¾" or horizontal "[[one half|1/2]], 1/3, 2/3, 1/4, 3/4". They are intended as concise, easily interpreted alternatives to <code><nowiki>{{frac|1|2}}, {{frac|1|3}}, {{frac|2|3}}, {{frac|1|4}}, {{frac|3|4}}</nowiki></code>.
  
 
* <code><nowiki>Bake for {{1/2}} hour.</nowiki></code>
 
* <code><nowiki>Bake for {{1/2}} hour.</nowiki></code>
Line 19: Line 19:
 
*{{tl|sfrac}}
 
*{{tl|sfrac}}
 
*{{tl|sortfrac}}
 
*{{tl|sortfrac}}
 +
*[[Number Forms]], a Unicode block consisting primarily of vulgar fractions
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
[[Category:Fraction templates]]
 
[[Category:Fraction templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 09:26, 30 September 2020

Usage

The templates {{1/2}}, {{1/3}}, {{2/3}}, {{1/4}} and {{3/4}} use HTML markup to create large, readable, common fractions "​12, ​13, ​23, ​14, ​34", as opposed to the often illegible "½, ⅓, ⅔, ¼, ¾" or horizontal "1/2, 1/3, 2/3, 1/4, 3/4". They are intended as concise, easily interpreted alternatives to {{frac|1|2}}, {{frac|1|3}}, {{frac|2|3}}, {{frac|1|4}}, {{frac|3|4}}.

  • Bake for {{1/2}} hour.

generates:

  • Bake for ​12 hour.

without requiring the use of bulky HTML markup.

Please note that these templates do not handle preceding integers (or succeeding units) and the spacing in between, use {{frac}} for that:

See also