Template:1/2/doc: Difference between revisions
Appearance
< Template:1 | 2
Content deleted Content added
→Usage: note on spacing |
→Usage: As with {{tl|frac}}, these templates should not be used in science or mathematical articles. |
||
(31 intermediate revisions by 19 users not shown) | |||
Line 4: | Line 4: | ||
=== Usage === |
=== Usage === |
||
The |
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 11: | Line 11: | ||
without requiring the use of bulky HTML markup. |
without requiring the use of bulky HTML markup. |
||
Please note 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. |
||
As with {{tl|frac}}, these templates should not be used in science or mathematical articles. |
|||
=== See also === |
=== See also === |
||
*{{tl|frac}} |
*{{tl|frac}} |
||
*{{tl| |
*{{tl|sfrac}} |
||
*[[Number Forms]], a Unicode block consisting primarily of vulgar fractions |
|||
*{{tl|1/3}} |
|||
*{{tl|2/3}} |
|||
*{{tl|1/4}} |
|||
*{{tl|3/4}} |
|||
<includeonly> |
<includeonly>{{Sandbox other|| |
||
<!-- CATEGORIES |
<!-- CATEGORIES BELOW THIS LINE, PLEASE: --> |
||
[[Category: |
[[Category:Fraction templates]] |
||
⚫ | |||
[[Category:Mathematical formatting templates|{{PAGENAME}}]] |
|||
⚫ |
Latest revision as of 06:11, 27 May 2021
This is a documentation subpage for Template:1/2. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]The templates {{1/2}}, {{1/3}}, {{2/3}}, {{1/4}} and {{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 {{frac|1|2}}, {{frac|1|3}}, {{frac|2|3}}, {{frac|1|4}}, {{frac|3|4}}
.
Bake for {{1/2}} hour.
generates:
- Bake for 1⁄2 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+1⁄2 hours.
As with {{frac}}, these templates should not be used in science or mathematical articles.
See also
[edit]- {{frac}}
- {{sfrac}}
- Number Forms, a Unicode block consisting primarily of vulgar fractions