Nothing Special   »   [go: up one dir, main page]

Jump to content

Template:1/2/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Being deleted
Usage: As with {{tl|frac}}, these templates should not be used in science or mathematical articles.
 
Line 14: Line 14:
* <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.

As with {{tl|frac}}, these templates should not be used in science or mathematical articles.


=== See also ===
=== See also ===

Latest revision as of 06:11, 27 May 2021

Usage

[edit]

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:

  • Bake for {{frac|2|1|2}} hours.
  • Bake for 2+12 hours.

As with {{frac}}, these templates should not be used in science or mathematical articles.

See also

[edit]