Template:Sagittal: Difference between revisions
Jump to navigation
Jump to search
Dave Keenan (talk | contribs) No edit summary |
Dave Keenan (talk | contribs) mNo edit summary |
||
| Line 6: | Line 6: | ||
{{pipe}} | ¦ }} | | {{pipe}} | ¦ }} | | ||
(¦\ | | (¦\ | | ||
<span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|. | <span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|0.6em}}}; vertical-align: -0.255em; display: inline-block; transform: translateY(0.22em); margin-right: .05em;"></span></span> | | ||
<span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|0. | <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|0.6em}}}; vertical-align: -0.3em; margin-right: .05em; {{#switch: | ||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
Latest revision as of 08:03, 2 May 2026
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:
- Text in the form of sagitype, representing a sagittal or related symbol.
- (optional) size = a CSS font-size value; defaults to "250%".
- (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| !) }} |
|