Template:Sagittal: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Dave Keenan (talk | contribs)
Fixed a bug whereby the trailing hair-space did not respond to the size= parameter.
Dave Keenan (talk | contribs)
Also needed to constrain the hair-space to the same line-height as the Bravura character, to stop table row heights blowing up.
Line 316: Line 316:
       ¦⌫ | }} |
       ¦⌫ | }} |
     ¦ | {{pipe}} }}
     ¦ | {{pipe}} }}
}}</span>}}<span style="font-size: 40%;"><span style="font-size: {{{size|250%}}};>{{nbhsp}}</span></span></includeonly><noinclude>
}}</span>}}<span style="font-size: 40%;"><span style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}};">{{nbhsp}}</span></span></includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Font templates]]
[[Category:Font templates]]
</noinclude>
</noinclude>

Revision as of 00:18, 28 April 2026

Template documentation[view] [edit] [history] [purge]

The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font. There are also ASCII codes for lettered noteheads and staff segments. See the source code for the full list.

Usage notes

This template accepts one unnamed argument and two named arguments:

  1. Text in the form of sagitype, representing a sagittal or related symbol.
  2. (optional) size = a CSS font-size value; defaults to "250%".
  3. (optional) height = a CSS line-height value, e.g. "16px"; defaults to "0.6em".

Notes:

  • Pipe characters (|) do not need to be escaped.
  • Short-sagitype (single-character codes for common sagittals) is not yet supported.

Examples

You type You get
{{sagittal| /| }}
{{sagittal| !) }}

See also