Template:Eyecatch3/doc: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}


==Documentation for this template==
This template creates three different category marker boxes informing the user when a category is exclusively ecchi, hentai, or both.
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.
{{eyecatch|1|Features|Choose between the three <nowiki><type></nowiki>s, and optionally <nowiki><align></nowiki> them.}}


==Alternative names==
==Syntax==
* <nowiki>{{eyecatch3|#|info|text}}</nowiki>  
The template can have '''1''' or '''2 parameters''':
* <nowiki>{{Eyecatch3|#|info|text}}</nowiki> alternate spelling of template
#{{m|CatExclusive|<type>}} - Default mode, no alignment!
#{{m|CatExclusive|<type>|<align>}} - Define alignment via <align> parameter.
    '''<type>''' =  Define the type category marker box you require:
                  '''e'''
                  '''E'''
              '''ecchi'''  =  Ecchi only!
                  '''h'''
                  '''H'''
              '''hentai'''  =  Hentai only!
                '''e&h'''
                '''E&H'''
        '''ecchi&hentai'''  =  Ecchi & hentai only!
    '''<align>''' =  Should the marker box be aligned? By default it is not a "float".
                '''left'''  =  Aligns the box to the left of the text.
              '''right'''  =  Aligns the 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.
 
 
==Example Category Markers==
===The three <type>s of marker boxes===
<nowiki>{{eyecatch3|h}}</nowiki>
{{eyecatch3|h}}
 
<nowiki>{{eyecatch3|H}}</nowiki>
{{eyecatch3|H}}
 
<nowiki>{{eyecatch3|hentai}}</nowiki>
{{eyecatch3|hentai}}
 
<nowiki>{{eyecatch3|e}}</nowiki>
{{eyecatch3|e}}
 
<nowiki>{{eyecatch3|E}}</nowiki>
{{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}}


==Syntax==
;<tt><nowiki>{{eyecatch3|#|info|text}}</nowiki></tt>
    '''#'''  =  Number '''0''' (min) to '''6''' (max), defines indentation level.
'''info'''  =  The info to highlight, i.e. ''Note'' or ''Important''.
'''text'''  =  The descriptive text for the info.


{{eyecatch3|1|Important|Only the # values of 1 to 6 are actually checked, any other values result in '''no''' indentation at all!<br>Also note that there have to be '''3 parameters''', always!}}
===The <align> used for indentation===
<nowiki>{{eyecatch3|e&h|1}}</nowiki> (indent level 1)
{{eyecatch3|e&h|1}}


==Examples==
<nowiki>{{eyecatch3|0|Note|'''No''' indentation, just like the normal <tt>eyecatch</tt>.}}</nowiki>
{{eyecatch3|0|Note|'''No''' indentation, just like the normal <tt>eyecatch</tt>.}}


  <nowiki>{{eyecatch3|1|Another note|'''One''' indentation, just like <tt>eyecatch2</tt>.}}</nowiki>  
===The <align>ment of the info boxes===
{{eyecatch3|1|Another note|'''One''' indentation, just like <tt>eyecatch2</tt>.}}
  <nowiki>{{eyecatch3|e|right}}</nowiki>
{{eyecatch3|e|right}}


<nowiki>{{eyecatch3|2|Important|Level '''two''' indentation!}}</nowiki>
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah 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|2|Important|Level '''two''' indentation!}}


  <nowiki>{{eyecatch3|6|Very important|Maximum indentation level of '''six'''!}}</nowiki>  
  <nowiki>{{eyecatch3|h|left}}</nowiki>
{{eyecatch3|6|Very important|Maximum indentation level of '''six'''!}}
{{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...

Latest revision as of 12:44, 15 May 2009

This template creates three different category marker boxes informing the user when a category is exclusively ecchi, hentai, or both.

Features Choose between the three <type>s, and optionally <align> them.

Syntax

The template can have 1 or 2 parameters:

  1. {{CatExclusive|<type>}} - Default mode, no alignment!
  2. {{CatExclusive|<type>|<align>}} - Define alignment via <align> parameter.
    <type> =  Define the type category marker box you require:
                  e
                  E
              ecchi  =  Ecchi only!

                  h
                  H
             hentai  =  Hentai only!

                e&h
                E&H
       ecchi&hentai  =  Ecchi & hentai only!

   <align> =  Should the marker box be aligned? By default it is not a "float".
               left  =  Aligns the box to the left of the text.
              right  =  Aligns the 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.


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