Difference between revisions of "Template:Pow"

From Zero-K
Jump to navigation Jump to search
(Template to use for creating exponents.)
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<sup><span style="position:absolute;left:-9999px;display:inline-block;width:1px;height:1px;overflow:hidden"> ^ </span>{{{1|2}}}</sup><noinclude>
+
<includeonly><font size="1" color="transparent" style="position:relative;left:-9999px;display:inline-block;width:1px;height:1px;overflow:hidden">^</font><sup style="padding:0 2px">{{{1|2}}}</sup></includeonly><noinclude><!--Do not edit spacing, it is critical here.-->
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 06:04, 17 September 2021

Error creating thumbnail: File missing
Template documentation
[view] [edit] [history] [purge]

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).