Difference between revisions of "Template:RBE10K TableRows"

From MediaWiki
Jump to: navigation, search
Line 1: Line 1:
{| style="margin: 0px auto; border: 1px solid #{{{linecolour|000}}}; padding: 0; border-collapse: separate; border-spacing: 0; border-top: 0px; " width="99%"
+
{{#css:Template:RBE10K TableRows/css}}<includeonly>
|- style="vertical-align:top; "
+
{{#css:
|      width="{{#if: {{{widths|}}} | {{#explode:{{{widths}}} | | 0 }} | {{#switch: {{paramcount|x|x|{{{3|}}}|{{{4|}}}|{{{5|}}} }}|2=20|3=15|4=12|5=10}}  
+
}}%"  style="padding: 2px 3px; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px 1px 0 0; border-color: #{{{linecolour|000}}}; background-color: #{{{bgcolour1|bbbbff}}};" {{{!
+
}}  {{#if:{{{header|}}}|'''''{{{1|}}}'''''|{{{1|}}}}}
+
| style="padding: 2px 3px; width: {{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |1}}|{{#switch:{{paramcount|x|x|{{{3|}}}|{{{4|}}}|{{{5|}}}}}|2=80|3={{#if:{{{4|}}}|70|15}}|4=12|5=10}}}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{3|}}}|{{{3|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};" | {{#if:{{{header|}}}|'''''{{{2|}}}'''''|{{{2|}}}}}
+
| style="{{#ifeq:{{{3|}}}|{{{3|-}}}|padding: 2px 3px; width: {{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |2}}|{{#switch:{{paramcount|x|x|x|{{{4|}}}|{{{5|}}}}}|3=70|4={{#if:{{{5|}}}|64|12}}|5=10}}}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{4|}}}|{{{4|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{3|}}} | {{#if:{{{header|}}}|'''''{{{3|}}}'''''|{{{3|}}}}} }}
+
| style="{{#ifeq:{{{4|}}}|{{{4|-}}}|padding: 2px 3px; width: {{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |3}}|{{#switch:{{paramcount|x|x|x|x|{{{5|}}}}}|4=64|5=10}}}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{5|}}}|{{{5|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{4|}}} | {{#if:{{{header|}}}|'''''{{{4|}}}'''''|{{{4|}}}}} }}
+
| style="{{#ifeq:{{{5|}}}|{{{5|-}}}|padding: 2px 3px; width: {{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |4}}|60}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{6|}}}|{{{6|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{5|}}} | {{#if:{{{header|}}}|'''''{{{5|}}}'''''|{{{5|}}}}} }}
+
| style="{{#ifeq:{{{6|}}}|{{{6|-}}}|padding: 2px 3px; width: {{#explode:{{{widths}}}| |5}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{7|}}}|{{{7|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{6|}}} | {{#if:{{{header|}}}|'''''{{{6|}}}'''''|{{{6|}}}}} }}
+
| style="{{#ifeq:{{{7|}}}|{{{7|-}}}|padding: 2px 3px; width: {{#explode:{{{widths}}}| |6}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{8|}}}|{{{8|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{7|}}} | {{#if:{{{header|}}}|'''''{{{7|}}}'''''|{{{7|}}}}} }}
+
| style="{{#ifeq:{{{8|}}}|{{{8|-}}}|padding: 2px 3px; width: {{#explode:{{{widths}}}| |7}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px {{#ifeq:{{{9|}}}|{{{9|-}}}|1|0}}px 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{8|}}} | {{#if:{{{header|}}}|'''''{{{8|}}}'''''|{{{8|}}}}} }}
+
| style="{{#ifeq:{{{9|}}}|{{{9|-}}}|padding: 2px 3px; width: {{#explode:{{{widths}}}| |8}}%; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px 0 0 0; border-color: #{{{linecolour|000}}};|display:none;}}" | {{#if:{{{9|}}} | {{#if:{{{header|}}}|'''''{{{9|}}}'''''|{{{9|}}}}} }}
+
|}<noinclude>
+
<!--
+
  
|-
+
  .col1 {width:{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |0}}|{{#switch:{{paramcount|x|x|{{{3|}}}|{{{4|}}}|{{{5|}}}}}|2=20|3=15|4=12|5=10}}}}%; }
| width="{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |0}}|{{#switch:{{paramcount|x|x|{{{3|}}}|{{{4|}}}|{{{5|}}}}}|2=20|3=15|4=12|5=10}}}}%" style="padding: 2px 3px; border-style: solid; border-width: {{#if:{{{header|}}}|1|0}}px 1px 0 0; border-color: #{{{linecolour|000}}}; background-color: #{{{bgcolour1|bbbbff}}};" | {{#if:{{{header|}}}|'''''{{{1|}}}'''''|{{{1|}}}}}
+
.col2 {width:{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |1}}|{{#switch:{{paramcount|x|x|{{{3|}}}|{{{4|}}}|{{{5|}}}}}|2=80|3={{#if:{{{4|}}}|70|15}}|4=12|5=10}}}}%; }
 +
.col3 {width:{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |2}}|{{#switch:{{paramcount|x|x|x|{{{4|}}}|{{{5|}}}}}|3=70|4={{#if:{{{5|}}}|64|12}}|5=10}}}}%; }
 +
.col4 {width:{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |3}}|{{#switch:{{paramcount|x|x|x|x|{{{5|}}}}}|4=64|5=10}}}}%; }
 +
.col5 {width:{{#if:{{{widths|}}}|{{#explode:{{{widths}}}| |4}}|60}}%; }
 +
.col6 {width:{{#explode:{{{widths}}}| |5}}%; }
 +
.col7 {width:{{#explode:{{{widths}}}| |6}}%; }
 +
.col8 {width:{{#explode:{{{widths}}}| |7}}%; }
 +
.col9 {width:{{#explode:{{{widths}}}| |8}}%; }
  
 
+
}}<div class="cols">
{{ifnotempty|x|{{!}}- style="vertical-align:top; "
+
    <div class="row{{#if:{{{header|}}}|1|n}}f col1">{{#if:{{{header|}}}|'''''{{{1|}}}'''''|{{{1|}}}}}</div>
{{!}}a
+
    <div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{3|}}}|{{{3|-}}}|m|l}} col2">{{#if:{{{header|}}}|'''''{{{2|}}}'''''|{{{2|}}}}}</div>
}}{{ifnotempty||{{!}}-
+
{{#ifeq:{{{3|}}}|{{{3|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{4|}}}|{{{4|-}}}|m|l}} col3">{{#if:{{{header|}}}|'''''{{{3|}}}'''''|{{{3|}}}}}</div>|
{{!}}b
+
}}{{#ifeq:{{{4|}}}|{{{4|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{5|}}}|{{{5|-}}}|m|l}} col4">{{#if:{{{header|}}}|'''''{{{4|}}}'''''|{{{4|}}}}}</div>|
}}{{ifnotempty||{{!}}-
+
}}{{#ifeq:{{{5|}}}|{{{5|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{6|}}}|{{{6|-}}}|m|l}} col5">{{#if:{{{header|}}}|'''''{{{5|}}}'''''|{{{5|}}}}}</div>|
{{!}}c
+
}}{{#ifeq:{{{6|}}}|{{{6|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{7|}}}|{{{7|-}}}|m|l}} col6">{{#if:{{{header|}}}|'''''{{{6|}}}'''''|{{{6|}}}}}</div>|
}}{{ifnotempty||{{!}}-
+
}}{{#ifeq:{{{7|}}}|{{{7|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{8|}}}|{{{8|-}}}|m|l}} col7">{{#if:{{{header|}}}|'''''{{{7|}}}'''''|{{{7|}}}}}</div>|
{{!}}d
+
}}{{#ifeq:{{{8|}}}|{{{8|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}{{#ifeq:{{{9|}}}|{{{9|-}}}|m|l}} col8">{{#if:{{{header|}}}|'''''{{{8|}}}'''''|{{{8|}}}}}</div>|
}}{{ifnotempty|x|{{!}}-
+
}}{{#ifeq:{{{9|}}}|{{{9|-}}}|<div class="row{{#if:{{{header|}}}|1|n}}l col9">{{#if:{{{header|}}}|'''''{{{9|}}}'''''|{{{9|}}}}}</div>|
{{!}}e
+
}}</div>
}}
+
</includeonly><noinclude><!-- To implement later: border-color: #{{{linecolour|000}}}; background-color: #{{{bgcolour|bbbbff}}}; -->
 
+
<div class="cols">
-->
+
    <div class="row1f col1">'''''header'''''</div>
</noinclude>
+
    <div class="row1m col2">'''''widths'''''</div>
 +
    <div class="row1m col3">'''''linecolour '''''</div>
 +
    <div class="row1l col4">'''''bgcolour'''''</div>
 +
</div>
 +
<div class="cols">
 +
    <div class="rownf col1">Any value for header row</div>
 +
    <div class="rownm col2">List of percent widths separated by spaces (just the numbers without the % symbol)</div>
 +
    <div class="rownm col3">Colour of the lines</div>
 +
    <div class="rownl col4">Background colour of the first row</div>
 +
</div></noinclude>

Revision as of 09:31, 6 March 2013

{{#css:Template:RBE10K TableRows/css}}

header
widths
linecolour
bgcolour
Any value for header row
List of percent widths separated by spaces (just the numbers without the % symbol)
Colour of the lines
Background colour of the first row
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox