User:Dave Keenan/sagigalentry: 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 3: Line 3:
{| class="wikitable" style="width:64px;"
{| class="wikitable" style="width:64px;"
|-
|-
| style="text-align:center; height:58px;" | {{sagittal| {{{1}}} |size=500%}}
| style="height:58px; text-align:center;" | {{sagittal| {{{1}}} |size=500%}}
|-
|-
| style="text-align:center" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double sharp | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | sharp | }} {{trim|{{{3}}}}}{{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ao | ai }}
| style="height:32px; text-align:center;" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double sharp | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | sharp | }} {{trim|{{{3}}}}}{{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ao | ai }}
|-
|-
| style="height:64px; line-height:16px;" | [[{{{4}}}|{{{5}}} {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | down | up }}]]
| style="height:64px;" | [[{{{4}}}|{{{5}}} {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | down | up }}]]
|}
|}
</div>
</div>
<div style="display:inline-table;">
<div style="display:inline-table; line-height:16px;">
{| class="wikitable" style="width:64px;"
{| class="wikitable" style="width:64px;"
|-
|-
| style="text-align:center; height:58px;" | {{sagittal| {{{2}}} |size=500%}}
| style="height:58px; text-align:center;" | {{sagittal| {{{2}}} |size=500%}}
|-
|-
| style="text-align:center" | {{trim|{{{3}}}}}{{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ai | ao }}
| style="height:32px; text-align:center;" | {{trim|{{{3}}}}}{{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ai | ao }}
|-
|-
| style="height:64px; line-height:16px;" | {{{5}}} {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | up | down }}
| style="height:64px;" | {{{5}}} {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | up | down }}
|}
|}
</div></includeonly><noinclude>
</div></includeonly><noinclude>

Revision as of 07:20, 16 October 2024

The Sagigalentry template generates sagittal gallery entries for the up and down versions of a sagittal symbol using the Bravura Text font. It is used in Sagittal#Gallery.

Example

{{sagigalentry| /¦ | \! | p | 5120/5103 | 5 comma }}

generates

pai
5 comma up
pao
5 comma down

Note the use of the broken pipe character ¦ (U+00A6) in the sagitype code for the upward sagittal. This avoids having to escape pipe characters. It can be typed as right-alt pipe space using D&D's Compose-key sequences.

See also