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

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
m (Made a couple minor adjustments so visible code and examples fully match, Made a couple additional (still minor) spacing/formatting adjustments as well.)
imported>Jdaloner
m (Additional capitalization tweak.)
Line 12: Line 12:
  
 
===See also===
 
===See also===
* {{tl|I smallsup}} for a version of this template where the superscripted text is rendered as <nowiki><small></nowiki>.
+
* {{tl|i smallsup}} for a version of this template where the superscripted text is rendered as <nowiki><small></nowiki>.
 
* {{hlist |{{tn|'}} |{{tn|'s}} |{{tn|' "}} |{{tn|" '}} |{{tn|" ' "}} |{{tn|!}} }}
 
* {{hlist |{{tn|'}} |{{tn|'s}} |{{tn|' "}} |{{tn|" '}} |{{tn|" ' "}} |{{tn|!}} }}
* {{tl|Sup and sub-related templates}}
+
* {{tl|sup and sub-related templates}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |

Revision as of 04:53, 1 April 2015

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