ElEditors, Interface administrators, Administrators
70,975
edits
mNo edit summary |
(Changed to match new Elwiki's theme) |
||
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<div style=" | <div style=" | ||
display: flex; | display: flex; | ||
background-color: #0091cb; | background-color: {{{ColorBg|#0091cb}}}; | ||
border: 3px solid | border: 3px solid {{{ColorBorder|transparent}}}; | ||
padding: 3px; | padding: 3px; | ||
border-radius: | border-radius: 4px; | ||
align-items: stretch;"> | align-items: stretch;"><!-- | ||
<div style=" | -->{{#vardefine:prevCount | 0}}{{#forargs:PrevName | ||
| key | |||
| value | |||
| {{#vardefine:prevCount | {{#expr:{{#var:prevCount}} + 1}}}} | |||
}}<!-- | |||
-->{{#vardefine:nextCount | 0}}{{#forargs:NextName | |||
| key | |||
| value | |||
| {{#vardefine:nextCount | {{#expr:{{#var:nextCount}} + 1}}}} | |||
}}<!-- | |||
--><div style=" | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; | ||
flex: 1; | flex: 1; | ||
background-color: #b3dfef; | {{#ifexpr: {{#var:prevCount|0}} <= 0 | visibility: hidden; |}} | ||
border-top-left-radius: | background-color: {{{ColorFg|#b3dfef}}}; | ||
border-bottom-left-radius: | border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; | |||
padding: .2rem .5rem; | padding: .2rem .5rem; | ||
color: {{{ColorFgText|#fff}}};"><!-- | |||
-->{{#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}}|}}}|<font color="{{{ColorFgText|#fff}}}">{{{TextPrev|←}}}</font>]] | |||
| {{{TextPrev|←}}} | |||
}}<!-- | |||
--></div> | |||
<div style="flex: auto; text-align: right;"><!-- | <div style="flex: auto; text-align: right;"><!-- | ||
-->{{#if:{{{ | --><i>{{{PrevNum{{#var:key}}|}}}{{{TextColon|:}}}{{#if:{{{PrevLink{{#var:key}}|}}} | ||
| [[{{{ | | [[{{{PrevLink{{#var:key}}|}}}|<font color="{{{ColorFgText|#fff}}}">{{#var:value}}</font>]] | ||
| | | {{#var:value}} | ||
}}<!-- | }}</i><!-- | ||
--></div> | --></div> | ||
</div> | </div> | ||
Line 35: | Line 51: | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: center; | justify-content: center; | ||
flex: | flex: 1; | ||
background-color: {{{ColorBg|#0091cb}}}; | |||
background-color: #0091cb; | |||
padding: .2rem .5rem; | padding: .2rem .5rem; | ||
text-align: center; | text-align: center; | ||
color: {{{ColorBgText|#fff}}};"><!-- | |||
<b>{{{ | --><b>{{#if:{{{CurLink|}}} | ||
</div> | | [[{{{CurLink|}}}|<font color="{{{ColorBgText|#fff}}}">{{{CurName|}}}</font>]] | ||
| {{{CurNum|}}}{{{TextColon|:}}}{{{CurName|}}} | |||
}}</b><!-- | |||
--></div> | |||
<div style=" | <div style=" | ||
display: flex; | display: flex; | ||
Line 48: | Line 66: | ||
justify-content: center; | justify-content: center; | ||
flex: 1; | flex: 1; | ||
background-color: #b3dfef; | {{#ifexpr: {{#var:nextCount|0}} <= 0 | visibility: hidden; |}} | ||
border-top-right-radius: | background-color: {{{ColorFg|#b3dfef}}}; | ||
border-bottom-right-radius: | border-top-right-radius: 4px; | ||
padding: .2rem .5rem;"><!-- | border-bottom-right-radius: 4px; | ||
-->{{#forargs: | padding: .2rem .5rem; | ||
color: {{{ColorFgText|#fff}}};"><!-- | |||
-->{{#forargs: NextName | |||
| key | | key | ||
| value | | value | ||
Line 58: | Line 78: | ||
<div style="display: flex;"> | <div style="display: flex;"> | ||
<div style="flex: auto; text-align: left;"><!-- | <div style="flex: auto; text-align: left;"><!-- | ||
-->{{#if:{{{ | --><i>{{{NextNum{{#var:key}}|}}}{{{TextColon|:}}}{{#if:{{{NextLink{{#var:key}}|}}} | ||
| [[{{{ | | [[{{{NextLink{{#var:key}}|}}}|<font color="{{{ColorFgText|#fff}}}">{{#var:value}}</font>]] | ||
| | | {{#var:value}} | ||
}}</i><!-- | |||
--></div> | |||
<div style="flex: none; min-width: 2rem; max-width: 2rem; text-align: right;"><!-- | |||
-->{{#if:{{{NextLink{{#var:key}}|}}} | |||
| [[{{{NextLink{{#var:key}}|}}}|<font color="{{{ColorFgText|#fff}}}">{{{TextNext|→}}}</font>]] | |||
| {{{TextNext|→}}} | |||
}}<!-- | }}<!-- | ||
--></div> | --></div> | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
--></div> | --></div> | ||
</div> | </div> |