Difference between revisions of "Template:I sup/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
m (Additional capitalization tweak.)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 16: Line 16:
 
* {{tl|sup and sub-related templates}}
 
* {{tl|sup and sub-related templates}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{Sandbox other|
 
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
[[Category:Superscript and subscript templates]]
 
[[Category:Superscript and subscript templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 17:08, 25 April 2020

Use this template to add a little padding before a superscript so that it doesn't clash with adjacent – and especially italic – text:

{{isup|text to superscript}} for the default padding;
{{isup|N_units|text to superscript}} or, using another shortcut, {{padlsup|N_units|text to superscript}}
 for N_units of padding, where N_units is a number followed by a display-related unit (em, px, pt, etc). For example, {{padlsup|1px|blah}}.
{{i sup}} (with default padding) and <sup> compared
[[SS Kroonland|SS ''Kroonland'']]{{i sup|2}} produces: SS Kroonland2
[[SS Kroonland|SS ''Kroonland'']]<sup>2</sup> produces: SS Kroonland2

See also