Template:I sup: Difference between revisions

From Vigyanwiki
m (Changed protection level for "Template:I sup": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
m (1 revision imported from alpha:Template:I_sup)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}} |<span style="padding-left:{{{1}}};"><sup>{{{2}}}</sup></span> |<span style="padding-left:0.12em;"><sup>{{{1}}}</sup></span>}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#if:{{{2|}}} |<span style="padding-left:{{{1}}};"><sup>{{{2}}}</sup></span> |<span style="padding-left:0.12em;"><sup>{{{1}}}</sup></span>}}</includeonly><noinclude>{{Documentation}}</noinclude>[[Category: Templates Vigyan Ready]]

Latest revision as of 08:47, 24 January 2023

Template documentation

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

  • {{i smallsup}} for a version of this template where the superscripted text is rendered as <small>.
  • {{sup and sub-related templates}}