Template:CatWeightInfo: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em;"
<includeonly>{| cellspacing="0" cellpadding="0" style="{{#switch: {{#if: {{{2|}}} | {{{2}}} | }}
|
  | left = clear:left;
{| style="background:#{{#switch: {{{1}}}
  | right = clear:right;
| onoff = FFEFEF
  |
| worstcase = FFFFEF
}} {{#switch: {{#if: {{{2|}}} | {{{2}}} | }}
| EFFFEF
}}; border:1px solid #{{#switch: {{{1}}}
  | onoff = CCA3A3
  | worstcase = CCCCA3
  | A3CCA3
}}; width:180px; font-size:90%; {{#switch: {{#if: {{{2|}}} | {{{2}}} | }}
  | left = float:left;
  | left = float:left;
  | right = float:right;
  | right = float:right;
|
}} {{#switch: {{#if: {{{2|}}} | {{{2}}} | }}
| left =  margin-bottom:.5em; padding: .5em 1.4em .5em 0;
| right = margin-bottom:.5em; padding: .5em 0 .5em 1.4em;
  |
  |
}}"
}}"
|
{{#if: {{{2|}}}|{{indent|{{{2}}}}}|}}{| style="background:#{{CatWcolBackground|{{{1}}}}}; border:1px solid #{{CatWcolFrame|{{{1}}}}}; width:250px; font-size:90%;"
| style="background:black; padding:2px; text-align:center;"    | <span style="color:white; font-weight:bold;">Category Weight</span>
| style="background:black; padding:2px; text-align:center;"    | <span style="color:white; font-weight:bold;">Category Weight</span>
| style="background:#{{#switch: {{{1}}}
| style="background:#{{CatWcolFrame|{{{1}}}}}; padding:2px; text-align:center;"  | <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{1}}}
| onoff = CCA3A3
| onoffSec
| worstcase = CCCCA3
| onoffSecOne
| A3CCA3
  | onoff = - or &#42;&#42;&#42;
}}; padding:2px;"  | <span style="color:black; font-weight:bold;"><tt>{{#switch: {{{1}}}
| worstcaseSec
  | onoff = &nbsp; or &#42;&#42;&#42;
  | worstcase
  | worstcase = + to &#42;&#42;&#42;
| amountSec
| amount
  | + to &#42;&#42;&#42;
  | + to &#42;&#42;&#42;
}}</tt></span>
}}</tt></span>
|-
|-
| style="padding:2px; text-align:center;" colspan="2" | ''{{#switch: {{{1}}}
| style="padding:2px; text-align:center;" colspan="2" | ''{{#switch: {{{1}}}
  | onoff = If applicable this category should be weighted with '''<tt>***</tt>''' (on). Otherwise do '''not''' set it at all!
  | onoff = If applicable, this category should be weighted with '''<tt>***</tt>''' (on). Otherwise do '''not''' set it at all!
  | worstcase = If applicable, choose a weight between '''<tt>+</tt>''' (slight) to '''<tt>***</tt>''' (exces- sive) describing the '''worst case''' of category occurrence in the anime.
| onoffSec = If one or more categories in this section are applicable they should be weighted with '''<tt>***</tt>''' (on). Otherwise do '''not''' set them!
| onoffSecOne = Only '''one''' of the categories in this section is applicable and should be weighted with '''<tt>***</tt>''' (on). Otherwise do '''not''' set any of them!
  | worstcase = If applicable, choose a weight between '''<tt>+</tt>''' (slight) to '''<tt>***</tt>''' (excessive) describing the '''worst case''' of category occurrence in the anime.
| worstcaseSec = For all the categories in this section choose (if applicable) a weight between '''<tt>+</tt>''' (slight) to '''<tt>***</tt>''' (excessive) describing the '''worst case''' of specific category occurrence in the anime.
| amountSec = For all the categories in this section choose (if applicable) a weight between '''<tt>+</tt>''' (seldom) to '''<tt>***</tt>''' (abundant) denoting '''how often''' the specific category occurs in the anime.
| amount
  | If applicable, choose a weight between '''<tt>+</tt>''' (seldom) to '''<tt>***</tt>''' (abundant) denoting '''how often''' the category occurs in the anime.
  | If applicable, choose a weight between '''<tt>+</tt>''' (seldom) to '''<tt>***</tt>''' (abundant) denoting '''how often''' the category occurs in the anime.
}}''
}}''
|}
|}
|}<noinclude>{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>
|}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight]]</noinclude>

Latest revision as of 00:36, 6 May 2009

This template creates six different info boxes explaining how the weights for the current category or the current category section should be interpreted.

New Choose between the six <type>s, and optionally <align> them.

Alternative names

  • {{catWeightInfo|<type>}}
  • {{cwi|<type>}} - alternate template name
  • {{catWeightInfo|<type>|<align>}}
  • {{cwi|<type>|<align>}} - alternate template name

Syntax

The template can have 1 or 2 parameters:

  1. {{catWeightInfo|<type>}} - Default mode, no alignment!
  2. {{catWeightInfo|<type>|<align>}} - Define alignment via <align> parameter.
    <type> =  Define the type of weight info box you require:
              onoff        = The category weight is simply used as an on/off switch
              onoffSec     =   Same as onoff, but referring to the complete page/section.
              worstcase    = The worst case of category occurrence defines weight.
              worstcaseSec =   Same as worstcase, but referring to the complete page/section.
              amount       = The category weight is defined by the occurrence amount (default).
              amountSec    =   Same as amount, but referring to the complete page/section.

   <align> =  Should the info box be aligned? By default it is not a "float".
              left         = Aligns the info box to the left of the text.
              right        = Aligns the info box to the right of the text.
              1 to 6       = No alignment, instead defines level of indentation!
              none         = No entry, or any other entry will *not* align the info box.
Note Any <type> entry other than "onoff", "onoffSec", "worstcase", "worstcaseSec", or "amountSec" defaults to "amount"!
Any <align> entry other than "left" or "right" defaults to no alignment!

Example Category Weight Info Boxes

The six <type>s of info boxes

{{CatWeightInfo|onoffSec}}
Category Weight - or ***
If one or more categories in this section are applicable they should be weighted with *** (on). Otherwise do not set them!
{{CatWeightInfo|onoff}}
Category Weight - or ***
If applicable, this category should be weighted with *** (on). Otherwise do not set it at all!
{{CatWeightInfo|amountSec}}  (this is the default)
Category Weight + to ***
For all the categories in this section choose (if applicable) a weight between + (seldom) to *** (abundant) denoting how often the specific category occurs in the anime.
{{CatWeightInfo|amount}}  (this is the default)
Category Weight + to ***
If applicable, choose a weight between + (seldom) to *** (abundant) denoting how often the category occurs in the anime.
{{CatWeightInfo|worstcaseSec}} (default align is NONE!)
Category Weight + to ***
For all the categories in this section choose (if applicable) a weight between + (slight) to *** (excessive) describing the worst case of specific category occurrence in the anime.
{{CatWeightInfo|worstcase}} (default align is NONE!)
Category Weight + to ***
If applicable, choose a weight between + (slight) to *** (excessive) describing the worst case of category occurrence in the anime.

The <align> used for indentation

{{CatWeightInfo|amount|1}} (indent level 1)
Category Weight + to ***
If applicable, choose a weight between + (seldom) to *** (abundant) denoting how often the category occurs in the anime.

The <align>ment of the info boxes

{{CatWeightInfo|onoff|right}}
Category Weight - or ***
If applicable, this category should be weighted with *** (on). Otherwise do not set it at all!

blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...

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

blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...