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: | -->{{#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:{{{ | --><i>{{{PrevNum{{#var:key}}|}}}{{#if:{{{PrevLink{{#var:key}}|}}} | ||
| [[{{{ | | [[{{{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>{{{ | --><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: | -->{{#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:{{{ | --><i>{{{NextNum{{#var:key}}|}}}:{{#if:{{{NextLink{{#var:key}}|}}} | ||
| [[{{{ | | [[{{{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> |