Template:CBox: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
Eyacorkett (talk | contribs) m Added collapsable feature |
||
Line 1: | Line 1: | ||
<includeonly><div class="cbox" {{#if:{{{Align|}}}|align={{#switch:{{{Align|}}}|C="center"|L="left"|R="right"}}}} {{#ifeq:{{{Type|}}}|M|style="width:100%;"}}><div class="cboxbg" {{#switch:{{{Type}}}|M=class="mw-collapsible mw-collapsed" data-expandtext="Show" data-collapsetext="Hide"}} style="display:flow-root; margin:auto; border-radius: 5px;background: {{Color|{{{bg2|transparent}}}}}; {{#ifeq:{{{Type|}}}|M|width:100%;}}"> |
<includeonly><div class="cbox" {{#if:{{{Align|}}}|align={{#switch:{{{Align|}}}|C="center"|L="left"|R="right"}}}} {{#ifeq:{{{Type|}}}|M|style="width:100%;"}}><div class="cboxbg" {{#switch:{{{Type}}}|M=class="mw-collapsible mw-collapsed" data-expandtext="Show" data-collapsetext="Hide"|C=class="mw-collapsible mw-collapsed" data-expandtext="Show" data-collapsetext="Hide"}} style="display:flow-root; margin:auto; border-radius: 5px;background: {{Color|{{{bg2|transparent}}}}}; {{#ifeq:{{{Type|}}}|M|width:100%;}}"> |
||
<div class="diamond" style="background:{{Color|{{{bg|#7b9cd1}}}}}; border: 2px solid {{{Border|#44446f}}}; border-radius: 6px; text-align:center; font-family:Rubik; font-size:15px; font-weight:500; color: {{{Color|white}}}; text-transform:uppercase; letter-spacing:2px; text-shadow: 2px 2px 2px #333333;">{{#switch:{{{Type|}}}|M={{{Title2|[[Minor Characters|<span style="color: white;">Minor</span>]] / [[Unnamed Characters|<span style="color: white;">Unnamed Characters</span>]] {{#if:{{{Part|}}}|from ''[[{{{Part|}}}{{#if:{{{TitleColor|}}}|{{!}}<span style="color:{{{TitleColor|white}}};">{{{Part|}}}</span>}}]]''}}}}}|#default='''{{{Title|Characters {{#if:{{{Part|}}}|from ''[[{{{Part}}}{{#if:{{{TitleColor|}}}|{{!}}<span style="color:{{{TitleColor|white}}};">{{{Part|}}}</span>}}]]''}}}}}'''}}</div> |
<div class="diamond" style="background:{{Color|{{{bg|#7b9cd1}}}}}; border: 2px solid {{{Border|#44446f}}}; border-radius: 6px; text-align:center; font-family:Rubik; font-size:15px; font-weight:500; color: {{{Color|white}}}; text-transform:uppercase; letter-spacing:2px; text-shadow: 2px 2px 2px #333333;">{{#switch:{{{Type|}}}|M={{{Title2|[[Minor Characters|<span style="color: white;">Minor</span>]] / [[Unnamed Characters|<span style="color: white;">Unnamed Characters</span>]] {{#if:{{{Part|}}}|from ''[[{{{Part|}}}{{#if:{{{TitleColor|}}}|{{!}}<span style="color:{{{TitleColor|white}}};">{{{Part|}}}</span>}}]]''}}}}}|#default='''{{{Title|Characters {{#if:{{{Part|}}}|from ''[[{{{Part}}}{{#if:{{{TitleColor|}}}|{{!}}<span style="color:{{{TitleColor|white}}};">{{{Part|}}}</span>}}]]''}}}}}'''}}</div> |
||
<div class="diamond2 {{#switch:{{{Type}}}|M=mw-collapsible-content}}" style="text-align:center; display: flex; flex-wrap: wrap; justify-content: center">{{{1}}}</div></div></div></includeonly><noinclude> |
<div class="diamond2 {{#switch:{{{Type}}}|M=mw-collapsible-content|C=mw-collapsible-content}}" style="text-align:center; display: flex; flex-wrap: wrap; justify-content: center">{{{1}}}</div></div></div></includeonly><noinclude> |
||
{{CBox |
{{CBox |
||
|Part=Phantom Blood|Align=C |
|Part=Phantom Blood|Align=C |
Revision as of 07:58, 5 February 2023
Characters from Phantom Blood
{{{1}}}
{{{1}}}
CBox Parameters
bg = Title background color bg2 = Background color behind the char boxes Border = Border color Title = Title to display Type = Makes the title have links to Minor/Unnamed Chars (the only parameter is M) Part = The manga/anime part. For example, if Part is Phantom Blood, the title will say "Characters from Phantom Blood" Align = C (Center), L (Left), R (Right)
Use with Char.