Difference between revisions of "Template:Char Appearances"

From Detective Conan Wiki
m
(less complicated structure, better readability, 66% shorter html, better css, achieves same results (together with Template:Char))
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="{{#if:{{{width|}}}| width: {{{width}}}px; }}vertical-align: top; height: 190px; overflow: auto; overflow-y: hidden; clear: left; /*border: 1px dotted #7BA1EC;*/">
+
<includeonly>
{|
+
<div style="max-width: min-content; margin-bottom: 2px;">
! style="background: #7BA1EC; color: #ffffff; text-align: left; padding-left: 5px" | Characters
+
    <div style="border: 1px dotted #7BA1EC;">
|-
+
        <div  style="background: #7BA1EC; color: #ffffff; padding-left: 5px; font-weight:bold;">Characters</div>
|
+
        <div style="overflow: auto;">
{{#chartable:118.52|{{{1}}}}}
+
            <div style="display:flex; width: min-content; font-size: 90%; text-align: center;">
|}
+
              {{{1}}}
</div><div style="clear: left"></div></includeonly><noinclude>
+
            </div>
 +
        </div>
 +
    </div>
 +
</div>
 +
</includeonly><noinclude>
 
Displays a given list of characters within a "Character appearances" frame.
 
Displays a given list of characters within a "Character appearances" frame.
  
Line 18: Line 22:
 
}}
 
}}
  
list of appearances  =    List of characters who appeared in the episode/movie/ova/etc...
+
list of characters    =    List of characters who appeared in the episode/movie/ova/etc...
 
                           Note: Remember to use the "{{Char}}" template to show individual formatted character frames
 
                           Note: Remember to use the "{{Char}}" template to show individual formatted character frames
 
</pre>
 
</pre>

Latest revision as of 13:51, 2 April 2025

Displays a given list of characters within a "Character appearances" frame.

Usage

The following is a list of required or optional parameters:

{{Char Appearances|
<list of characters>
| width               =    (Optional. Used mainly if the number of characters is small)
}}

list of characters    =    List of characters who appeared in the episode/movie/ova/etc...
                           Note: Remember to use the "{{Char}}" template to show individual formatted character frames