Template:CatExclusive: Difference between revisions
(New template that creates marker boxes pointing out if a category is ecchi or hentai exclusive.) |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
| | | | ||
{{#if: {{{2|}}}|{{indent|{{{2}}}}}|}}{| style="background:#{{CatWcolBackground|{{#switch: {{{1}}} | {{#if: {{{2|}}}|{{indent|{{{2}}}}}|}}{| style="background:#{{CatWcolBackground|{{#switch: {{{1}}} | ||
| E | | E | ||
| ecchi = | | ecchi = amount | ||
| H | | H | ||
| hentai = worstcase | | hentai = worstcase | ||
| | | E&H | ||
| | | ecchi&hentai = onoff | ||
| | | A | ||
| | | any | ||
}}}}; border:1px solid #{{CatWcolFrame|{{{1}}}}}; font-size:90%;" | | blue | ||
}}}}; border:1px solid #{{CatWcolFrame|{{#switch: {{{1}}} | |||
| E | |||
| ecchi = amount | |||
| H | |||
| hentai = worstcase | |||
| E&H | |||
| ecchi&hentai = onoff | |||
| A | |||
| any | |||
| blue | |||
}}}}; font-size:90%;" | |||
| style="background:black; padding:2px 6px; text-align:center;" | <span style="color:white; font-weight:bold;">Category</span> | | style="background:black; padding:2px 6px; text-align:center;" | <span style="color:white; font-weight:bold;">Category</span> | ||
| style="background:#{{CatWcolFrame|{{#switch: {{{1}}} | | style="background:#{{CatWcolFrame|{{#switch: {{{1}}} | ||
| E | | E | ||
| ecchi = | | ecchi = amount | ||
| H | | H | ||
| hentai = worstcase | | hentai = worstcase | ||
| | | E&H | ||
| | | ecchi&hentai = onoff | ||
| | | A | ||
| | | any | ||
| blue | |||
}}}}; padding:2px 6px; text-align:center;" | <span style="color:black;">{{#switch: {{{1}}} | }}}}; padding:2px 6px; text-align:center;" | <span style="color:black;">{{#switch: {{{1}}} | ||
| E | | E | ||
| ecchi = Ecchi only! | | ecchi = Ecchi only! | ||
| H | | H | ||
| hentai = Hentai only! | | hentai = Hentai only! | ||
| | | E&H | ||
| ecchi&hentai = Ecchi & hentai only! | |||
| ecchi&hentai | | A | ||
| any | |||
| Any anime. | |||
}}</span> | }}</span> | ||
|} | |} | ||
|}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight]]</noinclude> | |}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight]]</noinclude> |
Latest revision as of 18:10, 15 May 2009
This template creates four different category marker boxes informing the user when a category is exclusively ecchi, hentai, or both.
Features Choose between the four <type>s, and optionally <align> them.
Syntax
The template can have 1 or 2 parameters:
- {{CatExclusive|<type>}} - Default mode, no alignment!
- {{CatExclusive|<type>|<align>}} - Define alignment via <align> parameter.
<type> = Define the type of the category marker box you require: E ecchi = Ecchi only! H hentai = Hentai only! E&H ecchi&hentai = Ecchi & hentai only! A any = Any anime. (default) <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 four <type>s of marker boxes
{{CatExclusive|H}} {{CatExclusive|hentai}}
|
|
{{CatExclusive|E}} {{CatExclusive|ecchi}}
|
|
{{CatExclusive|E&H}} {{CatExclusive|ecchi&hentai}}
|
|
{{CatExclusive|A}} {{CatExclusive|any}}
|
|
The <align> used for indentation
{{CatExclusive|E&H|1}} (indent level 1)
|
The <align>ment of the info boxes
{{CatExclusive|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...
{{CatExclusive|A|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...