|
|
(11 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| {{TOCright}} | | {{TOCright}} |
|
| |
|
| ==1111==
| | This template creates three different category marker boxes informing the user when a category is exclusively ecchi, hentai, or both. |
| {{eyecatch3|test|n1}} | | {{eyecatch|1|Features|Choose between the three <nowiki><type></nowiki>s, and optionally <nowiki><align></nowiki> them.}} |
| {{eyecatch3|test|n2}}
| |
| {{eyecatch3|test|n3}}
| |
|
| |
|
| {{eyecatch3|test|n4}}
| | ==Syntax== |
| {{eyecatch3|test|n5}}
| | The template can have '''1''' or '''2 parameters''': |
| {{eyecatch3|test|n6}}
| | #{{m|CatExclusive|<type>}} - Default mode, no alignment! |
| | | #{{m|CatExclusive|<type>|<align>}} - Define alignment via <align> parameter. |
| {{eyecatch3|test|n7}}
| | '''<type>''' = Define the type category marker box you require: |
| {{eyecatch3|test|n8}}
| | '''e''' |
| | | '''E''' |
| {{eyecatch3|test|n9}}
| | '''ecchi''' = Ecchi only! |
| | | |
| ==2222== | | '''h''' |
| {{eyecatch3|0|test|:0}}
| | '''H''' |
| {{eyecatch3|1|test|:1}}
| | '''hentai''' = Hentai only! |
| {{eyecatch3|2|test|:2}}
| | |
| {{eyecatch3|3|test|:3}} | | '''e&h''' |
| | | '''E&H''' |
| {{eyecatch3|3|test|:3}} | | '''ecchi&hentai''' = Ecchi & hentai only! |
| {{eyecatch3|3|test|:3}}
| | |
| | | '''<align>''' = Should the marker box be aligned? By default it is not a "float". |
| ==Real-world Examples==
| | '''left''' = Aligns the box to the left of the text. |
| ''Real-world test of the code, issue '''empty line''' before <tt>eycatch</tt>:'' | | '''right''' = Aligns the box to the right of the text. |
| | | '''1''' to '''6''' = No alignment, instead defines level of indentation! |
| ===Test 0 - Old code, if "info" = 2, it would indent by 2===
| | '''none''' = No entry, or any other entry will *not* align the info box. |
| '''<span style="color:red">No longer an issue!</span>'''<br> | |
| {{eyecatch3|2|'''Special case<nowiki>{{eyecatch3|2|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| | |
| ===Test 1 - Empty line before and after eyecatch3===
| |
| '''<span style="color:red">Spacing below and above box is OK, <s>space above box shows one "empty line" too much. VERY UGLY!</s> FIXED!</span>'''<br> | |
| Indicates whether the file entry in AniDB represents a perfect copy of the original file or not. You may request a change of the CRC Status if its not checked yet.
| |
| | |
| {{eyecatch3|Note|'''<nowiki>{{eyecatch3|Note|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| | |
| Read more about [http://en.wikipedia.org/wiki/File_verification file verification] if you are unfamiliar with this subject.
| |
| | |
| ===Test 2 - Empty line before and after eyecatch3, indent 1===
| |
| '''<span style="color:red">Spacing below box is OK, space above box shows one "empty line" too much. VERY UGLY!</span>'''<br> | |
| Indicates whether the file entry in AniDB represents a perfect copy of the original file or not. You may request a change of the CRC Status if its not checked yet.
| |
| | |
| {{eyecatch3|1|Note|'''<nowiki>{{eyecatch3|1|Note|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| | |
| Read more about [http://en.wikipedia.org/wiki/File_verification file verification] if you are unfamiliar with this subject.
| |
| | |
| {{eyecatch3|4|Note|'''<nowiki>{{eyecatch3|4|Note|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| | |
| Text text and even more text to test the code. Text text and even more text to test the code. Text text and even more text to test the code.
| |
| | |
| ===Test 3 - NO Empty line before and after eyecatch3===
| |
| '''<span style="color:red">Spacing above and below the box looks OK.</span>'''<br> | |
| Indicates whether the file entry in AniDB represents a perfect copy of the original file or not. You may request a change of the CRC Status if its not checked yet.
| |
| {{eyecatch3|Note|'''<nowiki>{{eyecatch3|Note|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| Read more about [http://en.wikipedia.org/wiki/File_verification file verification] if you are unfamiliar with this subject.
| |
|
| |
|
| ===Test 4 - NO Empty line before and after eyecatch3, indent 1===
| |
| '''<span style="color:red">Spacing above and below the box looks OK.</span>'''<br>
| |
| Indicates whether the file entry in AniDB represents a perfect copy of the original file or not. You may request a change of the CRC Status if its not checked yet.
| |
| {{eyecatch3|1|Note|'''<nowiki>{{eyecatch3|1|Note|blah}}</nowiki>''' - Not all groups provide CRC checksums for their files. This means that this status has no meaning and will have the value "not checked against official CRC".}}
| |
| Read more about [http://en.wikipedia.org/wiki/File_verification file verification] if you are unfamiliar with this subject.
| |
|
| |
|
| ===Test 5 - Two eyecatch3 blocks, no empty lines=== | | ==Example Category Markers== |
| '''<span style="color:red">Spacing above and below the boxes looks OK. IMO it would be better to have a slight space between the two eyecatch3 boxes for the normal un-indented eyecatch3 usage.</span>'''<br>
| | ===The three <type>s of marker boxes=== |
| AniDB stores the name and short name of the group/person that produced and released a file. The short name is usually found as ''tags'' in file names, for example "[AonE]".
| | <nowiki>{{eyecatch3|h}}</nowiki> |
| {{eyecatch3|Note|'''<nowiki>{{eyecatch3|Note|blah}}</nowiki>''' - If a file is a joint release, like a file by e.g. ANBU-AonE, that joint group has its own group entry. The file should not be registered under either ANBU or AonE, but to the group that combines them both.}}
| | {{eyecatch3|h}} |
| {{eyecatch3|Note|'''<nowiki>{{eyecatch3|Note|blah}}</nowiki>''' - Not all RAW groups are credited. See [[which RAW groups to credit]].}} | |
| Please note that not all groups registered in AniDB are listed with the tag they actually use, as AniDB can only have one distinctive tag for each group.
| |
|
| |
|
| ===Test 6 - Two eyecatch3 blocks, indent 1, no empty lines===
| | <nowiki>{{eyecatch3|H}}</nowiki> |
| '''<span style="color:red">The slight space above, below and between the two eyecatch3 boxes looks fine, when NOT using extra empty lines in-text. But only for the indented eyecatch3!</span>'''<br>
| | {{eyecatch3|H}} |
| AniDB stores the name and short name of the group/person that produced and released a file. The short name is usually found as ''tags'' in file names, for example "[AonE]".
| |
| {{eyecatch3|1|Note|'''<nowiki>{{eyecatch3|1|Note|blah}}</nowiki>''' - If a file is a joint release, like a file by e.g. ANBU-AonE, that joint group has its own group entry. The file should not be registered under either ANBU or AonE, but to the group that combines them both.}}
| |
| {{eyecatch3|1|Note|'''<nowiki>{{eyecatch3|1|Note|blah}}</nowiki>''' - Not all RAW groups are credited. See [[which RAW groups to credit]].}} | |
| Please note that not all groups registered in AniDB are listed with the tag they actually use, as AniDB can only have one distinctive tag for each group.
| |
|
| |
|
| ==Results==
| | <nowiki>{{eyecatch3|hentai}}</nowiki> |
| * <nowiki>{{eyecatch3|0|Note|blah}}</nowiki> works exactly the same as <nowiki>{{eyecatch3|Note|blah}}</nowiki>
| | {{eyecatch3|hentai}} |
| * Empty or wrong entries (e.g. xyz) in # field, yields default eyecatch3 without an indent.<br>e.g. <nowiki>{{eyecatch3||Note|blah}}</nowiki> or <nowiki>{{eyecatch3|xyz|Note|blah}}</nowiki><br>-> seems to be fool proof.
| |
|
| |
|
| | <nowiki>{{eyecatch3|e}}</nowiki> |
| | {{eyecatch3|e}} |
|
| |
|
| ==Solution==
| | <nowiki>{{eyecatch3|E}}</nowiki> |
| Basically the code works better than the original old version, i.e. the spacing above and below the the eyecatch3 boxes *now* looks really nice.
| | {{eyecatch3|E}} |
|
| |
|
| '''So, *never* add an empty line above the eyecatch3 box!'''
| | <nowiki>{{eyecatch3|ecchi}}</nowiki> |
| | {{eyecatch3|ecchi}} |
|
| |
|
| A empty line below the eyecatch3 box is ignored!
| | <nowiki>{{eyecatch3|e&h}}</nowiki> |
| | {{eyecatch3|e&h}} |
|
| |
|
| | <nowiki>{{eyecatch3|E&H}}</nowiki> |
| | {{eyecatch3|e&h}} |
|
| |
|
| | <nowiki>{{eyecatch3|ecchi&hentai}}</nowiki> |
| | {{eyecatch3|ecchi&hentai}} |
|
| |
|
| ----
| |
| ----
| |
| ----
| |
|
| |
|
| {{TOCright}}
| | ===The <align> used for indentation=== |
| | | <nowiki>{{eyecatch3|e&h|1}}</nowiki> (indent level 1) |
| ==Documentation for this template== | | {{eyecatch3|e&h|1}} |
| 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.
| |
| | |
| ==Alternative names==
| |
| * <nowiki>{{eyecatch3|info|text}}</nowiki>
| |
| * <nowiki>{{Eyecatch3|info|text}}</nowiki> - alternate spelling of template
| |
| * <nowiki>{{eyecatch3|#|info|text}}</nowiki>
| |
| * <nowiki>{{Eyecatch3|#|info|text}}</nowiki> - alternate spelling of template
| |
| | |
| ==Syntax== | |
| The template can have '''2''' or '''3 parameters''':
| |
| #'''<tt><nowiki>{{eyecatch3|<info>|<text>}}</nowiki></tt>''' - Default mode, no indentation.
| |
| #'''<tt><nowiki>{{eyecatch3|<#>|<info>|<text>}}</nowiki></tt>''' - Define indentation via # parameter.
| |
| '''<#>''' = Number '''0''' (min) to '''6''' (max), defines indentation level.
| |
| '''<info>''' = The info to highlight (not word-wrapped), i.e. ''Note'' or ''Important''.
| |
| '''<text>''' = The descriptive text for the info.
| |
| {{eyecatch3|1|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 <tt><nowiki>{{eyecatch3|info|text}}</nowiki></tt>!}} | |
| {{eyecatch3|1|Note|The '''<info>''' parameter is intended for short message headers. To improve readability the '''word-wrapping''' is turned '''off'''!}}
| |
|
| |
|
| ==Examples==
| |
| <nowiki>{{eyecatch3|0|Note|'''No''' indentation, just like the normal <tt>eyecatch</tt>.}}</nowiki>
| |
| <nowiki>{{eyecatch3|abc|Note|'''No''' indentation, just like the normal <tt>eyecatch</tt>.}}</nowiki>
| |
| <nowiki>{{eyecatch3||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'''! "Very important" is ...}}</nowiki> | | <nowiki>{{eyecatch3|h|left}}</nowiki> |
| {{eyecatch3|6|Very important|Maximum indentation level of '''six'''! "Very important" is '''not''' word-wrapped.}} | | {{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... |