Difference between revisions of "Template:I sup/doc"
Jump to navigation
Jump to search
imported>Frietjes m (cleanup (wikitables, html markup, layout, etc.)) |
imported>SporkBot m (Replace template per TFD outcome; no change in content) |
||
| Line 7: | Line 7: | ||
: {{tc|isup|''N_units''|''text to superscript''}} or, using another shortcut, {{tc|padlsup|''N_units''|''text to superscript''}}<br/> 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/> 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 |
: <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]{{isup|2}}</nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]{{{{TEMPLATENAME}}|2}} | : <code><nowiki>[[SS Kroonland|SS ''Kroonland'']]{{isup|2}}</nowiki></code> produces: [[SS Kroonland|SS ''Kroonland'']]{{{{TEMPLATENAME}}|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 23:46, 28 March 2015
| 40px | This is a documentation subpage for Template:I sup. It contains usage information, categories and other content that is not part of the original template page. |
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'']]{{isup|2}}produces: SS Kroonland2[[SS Kroonland|SS ''Kroonland'']]<sup>2</sup>produces: SS Kroonland2
See also
- {{I smallsup}} for a version of this template where the superscripted text is rendered as <small>.
- {{Sup and sub-related templates}}