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

From blackwiki
< Template:1‎ | 2
Jump to navigation Jump to search
blackwiki>Crissov
(revert oops)
blackwiki>Crissov
(unified description)
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
  
The template uses [[HTML]] markup to create a large, readable, and stacked "{{1/2}}", as opposed to the often illegible "½" or horizontal "1/2". It is intended as a concise, easily-interpreted alternative to <code><nowiki>{{Frac|1|2}}</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 a large, readable, and stacked fraction "{{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>.
  
 
* <code><nowiki>Bake for {{1/2}} hour.</nowiki></code>
 
* <code><nowiki>Bake for {{1/2}} hour.</nowiki></code>
Line 11: Line 11:
 
without requiring the use of bulky HTML markup.
 
without requiring the use of bulky HTML markup.
  
Please note that this template does not handle preceding integers (or succeeding units) and the spacing in between, use {{tl|frac}} for that:
+
Please note that these templates do not handle preceding integers (or succeeding units) and the spacing in between, use {{tl|frac}} for that:
 
 
 
* <code><nowiki>Bake for {{frac|2|1|2}} hours.</nowiki></code>
 
* <code><nowiki>Bake for {{frac|2|1|2}} hours.</nowiki></code>
 
* Bake for {{frac|2|1|2}} hours.
 
* Bake for {{frac|2|1|2}} hours.
Line 19: Line 18:
 
*{{tl|frac}}
 
*{{tl|frac}}
 
*{{tl|Sfrac}}
 
*{{tl|Sfrac}}
*{{tl|1/3}}
+
 
*{{tl|2/3}}
 
*{{tl|1/4}}
 
*{{tl|3/4}}
 
  
 
<includeonly>
 
<includeonly>

Revision as of 14:14, 28 December 2013

Usage

The templates {{1/2}}, {{1/3}}, {{2/3}}, {{1/4}} and {{3/4}} use HTML markup to create a large, readable, and stacked fraction "​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