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

From blackwiki
Jump to navigation Jump to search
imported>SporkBot
m (Replace template per TFD outcome; no change in content)
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.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
{{Template shortcuts |isup|padlsup}}
+
{{Template shortcut|isup|padlsup}}
  
Use this template to add a little padding before a superscript so that it doesn't clash with adjacent &nbsp;and especially italic&nbsp;– text:
+
Use this template to add a little padding before a superscript so that it doesn't clash with adjacent&nbsp;and especially italic&nbsp;– text:
 
: {{tc|isup|''text to superscript''}} for the default padding;
 
: {{tc|isup|''text to superscript''}} for the default padding;
: {{tc|isup|''N_units''|''text to superscript''}} or, using another shortcut, {{tc|padlsup|''N_units''|''text to superscript''}}<br/>&nbsp;for ''N_units'' of padding, where ''N_units'' is a number followed by a display-related unit ([[Em (typography)|em]], [[Pixel|px]], [[Point (typography)|pt]], etc). For example, {{tlf|padlsup|1px|blah}}.
+
: {{tc|isup|''N_units''|''text to superscript''}} or, using another shortcut, {{tc|padlsup|''N_units''|''text to superscript''}}<br />&nbsp;for ''N_units'' of padding, where ''N_units'' is a number followed by a display-related unit ([[Em (typography)|em]], [[Pixel|px]], [[Point (typography)|pt]], etc). For example, {{tlf|padlsup|1px|blah}}.
  
; {{tlf|{{TEMPLATENAME}}}} {{nobold|(with default padding)}} and <nowiki><sup></nowiki> compared
+
; {{tlf|i sup}} {{nobold|(with default padding)}} and <nowiki><sup></nowiki> compared
: <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]{{isup|2}}</nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]{{{{TEMPLATENAME}}|2}}
+
: <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]{{i sup|2}}</nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]{{i sup|2}}
 
: <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]<sup>2</sup></nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]<sup>2</sup>
 
: <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]<sup>2</sup></nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]<sup>2</sup>
  

Revision as of 03:55, 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