Template:Fsl top menu: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__<!-- Setup variables from arguments | __NOTOC__<!-- Setup variables from arguments | ||
-->{{#vardefine: menu_items | {{{menu_items | 7 }}} }}<!-- | -->{{#vardefine: menu_items | {{{menu_items | 7 }}} }}<!-- | ||
-->{{#vardefine: menu_width | {{{menu_width | 1150 }}} }}<!-- | |||
-->{{#vardefine: menu_width | {{{menu_width | | |||
-->{{#vardefine: home_page | {{{home_page | {{BASEPAGENAME}} }}} }}<!-- | -->{{#vardefine: home_page | {{{home_page | {{BASEPAGENAME}} }}} }}<!-- | ||
-->{{#vardefine: home_title | {{{home_title | Home }}} }}<!-- | -->{{#vardefine: home_title | {{{home_title | Home }}} }}<!-- | ||
-->{{#vardefine: page2 | {{{page2 | {{#var: home_page}}/ | -->{{#vardefine: page2 | {{{page2 | {{#var: home_page}}/Classes }}} }}<!-- | ||
-->{{#vardefine: page2_title | {{{page2_title | | -->{{#vardefine: page2_title | {{{page2_title | Classes }}} }}<!-- | ||
-->{{#vardefine: page3 | {{{page3 | {{#var: home_page}}/ | -->{{#vardefine: page3 | {{{page3 | {{#var: home_page}}/Consultation }}} }}<!-- | ||
-->{{#vardefine: page3_title | {{{page3_title | | -->{{#vardefine: page3_title | {{{page3_title | Consultation }}} }}<!-- | ||
-->{{#vardefine: page4 | {{{page4 | {{#var: home_page}}/ | -->{{#vardefine: page4 | {{{page4 | {{#var: home_page}}/Events }}} }}<!-- | ||
-->{{#vardefine: page4_title | {{{page4_title | | -->{{#vardefine: page4_title | {{{page4_title | Events }}} }}<!-- | ||
-->{{#vardefine: page5 | {{{page5 | {{#var: home_page}}/ | -->{{#vardefine: page5 | {{{page5 | {{#var: home_page}}/Navigating }}} }}<!-- | ||
-->{{#vardefine: page5_title | {{{page5_title | | -->{{#vardefine: page5_title | {{{page5_title | Navigating }}} }}<!-- | ||
-->{{#vardefine: page6 | {{{page6 | {{#var: home_page}}/ | -->{{#vardefine: page6 | {{{page6 | {{#var: home_page}}/Collections }}} }}<!-- | ||
-->{{#vardefine: page6_title | {{{page6_title | | -->{{#vardefine: page6_title | {{{page6_title | Collections }}} }}<!-- | ||
-->{{#vardefine: page7 | {{{page7 | {{#var: home_page}}/ | -->{{#vardefine: page7 | {{{page7 | {{#var: home_page}}/Volunteers }}} }}<!-- | ||
-->{{#vardefine: page7_title | {{{page7_title | | -->{{#vardefine: page7_title | {{{page7_title | Volunteers }}} }}<!-- | ||
-->{{#vardefine: page8 | {{{page8 | {{#var: home_page}}/Reservations }}} }}<!-- | |||
-->{{#vardefine: page8_title | {{{page8_title | Reservations }}} }}<!-- | |||
-->{{#vardefine: menu_color | {{{menu_color | 87b940}}} }}<!-- | -->{{#vardefine: menu_color | {{{menu_color | 87b940}}} }}<!-- | ||
-->{{#vardefine: menu_select_color | {{{menu_select_color | 996799}}} }}<!-- | -->{{#vardefine: menu_select_color | {{{menu_select_color | 996799}}} }}<!-- | ||
Calculated values | Calculated values | ||
-->{{#vardefine: menu_item_width | -->{{#vardefine: menu_item_width {{{menu_item_width | 130 }}}<!-- | ||
Menu Table | Menu Table | ||
--> | -->{| class="wikitable" | ||
{| class="wikitable" | |||
|- | |- | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 1 | {{#var: menu_select_color}} | {{#var: menu_color}} }} | ! style="color: white; font-size:18px; background-color: #{{#ifeq: {{{menu}}} | 1 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; height: 50pt; width: {{#var: menu_item_width}}pt; border-right:1px solid white" | [[{{#var: home_page}}|<span style="color:white;"><b>{{#var: home_title}}</span>]] | ||
! style="background-color:#{{#ifeq: {{{menu}}} | 2 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color:#{{#ifeq: {{{menu}}} | 2 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var:page2}}|<span style="color:white;">{{#var: page2_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 3 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color: #{{#ifeq: {{{menu}}} | 3 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var: page3}}|<span style="color:white;">{{#var: page3_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 4 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color: #{{#ifeq: {{{menu}}} | 4 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var: page4}}|<span style="color:white;">{{#var: page4_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 5 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color: #{{#ifeq: {{{menu}}} | 5 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var: page5}}|<span style="color:white;">{{#var: page5_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 6 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color: #{{#ifeq: {{{menu}}} | 6 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var: page6}}|<span style="color:white;">{{#var: page6_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 7 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size: | ! style="background-color: #{{#ifeq: {{{menu}}} | 7 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt; border-right:1px solid white" |[[{{#var: page7}}|<span style="color:white;">{{#var: page7_title}}</span>]] | ||
! style="background-color: #{{#ifeq: {{{menu}}} | 8 | {{#var: menu_select_color}} | {{#var: menu_color}} }}; color: white; font-size:18px; width: {{#var: menu_item_width}}pt" |[[{{#var: page8}}|<span style="color:white;">{{#var: page8_title}}</span>]] | |||
|- | |- | ||
|} | |} | ||
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>[[Category:Templates]]</noinclude> |
Revision as of 17:08, 20 June 2021
{{#vardefine: menu_item_width 130 {| class="wikitable" |- ! style="color: white; font-size:18px; background-color: #87b940; height: 50pt; width: pt; border-right:1px solid white" | Home ! style="background-color:#87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Classes ! style="background-color: #87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Consultation ! style="background-color: #87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Events ! style="background-color: #87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Navigating ! style="background-color: #87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Collections ! style="background-color: #87b940; color: white; font-size:18px; width: pt; border-right:1px solid white" |Volunteers ! style="background-color: #87b940; color: white; font-size:18px; width: pt" |Reservations |- |}