Template:Sagittal-gallery-entry: Difference between revisions

Dave Keenan (talk | contribs)
Created page with "<includeonly> <div style="display:inline-table; line-height:16px;"> {| class="wikitable" style="width:64px;" |- | style="height:58px; text-align:center;" | {{sagittal| {{{1}}}..."
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div style="display: inline-table; line-height: 16px; margin-right: -5px; margin-bottom: -16px;">
<div style="display:inline-table; line-height:16px;">
{| class="wikitable" style="max-width: 66px;"
{| class="wikitable" style="width:64px;"
|-
|-
| style="height:58px; text-align:center;" | {{sagittal| {{{1}}} |size=500%}}
| style="height: 56px; text-align: center;" | {{sagittal| {{{1}}} |size=500%}}
|-
|-
| style="height:{{{mid|32px}}}; text-align:center;" | {{#if: {{{3|}}} | | sagi&shy; }}{{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double sharp | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | sharp | }} {{trim|{{{3|}}}}}{{#if: {{{3|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ao | ai }} | }}
| style="height: {{{mid|32px}}}; text-align: center;" | {{#if: {{{3|}}} | | sagi&shy; }}{{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double&#32; | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} != 1 | sharp | }} {{trim|{{{3|}}}}}{{#if: {{{3|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ao | ai }} | }}
|-
|-
| style="height:64px;" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double sharp | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | sharp | }} {{#if: {{{5|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | {{{5|}}} down | [[{{{4|}}}|{{{5|}}} up]] }} | }}
| style="height: 64px;" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double&#32; | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} != 1 | {{#if: {{{4|}}} | sharp | [[2187/2048|sharp]] }} | }} {{#if: {{{5|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | {{{5|}}} down | [[{{{4|}}}|{{{5|}}} up]] }} | }}
|}
|}
</div>
</div>
<div style="display:inline-table; line-height:16px;">
<div style="display: inline-table; line-height: 16px; margin-right: -5px; margin-bottom: -16px;">
{| class="wikitable" style="width:64px;"
{| class="wikitable" style="max-width: 66px;"
|-
|-
| style="height:58px; text-align:center;" | {{sagittal| {{{2}}} |size=500%}}
| style="height: 56px; text-align: center;" | {{sagittal| {{{2}}} |size=500%}}
|-
|-
| style="height:{{{mid|32px}}}; text-align:center;" | {{#if: {{{3|}}} | | sagi&shy; }}{{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double flat | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | flat | }} {{trim|{{{3|}}}}}{{#if: {{{3|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ai | ao }} | }}
| style="height: {{{mid|32px}}}; text-align: center;" | {{#if: {{{3|}}} | | sagi&shy; }}{{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double&#32; | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} != 1 | flat | }} {{trim|{{{3|}}}}}{{#if: {{{3|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | ai | ao }} | }}
|-
|-
| style="height:64px;" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double flat | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} > 1 | flat | }} {{#if: {{{5|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | [[{{{4|}}}|{{{5|}}} up]] | {{{5|}}} down }} | }}
| style="height: 64px;" | {{#ifexpr: {{#count: {{{1}}} | X }} = 1 | double&#32; | }}{{#ifexpr: {{#count: {{{1}}} | ¦ }} != 1 | flat | }} {{#if: {{{5|}}} | {{#ifexpr: {{#count: {{{1}}} | ¦ }} = 2 or {{#count: {{{1}}} | X }} = 1 | [[{{{4|}}}|{{{5|}}} up]] | {{{5|}}} down }} | }}
|}
|}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
The '''Sagital-gallery-entry''' 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]].
{{documentation}}
 
== Example ==
 
<code><nowiki>{{sagital-gallery-entry| /¦ | \! | p | 81/80 | 5 comma }}</nowiki></code>
 
generates
<div style="display:inline-table;">
{| class="wikitable" style="width:64px;"
|-
| style="height:58px; text-align:center;" | {{sagittal| /¦ |size=500%}}
|-
| style="height:32px; text-align:center" | pai
|-
| style="height:64px; line-height:16px;" | [[81/80|5 comma up]]
|}
</div>
<div style="display:inline-table;">
{| class="wikitable" style="width:64px;"
|-
| style="height:58px; text-align:center;" | {{sagittal| \! |size=500%}}
|-
| style="height:32px; text-align:center" | pao
|-
| style="height:64px; line-height:16px;" | 5 comma down
|}
</div>
 
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 [[Dave_Keenan_%26_Douglas_Blumeyer%27s_guide_to_RTT/Conventions_for_names,_variables,_units,_and_notations#WinCompose|D&D's Compose-key sequences]].
 
== See also ==
 
* [[Template:Sagittal]]


[[Category:Font templates]]
[[Category:Font templates]]
</noinclude>
</noinclude>