Difference between revisions of "Template:Pow/doc"

From Zero-K
Jump to navigation Jump to search
(Wrong documentation snippet copied from a different function before... but would be nice to make the caret appear only for c&p and not when styles are disabled.)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Use for creating exponents:
 
Use for creating exponents:
 
<var>E</var> = <var>m</var><var>c</var>{{pow|2}}. Over plain <code>&lt;sup&gt;</code> tags, this template has the benefit of showing up correctly even when copying and pasting plain text.
 
<var>E</var> = <var>m</var><var>c</var>{{pow|2}}. Over plain <code>&lt;sup&gt;</code> tags, this template has the benefit of showing up correctly even when copying and pasting plain text.
 +
 +
The default value is ''squared'' ({{pow}}).
 +
 +
<includeonly>[[Category:Math]]</includeonly>

Latest revision as of 07:01, 17 September 2021

Use for creating exponents: E = mc^2. Over plain <sup> tags, this template has the benefit of showing up correctly even when copying and pasting plain text.

The default value is squared (^2).