Template:ChapterBar: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 16: Line 16:
     padding: .2rem .5rem;
     padding: .2rem .5rem;
     text-align: left;"><!--
     text-align: left;"><!--
       -->{{#forargs: PrevCh
       -->{{#forargs: PrevName
         | key
         | key
         | value
         | value
         | <nowiki />
         | <nowiki />
         <div style="display: flex;">
         <div style="display: flex;">
           <div style="flex: none; min-width: 2rem; max-width: 2rem; text-align: left;">←</div>
           <div style="flex: none; min-width: 2rem; max-width: 2rem; text-align: left;"><!--
            -->{{#if:{{{PrevLink{{#var:key}}|}}}
              | [[{{{PrevLink{{#var:key}}|}}}|]]
              | ←
            }}<!--
          --></div>
           <div style="flex: auto; text-align: right;"><!--
           <div style="flex: auto; text-align: right;"><!--
             --><i>{{#if:{{{PrevChLink{{#var:key}}|}}}
             --><i>{{{PrevNum{{#var:key}}|}}}{{#if:{{{PrevLink{{#var:key}}|}}}
               | [[{{{PrevChLink{{#var:key}}|}}}|{{#var:value}}]]
               | [[{{{PrevLink{{#var:key}}|}}}|{{#var:value}}]]
               | {{#var:value}}
               | {{#var:value}}
             }}</i><!--
             }}</i><!--
Line 41: Line 46:
     text-align: center;
     text-align: center;
     vertical-align: middle;"><!--
     vertical-align: middle;"><!--
       --><b>{{{CurCh|}}}</b><!--
       --><b>{{{CurNum|}}}{{{CurName|}}}</b><!--
   --></div>
   --></div>
   <div style="
   <div style="
Line 52: Line 57:
     border-bottom-right-radius: 10px;
     border-bottom-right-radius: 10px;
     padding: .2rem .5rem;"><!--
     padding: .2rem .5rem;"><!--
       -->{{#forargs: NextCh
       -->{{#forargs: NextName
         | key
         | key
         | value
         | value
Line 58: Line 63:
         <div style="display: flex;">
         <div style="display: flex;">
           <div style="flex: auto; text-align: left;"><!--
           <div style="flex: auto; text-align: left;"><!--
             --><i>{{#if:{{{NextChLink{{#var:key}}|}}}
             --><i>{{{NextNum{{#var:key}}|}}}:{{#if:{{{NextLink{{#var:key}}|}}}
               | [[{{{NextChLink{{#var:key}}|}}}|{{#var:value}}]]
               | [[{{{NextLink{{#var:key}}|}}}|{{#var:value}}]]
               | {{#var:value}}
               | {{#var:value}}
             }}</i><!--
             }}</i><!--
           --></div>
           --></div>
           <div style="flex: none; min-width: 2rem; max-width: 2rem; text-align: right;">→</div>
           <div style="flex: none; min-width: 2rem; max-width: 2rem; text-align: right;"><!--
            -->{{#if:{{{NextLink{{#var:key}}|}}}
              | [[{{{NextLink{{#var:key}}|}}}|]]
              | →
            }}<!--
          --></div>
         </div>
         </div>
       }}<!--
       }}<!--
   --></div>
   --></div>
</div>
</div>

Revision as of 06:56, 16 October 2021