Difference between revisions of "Template:Tab bar"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Testing)
Line 1: Line 1:
{| class="plainlinks nowrap" style="width:{{{width|auto}}}; float:right;"
+
{| class="plainlinks nowrap" style="width:100%; margin-bottom:8px;"
  +
|-
|- class="tabbar-red"
 
  +
! style="{{#ifeq:{{{current|}}}|{{{link1}}}|background:#{{#switch:{{{color|green}}}|red=eddede|green=deede6|blue=dee7ed}}; color:#000000; border:1px #fff solid;|background:#{{#switch:{{{color|green}}}|red=570f0f|green=0f5733|blue=13476c}}; color:#ffffff;}} padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; padding-right:0.5em; line-height:1.5em;" class="arrowbutton-{{{color|green}}}" {{!}} [[{{{link1}}}|{{{text1}}}]]
! style="width:8px; background:#990000;" |
+
| style="width:8px;" |
| style="padding:5px 10px 5px 10px;" | '''[[{{{link1}}}|{{{label1}}} »]]'''
 
  +
! style="{{#ifeq:{{{current|}}}|{{{link2}}}|background:#{{#switch:{{{color|green}}}|red=eddede|green=deede6|blue=dee7ed}}; color:#000000; border:1px #fff solid;|background:#{{#switch:{{{color|green}}}|red=570f0f|green=0f5733|blue=13476c}}; color:#ffffff;}} padding-top:0.3em; padding-bottom:0.3em; padding-left:0.5em; padding-right:0.5em; line-height:1.5em;" class="arrowbutton-{{{color|green}}}" {{!}} [[{{{link2}}}|{{{text2}}}]]
|- class="tabbar-green"
 
{{#if:{{{link2|}}}|
 
! style="width:8px; background:#339966;" {{!}}
 
{{!}} style="padding:5px 10px 5px 10px;" {{!}} '''[[{{{link2}}}|{{{label2}}} »]]'''
 
}}
 
|- class="tabbar-blue"
 
{{#if:{{{link3|}}}|
 
! style="width:8px; background:#A7D7F9;" {{!}}
 
{{!}} style="padding:5px 10px 5px 10px;" {{!}} '''[[{{{link3}}}|{{{label3}}} »]]'''
 
}}
 
|- class="tabbar-gray"
 
{{#if:{{{link3|}}}|
 
! style="width:8px; background:#666666;" {{!}}
 
{{!}} style="padding:5px 10px 5px 10px;" {{!}} '''[[{{{link4}}}|{{{label4}}} »]]'''
 
}}
 
 
|}<noinclude>[[Category:Visual identity templates]]</noinclude>
 
|}<noinclude>[[Category:Visual identity templates]]</noinclude>

Revision as of 00:10, 7 June 2014