Template:Sagittal/doc: Difference between revisions
Jump to navigation
Jump to search
Dave Keenan (talk | contribs) →See also: Added template sagittal-gallery-entry. |
Dave Keenan (talk | contribs) Mentioned that there are ASCII codes for lettered noteheads and staff segments. |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
== Usage notes == | 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: | This template accepts one unnamed argument and two named arguments: | ||
# Text in the form of sagitype, representing a sagittal or related symbol. | # Text in the form of sagitype, representing a sagittal or related symbol. | ||
# (optional) '''size =''' a CSS font-size value; defaults to "250%". | # (optional) '''size =''' a CSS font-size value; defaults to "250%". | ||
# (optional) '''height =''' a CSS line-height value; defaults to " | # (optional) '''height =''' a CSS line-height value, e.g. "16px"; defaults to "0.6em". | ||
''' | '''Notes:''' | ||
* Pipe characters (<code>|</code>) do not need to be escaped. | |||
* Short-sagitype (single-character codes for common sagittals) is not yet supported. | |||
=== Examples === | |||
== Examples == | |||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| Line 19: | Line 22: | ||
|} | |} | ||
== See also == | === See also === | ||
* [[Sagitype]] | * [[Sagitype]] | ||
* [[Sagittal notation]] | * [[Sagittal notation]] | ||
* [[Template:Sagittal-gallery-entry]] | * [[Template:Sagittal-gallery-entry]] | ||
* [[Template:Bravura]] | * [[Template:Bravura]] | ||
* [[Template:szg]] | |||
Latest revision as of 23:45, 22 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| !) }} |
|