Template:Tabs: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Support for colors)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


<!-- Tab 1 --><!--
<!-- Tab 1 --><!--
-->{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em; white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|1={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|1=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab1}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em; white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|1={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|1=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab1}}}<!--


--><!-- Tab 2 --><!--
--><!-- Tab 2 --><!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|2={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|2=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab2}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|2={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|2=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab2}}}<!--


--><!-- Tab 3 --><!--
--><!-- Tab 3 --><!--
-->{{#if:{{{tab3|}}}|<!--
-->{{#if:{{{tab3|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|3={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|3=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab3}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|3={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|3=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab3}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 4 --><!--
--><!-- Tab 4 --><!--
-->{{#if:{{{tab4|}}}|<!--
-->{{#if:{{{tab4|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|4={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|4=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab4}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|4={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|4=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab4}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 5 --><!--
--><!-- Tab 5 --><!--
-->{{#if:{{{tab5|}}}|<!--
-->{{#if:{{{tab5|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|5={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|5=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab5}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|5={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|5=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab5}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 6 --><!--
--><!-- Tab 6 --><!--
-->{{#if:{{{tab6|}}}|<!--
-->{{#if:{{{tab6|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|6={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|6=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab6}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|6={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|6=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab6}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 7 --><!--
--><!-- Tab 7 --><!--
-->{{#if:{{{tab7|}}}|<!--
-->{{#if:{{{tab7|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|7={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|7=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab7}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|7={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|7=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab7}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 8 --><!--
--><!-- Tab 8 --><!--
-->{{#if:{{{tab8|}}}|<!--
-->{{#if:{{{tab8|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|8={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|8=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab8}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|8={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|8=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab8}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 9 --><!--
--><!-- Tab 9 --><!--
-->{{#if:{{{tab9|}}}|<!--
-->{{#if:{{{tab9|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|9={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|9=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab9}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|9={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|9=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab9}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 10 --><!--
--><!-- Tab 10 --><!--
-->{{#if:{{{tab10|}}}|<!--
-->{{#if:{{{tab10|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|10={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|10=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab10}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|10={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|10=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab10}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 11 --><!--
--><!-- Tab 11 --><!--
-->{{#if:{{{tab11|}}}|<!--
-->{{#if:{{{tab11|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|11={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|11=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab11}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|11={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|11=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab11}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 12 --><!--
--><!-- Tab 12 --><!--
-->{{#if:{{{tab12|}}}|<!--
-->{{#if:{{{tab12|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|12={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|12=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab12}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|12={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|12=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab12}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 13 --><!--
--><!-- Tab 13 --><!--
-->{{#if:{{{tab13|}}}|<!--
-->{{#if:{{{tab13|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|13={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|13=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab13}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|13={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|13=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab13}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 14 --><!--
--><!-- Tab 14 --><!--
-->{{#if:{{{tab14|}}}|<!--
-->{{#if:{{{tab14|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|14={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|14=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab14}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|14={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|14=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab14}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 15 --><!--
--><!-- Tab 15 --><!--
-->{{#if:{{{tab15|}}}|<!--
-->{{#if:{{{tab15|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|15={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|15=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab15}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|15={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|15=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab15}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 16 --><!--
--><!-- Tab 16 --><!--
-->{{#if:{{{tab16|}}}|<!--
-->{{#if:{{{tab16|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|16={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|16=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab16}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|16={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|16=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab16}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 17 --><!--
--><!-- Tab 17 --><!--
-->{{#if:{{{tab17|}}}|<!--
-->{{#if:{{{tab17|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|17={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|17=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab17}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|17={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|17=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab17}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 18 --><!--
--><!-- Tab 18 --><!--
-->{{#if:{{{tab18|}}}|<!--
-->{{#if:{{{tab18|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|18={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|18=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab18}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|18={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|18=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab18}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 19 --><!--
--><!-- Tab 19 --><!--
-->{{#if:{{{tab19|}}}|<!--
-->{{#if:{{{tab19|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|19={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|19=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab19}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|19={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|19=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab19}}}<!--
-->}}<!--
-->}}<!--


--><!-- Tab 20 --><!--
--><!-- Tab 20 --><!--
-->{{#if:{{{tab20|}}}|<!--
-->{{#if:{{{tab20|}}}|<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|20={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|20=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab20}}}<!--
-->{{!}}{{!}} style="padding:0.5em 1em 0.5em 1em;  white-space:nowrap; background-color:#{{#switch:{{{this-tab}}}|20={{{color2|d8e9fc}}}|#default={{{color1|f2f5fd}}}}}; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}; {{#switch:{{{this-tab}}}|20=font-weight:bold|#default=line-height:0.95em; font-size:90%}}" {{!}} {{{tab20}}}<!--
-->}}<!--
-->}}<!--


-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:3px; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:100%; border-bottom:2px solid {{{col-border|#{{{color2|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->{{!}}{{!}} style="width:100%; border-bottom:2px solid {{{col-border|#{{{color3|d8e9fc}}}}}}" {{!}} &nbsp;<!--
-->
-->
|}{{-}}<noinclude>[[Category:Code templates]]{{Tabs/doc}}</noinclude>
|}<noinclude>{{-}}[[Category:Code templates]]{{Tabs/doc}}</noinclude>

Latest revision as of 13:45, 21 March 2017

  {{{tab1}}}   {{{tab2}}}    


The Tabs template is used to add tabs in user and user talk pages.

Usage

{{tabs
|this-tab   = n
|tab1       = [[Link 1|Tab 1]]
|tab2       = [[Link 2|Tab 2]]
|tab3       = [[Link 3|Tab 3]]
.
.
|tab20       = [[Tab 20|Tab 20]]
|color1=Non-Highlighted Tab Color
|color2=Highlighted Tab Color
|color3=Border Line Color
}}

Notes:

  • this-tab is optional. It determines which tab to activate or highlight.
  • tab1 and tab2 are mandatory parameters.
  • Currently, the maximum number of tabs is 20.

Examples

No tabs highlighted

{{tabs
|tab1       = [[User:Example|Tab 1]]
|tab2       = [[User:Example|Tab 2]]
|tab3       = [[User:Example|Tab 3]]
}}

gives:

  Tab 1   Tab 2   Tab 3    


Second tab highlighted

{{tabs
|this-tab   = 2
|tab1       = [[User:Example|Tab 1]]
|tab2       = [[User:Example|Tab 2]]
|tab3       = [[User:Example|Tab 3]]
}}

gives:

  Tab 1   Tab 2   Tab 3    


Multiple tabs

{{tabs
|this-tab   = 4
|tab1       = [[User:Example|Tab 1]]
|tab2       = [[User:Example|Tab 2]]
|tab3       = [[User:Example|Tab 3]]
|tab4       = [[User:Example|Tab 4]]
|tab5       = [[User:Example|Tab 5]]
|tab6       = [[User:Example|Tab 6]]
|tab7       = [[User:Example|Tab 7]]
|tab8       = [[User:Example|Tab 8]]
}}

gives:

  Tab 1   Tab 2   Tab 3   Tab 4   Tab 5   Tab 6   Tab 7   Tab 8