Template:CatWeightTable: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
<includeonly>{{#if: {{{14|}}} | {{indent|{{{1}}}}}{{{!}} 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|}}} | {{indent|{{{1}}}}}{{{!}} 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|}}} | {{indent|{{{1}}}}}{{{!}} 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|}}} | {{indent|{{{1}}}}}{{{!}} 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|}}} | {{indent|{{{1}}}}}{{{!}} 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|}}} | {{indent|{{{1}}}}}{{{!}} 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}}}''
{{!}}} }} }} }} }} }} }}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight]]</noinclude>

Latest revision as of 21:51, 5 May 2009

This template lets you create a category weight table with one to six rows, letting the user go into as much ranking detail as he chooses.

Features Indentation, colour, one to six text rows.

Syntax

The template can have 4 to 14 parameters:

  1. {{catWeightTable|<#>|<colour>|<weight>|<text>}} - 1 row table!
  2. {{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>}} - 2 row table!
  3. {{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>}} - 3 row table!
  4. {{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}} - 4 row table!
  5. {{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}} - 5 row table!
  6. {{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}} - 6 row table!
      <#> =  Number 0 (min) to 6 (max), defines indentation level.

 <colour> =  Define the colours:
                onoff        = Category weight "on/off" colour. Alias yellow.
                worstcase    = Category weight "worst case" colour. Alias red.
                amount       = Category weight "amount" colour. Alias green.
                blue         = Not actually used but there just in case.
                misc         = Category weight "amount" colour. Alias purple (default).
             For the most current list of available <colour>s, see CatWcolBackground 
             or CatWcolFrame template.

 <weight> =  The category weight denominator (not word-wrapped), range:
   <w>          1 for "+"  to  6 for "***"
                1-5 for "+ to **+"
                1-6 for "+ to ***"
             For a complete list of available <weight>s (and ranges), see the CatWweight template.

   <text> =  Text describing the current weight level for this category.
    <t>

Example Category Weight Tables

CatWeightTable 1, 2, and 6 rows

{{catWeightTable|1|blue|1|Level 1 does this and that.}} (LAYOUT ISSUE)
Category Weight +   Level 1 does this and that.
{{catWeightTable|1|red|1|Level 1 does this and that.|2|Level 2 does this and that.}} (LAYOUT ISSUE)
Category Weight +   Level 1 does this and that.
  *   Level 2 does this and that.
{{catWeightTable|1|green|
 1|Level 1 does this and that.|
 2|Level 2 does this and that.|
 3|Level 3 does this and that.|
 4|Level 4 does this and that.|
 5|Level 5 does this and that.|
 6|Level 6 does this and that.}}
Category Weight +   Level 1 does this and that.
  *   Level 2 does this and that.
  *+  Level 3 does this and that.
  **  Level 4 does this and that.
  **+ Level 5 does this and that.
  *** Level 6 does this and that.

Real-world application

Category Weight +   There are some people in uniform in a few of the episodes. They're probably in the army or something. Oh, wait, maybe they're just police. Ah, no, it's cosplay.
  *   Several characters are often addressed by rank rather than name. They have medals. Someone might even salute one of them, if you're lucky.
  *+  The anime concerns an organised armed force, and its members. Said body should have both the equipment and hierarchy found in military groups, and should ideally be actively utilising their power against an opponent. Characters are either employed as professional soldiers or enlisted on a volunteer basis, for ideological reasons.
  **  Main character joins an armed force, and gets the rank of private at least. They have to salute their superiors at least once per episode. If special, they might get some hardware to play with, but on the downside killing people may be involved.
  **+ Main character at least a sergeant. They go on missions, and probably blow shit up. One or more characters is introduced, only to be summarily dispatched, to show that war costs lives. Three salutes per episode, minimum.
  *** Main character no less than a colonel. The salutes flow thick and fast, too many to count, and medals shine from every chest. Most of the dialogue is the discussion of battle tactics - in fact, there's so much war, you just don't know where to look. One of the characters was in Nam. They still have nightmares.