Template:Eyecatch3/doc: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 28: Line 28:
{{eyecatch|1|Note|Any '''<type>''' entry other than "onoff", "onoffSec", "worstcase", "worstcaseSec", or "amountSec" defaults to '''"amount"'''!<br>Any '''<align>''' entry other than "left" or "right" defaults to '''no''' alignment!}}
{{eyecatch|1|Note|Any '''<type>''' entry other than "onoff", "onoffSec", "worstcase", "worstcaseSec", or "amountSec" defaults to '''"amount"'''!<br>Any '''<align>''' entry other than "left" or "right" defaults to '''no''' alignment!}}


==Example Category Weight Info Boxes==
==Example Category Markers==
===The six <type>s of info boxes===
===The three <type>s of marker boxes===
  <nowiki>{{eyecatch3|onoffSec}}</nowiki>
  <nowiki>{{eyecatch3|h}}</nowiki>
{{eyecatch3|onoffSec}}
{{eyecatch3|h}}


  <nowiki>{{eyecatch3|onoff}}</nowiki>
  <nowiki>{{eyecatch3|H}}</nowiki>
{{eyecatch3|onoff}}
{{eyecatch3|H}}


  <nowiki>{{eyecatch3|amountSec}}</nowiki> (this is the default)
  <nowiki>{{eyecatch3|hentai}}</nowiki>
{{eyecatch3|amountSec}}
{{eyecatch3|hentai}}


  <nowiki>{{eyecatch3|amount}}</nowiki> (this is the default)
  <nowiki>{{eyecatch3|e}}</nowiki>
{{eyecatch3|amount}}
{{eyecatch3|e}}


  <nowiki>{{eyecatch3|worstcaseSec}}</nowiki> (default align is NONE!)
  <nowiki>{{eyecatch3|E}}</nowiki>
{{eyecatch3|worstcaseSec}}
{{eyecatch3|E}}
 
<nowiki>{{eyecatch3|ecchi}}</nowiki>
{{eyecatch3|ecchi}}
 
<nowiki>{{eyecatch3|e&h}}</nowiki>
{{eyecatch3|e&h}}
 
<nowiki>{{eyecatch3|E&H}}</nowiki>
{{eyecatch3|e&h}}
 
<nowiki>{{eyecatch3|ecchi&hentai}}</nowiki>
{{eyecatch3|ecchi&hentai}}


<nowiki>{{eyecatch3|worstcase}}</nowiki> (default align is NONE!)
{{eyecatch3|worstcase}}


===The <align> used for indentation===
===The <align> used for indentation===
  <nowiki>{{eyecatch3|amount|1}}</nowiki> (indent level 1)
  <nowiki>{{eyecatch3|e&h|1}}</nowiki> (indent level 1)
{{eyecatch3|amount|1}}
{{eyecatch3|e&h|1}}


===The <align>ment of the info boxes===
===The <align>ment of the info boxes===
  <nowiki>{{eyecatch3|onoff|right}}</nowiki>
  <nowiki>{{eyecatch3|e|right}}</nowiki>
{{eyecatch3|onoff|right}}
{{eyecatch3|e|right}}


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...
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...


  <nowiki>{{eyecatch3|amount|left}}</nowiki>
  <nowiki>{{eyecatch3|h|left}}</nowiki>
{{eyecatch3|amount|left}}
{{eyecatch3|h|left}}
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...
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...

Revision as of 12:03, 15 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

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

Syntax

The template can have 1 or 2 parameters:

  1. {{eyecatch3|<type>}} - Default mode, no alignment!
  2. {{eyecatch3|<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 Markers

The three <type>s of marker boxes

{{eyecatch3|h}}
Category Hentai only!
{{eyecatch3|H}}
Category Hentai only!
{{eyecatch3|hentai}}
Category Hentai only!
{{eyecatch3|e}}
Category Ecchi only!
{{eyecatch3|E}}
Category Ecchi only!
{{eyecatch3|ecchi}}
Category Ecchi only!
{{eyecatch3|e&h}}
Category Ecchi & hentai only!
{{eyecatch3|E&H}}
Category Ecchi & hentai only!
{{eyecatch3|ecchi&hentai}}
Category Ecchi & hentai only!


The <align> used for indentation

{{eyecatch3|e&h|1}} (indent level 1)
Category Ecchi & hentai only!

The <align>ment of the info boxes

{{eyecatch3|e|right}}
Category Ecchi only!

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...

{{eyecatch3|h|left}}
Category Hentai only!

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...