Template:CBox: Difference between revisions

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div class="cbox" style="overflow:auto;" align={{#switch:{{{Align|}}}|C="center"|L="left"|R="right"}}><div class="cboxbg" {{#switch:{{{Type}}}|M=class="mw-collapsible mw-collapsed" data-expandtext="Show" data-collapsetext="Hide"}} style="font-size:0; margin:auto; border-radius: 5px;background: {{Color|{{{bg2|transparent}}}}}; {{#ifeq:{{{Type|}}}|M|width:100%;}}">
<includeonly><div class="cbox {{#if:{{{noStatus|}}}|noStatus}}" {{#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"|MO=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>}}]]''}}}}}|MO={{{Title2|Cameo Characters (Mentioned or Appearance)}}}|#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;">{{{1}}}</div></div></div></includeonly><noinclude>
<div class="diamond2 {{#switch:{{{Type}}}|M=mw-collapsible-content|MO=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
|Part=Phantom Blood
}}
{{CBox
{{CBox
|Type=M
|Part=Phantom Blood|Align=C
}}
}}
{{CBox
{{CBox
|Align=C|Type=M
|Type=MO
}}
}}


Line 20: Line 24:
</pre>
</pre>


Use with {{Tl|Char}}.
Use with {{Tl|Char}}.<noinclude>[[Category:Design Templates]]</noinclude>

Latest revision as of 14:37, 13 February 2025


Characters from Phantom Blood
{{{1}}}
Cameo Characters (Mentioned or Appearance)

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.