User:Dave Keenan/sagittal: Difference between revisions
Jump to navigation
Jump to search
Dave Keenan (talk | contribs) No edit summary |
Dave Keenan (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; {{#switch: | <includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | ||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
| Line 36: | Line 36: | ||
(¦) = "> | | (¦) = "> | | ||
(!) = "> | | (!) = "> | | ||
(¦\ = display: inline-block; transform: scaleY(-1)"> | | (¦\ = display: inline-block; transform: scaleY(-1);"> | | ||
(!/ = "> | | (!/ = "> | | ||
)¦¦( = "> | | )¦¦( = "> | | ||
| Line 295: | Line 295: | ||
'''Note:''' Pipe characters (<code>|</code>) do not need to be escaped. | '''Note:''' Pipe characters (<code>|</code>) do not need to be escaped. | ||
'''Note:''' Short-sagitype (single-character codes for common sagittals) is not supported. | |||
<nowiki>{{sagittal| /| }}</nowiki> | == Examples == | ||
{| class="wikitable" style="text-align: center;" | |||
<nowiki>{{sagittal| !) }}</nowiki> | ! You type !! You get | ||
|- | |||
| <code><nowiki>{{sagittal| /| }}</nowiki></code> || <span class="bravura" style="font-size: 250%; line-height: 16px; vertical-align: -0.3em;"></span> | |||
|- | |||
| <code><nowiki>{{sagittal| !) }}</nowiki></code> || <span class="bravura" style="font-size: 250%; line-height: 16px; vertical-align: -0.3em;"></span> | |||
|} | |||
== See also == | == See also == | ||
| Line 307: | Line 312: | ||
[[Category:Font templates]] | [[Category:Font templates]] | ||
</noinclude> | |||
Revision as of 06:02, 10 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:
- 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".
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| !) }} |
|