Template:Sup sub/doc: Difference between revisions
Template page
More actions
unified |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| Line 30: | Line 30: | ||
[[Category:Formatting templates|{{PAGENAME}}]] | [[Category:Formatting templates|{{PAGENAME}}]] | ||
[[es:Plantilla:sup sub]] | [[w:es:Plantilla:sup sub]] | ||
[[fr:Modèle:ExpInd]] | [[w:fr:Modèle:ExpInd]] | ||
[[id:Templat:Sup sub]] | [[w:id:Templat:Sup sub]] | ||
[[hu:Sablon:sup sub]] | [[w:hu:Sablon:sup sub]] | ||
[[mk:Шаблон:Sup sub]] | [[w:mk:Шаблон:Sup sub]] | ||
[[ja:Template:Sup sub]] | [[w:ja:Template:Sup sub]] | ||
[[pl:Szablon:Sup sub]] | [[w:pl:Szablon:Sup sub]] | ||
[[ru:Шаблон:Sup sub]] | [[w:ru:Шаблон:Sup sub]] | ||
[[sl:Predloga:Sup sub]] | [[w:sl:Predloga:Sup sub]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 14:40, 15 August 2026
Provides formatting with superscript and subscript.
Example: to get D2g you would use: D{{sup sub|2|g}}
Usage
{{Sup sub/doc |1= |2= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | superscript | empty | required | |
2 | subscript | empty | required | |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
See also
| Code example | Renders as | Notes | Code example | Renders as | Notes |
|---|---|---|---|---|---|
X{{Exp|superscript text}} |
Xsuperscript text | X{{Smallsup|small superscript text}} |
Xsmall superscript text | with smaller text | |
X{{Sub|subscript text}} |
Xsubscript text | X{{Smallsub|small subscript text}} |
Xsmall subscript text | with smaller text | |
| — | X{{Sup sub|superscript|subscript}} |
Xsuperscriptsubscript | with smaller text | ||
X{{Big|big text}} |
Xbig text | X{{Small|small text}} |
Xsmall text | Font size 85% | |
X{{Font-size|120%|font-size 120%}} |
Xfont-size 120% | ← could maybe be merged → | X{{Resize|120%|font-size 120%}} |
Xfont-size 120% | |
X{{Overline|overlined}} |
Xoverlined | — | |||
X{{Explain|term|explanation}} |
Xterm | — | |||
X{{Mark|marked text}} |
Xmarked text | Same color as used in diffs. | X{{Highlight|highlighted text|#FF0|green}} |
Xhighlighted text | Multiple format parameters possible |
X{{Small-caps|Small capitals}} |
XSmall capitals | — | |||
X<kbd>teletype</kbd> |
Xteletype | Tags, not a template yet(en) (but used in e.g. {{Tld}}) | X<code>code</code> |
Xcode |
Tags, not a template yet(en) (but used in e.g. {{Tlc}}) |
- Note: The capital
Xin front of each template is used to compare the results to plain text.
Localization
This template is not intended to be localized.