Template:CatWeightTable: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
m (Rewritten code v2... should now work properly.)
Line 1: Line 1:
{{#switch: {{{1}}}
{{indent|{{{1}}}}}{{#if: {{{14|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
| 1 = :
| 2 = ::
| 3 = :::
| 4 = ::::
| 5 = :::::
| 6 = ::::::
|
}}{{{!}} style="background:#{{#switch: {{{2}}}
| 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:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
| 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: {{{3}}}
| 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;" {{!}} ''{{{4}}}''  
{{#if: {{{6|}}} |
{{!}}-
{{!}}-
{{!}} style="" {{!}} &nbsp;
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{5}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{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="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{7}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{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="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{9}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{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="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{11}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{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="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{#switch: {{{2}}}
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{13}}}}}</tt></span>
| yellow
{{!}} style="padding:2px 8px;" {{!}} ''{{{14}}}''
| onoff = CCCCA3
{{!}}} | {{#if: {{{12|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
| red
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
| worstcase = CCA3A3
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
| green
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
| amount = A3CCA3
{{!}}-
| blue = A3A3CC
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
| purple
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{5}}}}}</tt></span>
| misc
{{!}} style="padding:2px 8px;" {{!}} ''{{{6}}}''
| DFC8EC
{{!}}-
}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{13}}}
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
| 1 = +&nbsp;&nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{7}}}}}</tt></span>
| 2 = &#42;&nbsp;&nbsp;
{{!}} style="padding:2px 8px;" {{!}} ''{{{8}}}''
| 3 = &#42;+&nbsp;
{{!}}-
| 4 = &#42;&#42;&nbsp;
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
| 5 = &#42;&#42;+
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{9}}}}}</tt></span>
| 6 = &#42;&#42;&#42;
{{!}} style="padding:2px 8px;" {{!}} ''{{{10}}}''
| 1-5 = + to &#42;&#42;+
{{!}}-
| 1-6 = + to &#42;&#42;&#42;
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
| &nbsp;&nbsp;&nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{11}}}}}</tt></span>
}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{12}}}''
{{!}} style="padding:2px 8px; vertical-align:center;" {{!}} ''{{{14}}}'' }}
{{!}}} | {{#if: {{{10|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
{{!}}}<noinclude>{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{5}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{6}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{7}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{8}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{9}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{10}}}''
{{!}}} | {{#if: {{{8|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{5}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{6}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{7}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{8}}}''
{{!}}} | {{#if: {{{6|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
{{!}}-
{{!}} style="padding:2px 8px;" {{!}} &nbsp;
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{5}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{6}}}''
{{!}}} | {{#if: {{{4|}}} | {{{!}} style="background:#{{CatWcolBackground|{{{2}}}}}; border:1px solid #{{CatWcolFrame|{{{2}}}}}; font-size:90%;"
{{!}} style="background:black; padding:2px 8px;" {{!}} <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
{{!}} style="background:#{{CatWcolFrame|{{{2}}}}}; padding:2px 8px;" {{!}} <span style="color:black; font-weight:bold;"><tt>{{CatWweight|{{{3}}}}}</tt></span>
{{!}} style="padding:2px 8px;" {{!}} ''{{{4}}}''
{{!}}} }} }} }} }} }} }}<noinclude>{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>

Revision as of 12:47, 4 May 2009