Template:Overunderset
This template combines the effects of the {{overset}} and {{underset}} templates into one. The template names {{overunderset}} and {{underoverset}} are synonymous and can be used interchangeably: {{underoverset}} redirects to {{overunderset}}.
Syntax
The code is:
{{underoverset|base|over|under}}or{{overunderset|base|over|under}}- which outputs as .
where:
base- the main symbol,
over- the symbol above the main symbol,
under- the symbol underneath the main symbol.
Application
Combined overset and underset
The effect of {{overunderset|b|a|c}} can be achieved by nesting {{underset|c|{{overset|a|b}}}} (or, equivalently, nesting underset into overset):
- fooofoo + + foofoofooo + = fooofooo
but combining underset and overset may cause problems with vertical offset, particularly when there is only one combined application of templates on a line:
- foodoodeee + ,
- foodoodaaa + .
Using {{overunderset|base|over|under}} is one way around the problem by containing the over- and under- positions for symbols:
- fooofoo + + foofooofooo + = fooofooo
- foodoodeee + ,
- foodoodaaa + .
Reduction to overset
With the under parameter empty:
- 1234567890 + + 1234567890 + + 1234567890
- 1234567890 + ,
- 1234567890 + .
Reduction to underset
With the over parameter empty:
- 1234567890 + + 1234567890 + + 1234567890
- 1234567890 + ,
- 1234567890 + .
See also
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.