Template:ChapterBar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
| {{#vardefine:prevCount | {{#expr:{{#var:prevCount}} + 1}}}} | | {{#vardefine:prevCount | {{#expr:{{#var:prevCount}} + 1}}}} | ||
}} | }} | ||
{{#var: | {{#vardefine:nextCount | 0}} | ||
<div style=" | {{#forargs:NextName | ||
| key | |||
| value | |||
| {{#vardefine:nextCount | {{#expr:{{#var:nextCount}} + 1}}}} | |||
}}<div style=" | |||
display: flex; | display: flex; | ||
background-color: {{{ColorBg|#0091cb}}}; | background-color: {{{ColorBg|#0091cb}}}; | ||
Line 18: | Line 22: | ||
justify-content: center; | justify-content: center; | ||
flex: 1; | flex: 1; | ||
{{#ifexpr: {{#var:prevCount|0}} <= 0 | visibility: hidden; |}} | |||
background-color: {{{ColorFg|#b3dfef}}}; | background-color: {{{ColorFg|#b3dfef}}}; | ||
border-top-left-radius: 10px; | border-top-left-radius: 10px; | ||
Line 59: | Line 64: | ||
justify-content: center; | justify-content: center; | ||
flex: 1; | flex: 1; | ||
{{#ifexpr: {{#var:prevCount|0}} <= 0 | visibility: hidden; |}} | |||
background-color: {{{ColorFg|#b3dfef}}}; | background-color: {{{ColorFg|#b3dfef}}}; | ||
border-top-right-radius: 10px; | border-top-right-radius: 10px; |
Revision as of 07:47, 16 October 2021
: