Template:Sup/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tl|sup}} provides a quick way to define superscript text (e.g. normal text <sup>superscript text</sup>). ===Parameters=== The...") |
No edit summary |
||
| Line 26: | Line 26: | ||
| No parameter || <code><nowiki>{{sup|This text is in superscript}}</nowiki></code> || {{sup|This text is in superscript}} | | No parameter || <code><nowiki>{{sup|This text is in superscript}}</nowiki></code> || {{sup|This text is in superscript}} | ||
|- | |- | ||
| Inline | | Inline mathematics || <code><nowiki>3{{sup|2}}=9</nowiki></code> || 3{{sup|2}}=9 | ||
|- | |- | ||
|} | |} | ||
Revision as of 14:17, 12 November 2014
Usage
{{sup}} provides a quick way to define superscript text (e.g. normal text superscript text).
Parameters
The template has one unnamed required parameter.
Syntax
{{sup|custom text}}
Required parameters
1: Custom text
Enter the text which you wish to be output as superscript.
- Usage
{{sup|1}}
Examples
Correct use
| Example case | What you write | What you see |
|---|---|---|
| No parameter | {{sup|This text is in superscript}} |
This text is in superscript |
| Inline mathematics | 3{{sup|2}}=9 |
32=9 |
Incorrect use
| Example case | What you write | What you see (error) |
|---|---|---|
| No parameter | {{sup}} |
{{{1}}} |
See also
- {{sub}} - template used for defining subscript text.