User:Dave Keenan/sagittal: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Dave Keenan (talk | contribs)
No edit summary
Dave Keenan (talk | contribs)
No edit summary
Line 7: Line 7:
   (¦\ |
   (¦\ |
   <span class="bravura" style="display: inline-block; transform: scaleY(-1);"><span style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30F;</span></span> |
   <span class="bravura" style="display: inline-block; transform: scaleY(-1);"><span style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30F;</span></span> |
   <span class="bravura" style="{{#switch:
   <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;"{{#switch:
   {{#replace:
   {{#replace:
     {{#replace:
     {{#replace:
Line 40: Line 40:
   /¦)    = ">&#xE308; |
   /¦)    = ">&#xE308; |
   \!)    = ">&#xE309; |
   \!)    = ">&#xE309; |
   /¦\    = font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30A; |
   /¦\    = ">&#xE30A; |
   \!/    = font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30B; |
   \!/    = ">&#xE30B; |
   (¦)    = ">&#xE30C; |
   (¦)    = ">&#xE30C; |
   (!)    = ">&#xE30D; |
   (!)    = ">&#xE30D; |
   (¦\    = display: inline-block; transform: scaleY(-1);"><span style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30F;</span> |
   (¦\    = ">&#xE30E; |
   (!/    = font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em;">&#xE30F; |
   (!/    = ">&#xE30F; |
   )¦¦(  = ">&#xE310; |
   )¦¦(  = ">&#xE310; |
   )!!(  = ">&#xE311; |
   )!!(  = ">&#xE311; |

Revision as of 22:01, 11 October 2024

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".

Note: Pipe characters (|) do not need to be escaped.

Note: Short-sagitype (single-character codes for common sagittals) is not supported.

Examples

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

See also