Template:Sagittal: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Dave Keenan (talk | contribs)
Further refined the previous workaround for the inverted (|\ so it works for different sizes.
Dave Keenan (talk | contribs)
Added codes for SMuFL noteheads with note-names inside them; whole-note, half-note and black.
 
(2 intermediate revisions by one other user not shown)
Line 287: Line 287:
///¦    = "> |
///¦    = "> |
\\\!    = "> |
\\\!    = "> |
ntAwh    = "> |
ntBwh    = "> |
ntCwh    = "> |
ntDwh    = "> |
ntEwh    = "> |
ntFwh    = "> |
ntGwh    = "> |
ntAhf    = "> |
ntBhf    = "> |
ntChf    = "> |
ntDhf    = "> |
ntEhf    = "> |
ntFhf    = "> |
ntGhf    = "> |
ntAbl    = "> |
ntBbl    = "> |
ntCbl    = "> |
ntDbl    = "> |
ntEbl    = "> |
ntFbl    = "> |
ntGbl    = "> |
">{{#replace:
">{{#replace:
     {{#replace:
     {{#replace:
Line 292: Line 313:
       ¦⌫ | }} |
       ¦⌫ | }} |
     ¦ | {{pipe}} }}
     ¦ | {{pipe}} }}
}}</span>}}&#x2060;&#x200A;&#x2060;</includeonly><noinclude>
}}</span>}}{{nbhsp}}</includeonly><noinclude>
The '''Sagittal''' template converts a [[sagitype]] code (the pictorial ASCII code for sagittal) into a [[sagittal]] symbol in the BravuraText font.
 
{{documentation}}
{{documentation}}


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

Latest revision as of 07:48, 11 April 2025

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.

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; defaults to "16px".

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