Template:Sagittal: Difference between revisions

Dave Keenan (talk | contribs)
Made "sagitype"and "sagittal" into links.
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.
Line 1: Line 1:
<includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch:
<includeonly>{{#ifeq:
  {{#replace:
    {{#replace:
      {{{1|}}}¦{{{2|⌫}}}¦{{{3|⌫}}}¦{{{4|⌫}}} |
      ¦⌫ | }} |
    {{pipe}} | ¦ }} |
  (¦\ |
  <span style="display: inline-block; transform: scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.225em;">&#xE30F;</span></span> |
  <span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch:
   {{#replace:
   {{#replace:
     {{#replace:
     {{#replace:
Line 36: Line 44:
   (¦)    = ">&#xE30C; |
   (¦)    = ">&#xE30C; |
   (!)    = ">&#xE30D; |
   (!)    = ">&#xE30D; |
   (¦\    = display: inline-block; transform: scaleY(-1);">&#xE30F; |
   (¦\    = ">&#xE30E; |
   (!/    = ">&#xE30F; |
   (!/    = ">&#xE30F; |
   )¦¦(  = ">&#xE310; |
   )¦¦(  = ">&#xE310; |
Line 284: Line 292:
       ¦⌫ | }} |
       ¦⌫ | }} |
     ¦ | {{pipe}} }}
     ¦ | {{pipe}} }}
}}</span>&#x2060;&#x200A;&#x2060;</includeonly><noinclude>
}}</span>}}&#x2060;&#x200A;&#x2060;</includeonly><noinclude>
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.