Template:CatWeight/doc: Difference between revisions

From AniDB
Jump to navigation Jump to search
Line 2: Line 2:
{{TOCright}}
{{TOCright}}


==Experimental Table==
==Experimental Weight Boxes==


===Detailed weighing of Category with explicit descriptions===
:{| style="background:#FAF0FF; border:1px solid #DFC8EC; font-size: 90%;"
:{| style="background:#FAF0FF; border:1px solid #DFC8EC; font-size: 90%;"
| style="background:black; padding:2px;"    | <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
| style="background:black; padding:2px;"    | <span style="color:white; font-weight:bold;">Category&nbsp;Weight</span>
Line 33: Line 34:
| style="padding:2px;"                      | ''Level 6 does this and that.''
| style="padding:2px;"                      | ''Level 6 does this and that.''
|-
|-
|}
===Case: on/off only===
Certain categories will either be set to <tt>***</tt> or not set at all. There are no intermediate weights!
:{| style="background:#FAF0FF; border:1px solid #DFC8EC; width:300px"
| style="background:black; padding:2px; text-align:center;"    | <span style="color:white; font-weight:bold;">Category Weight</span>
| style="background:#DFC8EC; padding:2px;"  | <span style="color:black; font-weight:bold;"><tt>&nbsp;<br>or ***</tt></span>
| style="padding:2px;"                      | ''If applicable this category should be weighted with '''<tt>***</tt>''' (on). Otherwise do '''not''' set it at all!''
|}
===Case: + to *** range dependant on occurrence amount===
Most categories are weighted <tt>+</tt> to <tt>***</tt>. This solely depends on '''how often''' the category occurs in the anime.
:{| style="background:#FAF0FF; border:1px solid #DFC8EC; width:300px"
| style="background:black; padding:2px; text-align:center;"    | <span style="color:white; font-weight:bold;">Category Weight</span>
| style="background:#DFC8EC; padding:2px;"  | <span style="color:black; font-weight:bold;"><tt>+ to ***</tt></span>
| style="padding:2px;"                      | ''If applicable, choose a weight between '''<tt>+</tt>''' (seldom) to '''<tt>***</tt>''' (abundant) denoting '''how often''' the category occurs in the anime.''
|}
===Case: + to *** range dependant worst case===
Some categories like the Content Indicators are weighted not by the occurrence amount, but by the '''worst case''' in the anime, e.g. the most violent scene defined the weight. Range of weights is <tt>+</tt> to <tt>***</tt>.
:{| style="background:#FAF0FF; border:1px solid #DFC8EC; width:300px"
| style="background:black; padding:2px; text-align:center;"    | <span style="color:white; font-weight:bold;">Category Weight</span>
| style="background:#DFC8EC; padding:2px;"  | <span style="color:black; font-weight:bold;"><tt>+ to ***</tt></span>
| style="padding:2px;"                      | ''If applicable, choose a weight between '''<tt>+</tt>''' (slight) to '''<tt>***</tt>''' (excessive) describing the '''worst case''' of category occurrence in the anime.''
|}
|}



Revision as of 18:30, 1 May 2009

The information on this page is incomplete and may not be of much use.
If you can, please help by adding to it.

Experimental Weight Boxes

Detailed weighing of Category with explicit descriptions

Category Weight     Level 0 does this and that.
  +   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.

Case: on/off only

Certain categories will either be set to *** or not set at all. There are no intermediate weights!

Category Weight  
or ***
If applicable this category should be weighted with *** (on). Otherwise do not set it at all!

Case: + to *** range dependant on occurrence amount

Most categories are weighted + to ***. This solely depends on how often the category occurs in the anime.

Category Weight + to *** If applicable, choose a weight between + (seldom) to *** (abundant) denoting how often the category occurs in the anime.

Case: + to *** range dependant worst case

Some categories like the Content Indicators are weighted not by the occurrence amount, but by the worst case in the anime, e.g. the most violent scene defined the weight. Range of weights is + to ***.

Category Weight + to *** If applicable, choose a weight between + (slight) to *** (excessive) describing the worst case of category occurrence in the anime.

Documentation for this template

This template creates an eye-catcher bar that can be indented up to 6 times via parameter value, letting the user better customize his "Note"s. The code is backwards compatible, letting the user keep on using the old 2 parameter version as well.

New Subtle one-pixel border added, padding improved, <weight> is not word-wrapped.

Alternative names

  • {{catWeight|<weight>|<text>}}
  • {{CatWeight|<weight>|<text>}} - alternate spelling of template
  • {{catWeight|<#>|<weight>|<text>}}
  • {{CatWeight|<#>|<weight>|<text>}} - alternate spelling of template


Syntax

The template can have 2 or 3 parameters:

  1. {{catWeight|<weight>|<text>}} - Default mode, no indentation.
  2. {{catWeight|<#>|<weight>|<text>}} - Define indentation via <#> parameter.
       <#> =  Number 0 (min) to 6 (max), defines indentation level.
  <weight> =  The category weight denominator (not word-wrapped), range 1 (+) to 6 (***).
    <text> =  The descriptive text for that weight level.
Note Only the <#> values 1 to 6 are actually checked, any other values (e.g. 0 or abc) yield no indentation at all, and are treated the same as {{eyecatch|info|text}}!

Examples

The Weights

Category Weight +   Weight + means this and that.
Category Weight *   Weight * means this and that.
Category Weight *+  Weight *+ means this and that.
Category Weight **  Weight ** means this and that.
Category Weight **+ Weight **+ means this and that.
Category Weight *** Weight *** means this and that.

There is an issue when using * as argument in catWeight, using "x" for now.

Indentation

{{catWeight|0|Note|'''No''' indentation, just like the normal <tt>catWeight</tt>.}} 
{{catWeight|abc|Note|'''No''' indentation, just like the normal <tt>catWeight</tt>.}} 
{{catWeight||Note|'''No''' indentation, just like the normal <tt>catWeight</tt>.}} 
Category Weight     No indentation, just like the normal catWeight.
{{catWeight|1|Another note|'''One''' indentation, just like <tt>catWeight2</tt>.}} 
Category Weight     One indentation, just like catWeight2.
{{catWeight|2|Important|Level '''two''' indentation!}} 
Category Weight     Level two indentation!
{{catWeight|6|Very important|Maximum indentation level of '''six'''! "Very important" is ...}} 
Category Weight     Maximum indentation level of six! "Very important" is not word-wrapped.