Template:Szg/doc: Difference between revisions

Dave Keenan (talk | contribs)
mNo edit summary
Dave Keenan (talk | contribs)
Mentioned that it also generates ups-and-downs, lettered noteheads and staff segments.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}
The '''szg''' template converts a pictorial ASCII code into a [[Stein-Zimmermann-Gould]] symbol in the BravuraText font. In some cases, the symbol is made up of multiple symbols offset and overlaid.
The '''szg''' template converts a pictorial ASCII code into a [[Stein–Zimmermann–Gould notation|Stein–Zimmermann–Gould]] symbol, or an [[Kite's_ups_and_downs_notation|Ups-and-downs]] symbol, in the BravuraText font. In some cases, the symbol is made up of multiple symbols offset and overlaid. There are also ASCII codes for lettered noteheads and staff segments. See the source code for the full list.


=== Usage notes ===
=== Usage notes ===
This template accepts one unnamed argument and two named arguments:
This template accepts one unnamed argument and two named arguments:
# Text representing an SVG or related symbol.
# Text representing an SZG 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, e.g. "40px"; defaults to "1.5" (of font size).
# (optional) '''height =''' a CSS line-height value, e.g. "40px"; defaults to "1.5em".


=== Examples ===
=== Examples ===
Line 12: Line 12:
|-
|-
! You type !! You get
! You type !! You get
|-
| <code><nowiki>{{szg| ^ }}</nowiki></code> || {{szg| ^ }}
|-
| <code><nowiki>{{szg| ^| }}</nowiki></code> || {{szg| ^| }}
|-
|-
| <code><nowiki>{{szg| ^t# }}</nowiki></code> || {{szg| ^t# }}
| <code><nowiki>{{szg| ^t# }}</nowiki></code> || {{szg| ^t# }}