Jump to content

Template:Underscript/doc

From Wikisource

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

{{uds}} redirects here ({{tl|us}} was already taken). Use this shorter form of the template if you prefer.

Syntax

[edit]

The syntax is:

{{underscript|base|under}}

Required parameters:

  • base (1) : This is the base text.
  • under (2) : This is the underscript text above the base text.

Optional parameters:

  • us-offset : Adjusts the line-height of the underscript and this changes vertical distance between the underscript and the base. Default is 0.8em.
  • us-size : Adjusts the font-size of the underscript. Default is 70%.
  • us-padding : Adjusts the left and the right padding of the underscripted text (to clearly separate it from other text). Default is 0.1em. It is recommended that this be set to zero for conventional letter spacing. In addition, Template:Nowrap is also recommended to keep letters grouped into words, when appropriate.
  • us-mbottom : Adjusts the bottom margin of the underscripted text (to ensure the base text is correctly vertically aligned). Default is -0.4em. NOTE : this may need to be adjusted on a case by case basis, especially for non-standard font sizes or non-standard line heights. Please consider this optional margin bottom setting as provisional, and not the final/best implementation of the underscript template.

Examples

[edit]

{{underscript|base|underscript}} = baseunderscript

{{underscript|base text|underscript}} = base textunderscript

{{underscript|base|underscript|us-offset=0em}} = baseunderscript

{{underscript|base|underscript|us-size=40%}} = baseunderscript

ab{{underscript|c|1}}de = abc1de

ab{{underscript|c|1|us-padding=0.0em}}de = abc1de