Template:CatWeightTable: Difference between revisions

m
New explicit (unelegant) code, hopefully works better (1st version)
m (Last compact (elegant) old version, alas with massive layout issues.)
m (New explicit (unelegant) code, hopefully works better (1st version))
Line 7: Line 7:
  | 6 = ::::::
  | 6 = ::::::
  |
  |
}}{{{!}} style="background:#{{#switch: {{{2}}}
}}{{#if: {{{4|}}} | {{{!}} style="background:#FAF0FF; border:1px solid #DFC8EC; font-size:90%;"
| yellow
| onoff = FFFFEF
| red
| worstcase = FFEFEF
| green
| amount = EFFFEF
| blue = EFEFFF
| purple
| misc
| FAF0FF
}}; border:1px solid #{{#switch: {{{2}}}
| yellow
| onoff = CCCCA3
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; font-size:90%;"
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{3}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{4}}}''
| onoff = CCCCA3
{{!}}} }}
| red
{{#if: {{{6|}}} | {{{!}} style="background:#FAF0FF; border:1px solid #DFC8EC; font-size:90%;"
| worstcase = CCA3A3
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
| green
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{3}}}</tt></span>
| amount = A3CCA3
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{4}}}''
| blue = A3A3CC
{{!}}-
| purple
{{!}} style="" {{!}} &nbsp;
| misc
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{5}}}</tt></span>
| DFC8EC
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{6}}}''
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{3}}}
{{!}}} }}
| 1 = +&nbsp;&nbsp;
{{#if: {{{8|}}} | {{{!}} style="background:#FAF0FF; border:1px solid #DFC8EC; font-size:90%;"
| 2 = &#42;&nbsp;&nbsp;
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
| 3 = &#42;+&nbsp;
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{3}}}</tt></span>
| 4 = &#42;&#42;&nbsp;
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{4}}}''
| 5 = &#42;&#42;+
{{!}}-
| 6 = &#42;&#42;&#42;
{{!}} style="" {{!}} &nbsp;
| 1-5 = + to &#42;&#42;+
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{5}}}</tt></span>
| 1-6 = + to &#42;&#42;&#42;
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{6}}}''
| &nbsp;&nbsp;&nbsp;
{{!}}-
}}</tt></span>
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{7}}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{8}}}''
{{!}}} }}
{{#if: {{{14|}}} | {{{!}} style="background:#FAF0FF; border:1px solid #DFC8EC; font-size:90%;"
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{3}}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{4}}}''
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{4}}}''
{{#if: {{{6|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{5}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{6}}}''
| onoff = CCCCA3
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{5}}}
| 1 = +&nbsp;&nbsp;
| 2 = &#42;&nbsp;&nbsp;
| 3 = &#42;+&nbsp;
| 4 = &#42;&#42;&nbsp;
| 5 = &#42;&#42;+
| 6 = &#42;&#42;&#42;
| 1-5 = + to &#42;&#42;+
| 1-6 = + to &#42;&#42;&#42;
| &nbsp;&nbsp;&nbsp;
}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{6}}}'' }}
{{#if: {{{8|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{7}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{8}}}''
| onoff = CCCCA3
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{7}}}
| 1 = +&nbsp;&nbsp;
| 2 = &#42;&nbsp;&nbsp;
| 3 = &#42;+&nbsp;
| 4 = &#42;&#42;&nbsp;
| 5 = &#42;&#42;+
| 6 = &#42;&#42;&#42;
| 1-5 = + to &#42;&#42;+
| 1-6 = + to &#42;&#42;&#42;
| &nbsp;&nbsp;&nbsp;
}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{8}}}'' }}
{{#if: {{{10|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{9}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{10}}}''
| onoff = CCCCA3
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{9}}}
| 1 = +&nbsp;&nbsp;
| 2 = &#42;&nbsp;&nbsp;
| 3 = &#42;+&nbsp;
| 4 = &#42;&#42;&nbsp;
| 5 = &#42;&#42;+
| 6 = &#42;&#42;&#42;
| 1-5 = + to &#42;&#42;+
| 1-6 = + to &#42;&#42;&#42;
| &nbsp;&nbsp;&nbsp;
}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{10}}}'' }}
{{#if: {{{12|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{11}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{12}}}''
| onoff = CCCCA3
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{11}}}
| 1 = +&nbsp;&nbsp;
| 2 = &#42;&nbsp;&nbsp;
| 3 = &#42;+&nbsp;
| 4 = &#42;&#42;&nbsp;
| 5 = &#42;&#42;+
| 6 = &#42;&#42;&#42;
| 1-5 = + to &#42;&#42;+
| 1-6 = + to &#42;&#42;&#42;
| &nbsp;&nbsp;&nbsp;
}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{12}}}'' }}
{{#if: {{{14|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#DFC8EC; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{{13}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{14}}}''
| onoff = CCCCA3
{{!}}} }}<noinclude>{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>
| red
| worstcase = CCA3A3
| green
| amount = A3CCA3
| blue = A3A3CC
| purple
| misc
| DFC8EC
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{13}}}
| 1 = +&nbsp;&nbsp;
| 2 = &#42;&nbsp;&nbsp;
| 3 = &#42;+&nbsp;
| 4 = &#42;&#42;&nbsp;
| 5 = &#42;&#42;+
| 6 = &#42;&#42;&#42;
| 1-5 = + to &#42;&#42;+
| 1-6 = + to &#42;&#42;&#42;
| &nbsp;&nbsp;&nbsp;
}}</tt></span>
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{14}}}'' }}
{{!}}}<noinclude>{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.