الگو:E/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

کاربرد[ویرایش]

The {{e}} template is intended to facilitate and make uniform scientific notation numbers. To render

۳٫۱۴×۱۰−۱۲

instead of writing:

۳٫۱۴×۱۰<sup>−۱۲</sup>

you can write:

۳٫۱۴{{subst:e|−۱۲}}

which yields that same wikitext, and is therefore rendered the same.

Note that the parameter is text, not a number; it can include variables which can be italicized, etc. This also means that using a hyphen (-) and a minus sign (−) with negative numbers gives different results.

۳٫۱۴{{subst:e|-۱۲}} ۳٫۱۴×۱۰-۱۲
۳٫۱۴{{subst:e|&minus;۱۲}} ۳٫۱۴×۱۰−۱۲
۳٫۱۴{{subst:e|۱۲}} ۳٫۱۴×۱۰−۱۲
۳٫۱۴{{subst:e|''z'' − ''y''}} ۳٫۱۴×۱۰zy