Template:Overscript/doc

From Wikisource
Jump to navigation Jump to search

This template is for placing text above another text. It is based on Wikipedia template overset

{{os}} redirects here. Use this shorter form of the template if you prefer.

Syntax[edit]

The syntax is:

{{overscript|base|over}}

Required parameters:

  • base (1) : This is the base text.
  • over (2) : This is the overscript text above the base text.

Optional parameters:

  • os-offset : Adjusts the line-height of the overscript and this changes vertical distance between the overscript and the base. Default is 0.8em.
  • os-size : Adjusts the font-size of the overscript. Default is 70%.
  • os-padding : Adjusts the left and the right padding of the overscripted text (to clearly separate it from other text). Default is 0.1em.

Examples[edit]

{{overscript|base|overscript}} = overscriptbase

{{overscript|base text|overscript}} = overscriptbase text

{{overscript|base|overscript|os-offset=0em}} = overscriptbase

{{overscript|base|overscript|os-size=40%}} = overscriptbase

ab{{overscript|c|1}}de = ab1cde

ab{{overscript|c|1|os-padding=0.0em}}de = ab1cde