Template:Sagittal: Difference between revisions
Jump to navigation
Jump to search
Dave Keenan (talk | contribs) Fixed problem where (|\ was too low on Apple Macs after the previous workaround for its inverted glyph in the current version of Bravura Text. |
Dave Keenan (talk | contribs) Further refined the previous workaround for the inverted (|\ so it works for different sizes. |
||
Line 6: | Line 6: | ||
{{pipe}} | ¦ }} | | {{pipe}} | ¦ }} | | ||
(¦\ | | (¦\ | | ||
<span style="display: inline-block; transform: scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0. | <span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.255em; display: inline-block; transform: translateY(0.22em);"></span></span> | | ||
<span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | ||
{{#replace: | {{#replace: |
Revision as of 07:51, 15 October 2024
The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font.
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:
- 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; 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| !) }} |
|