Jump to content

Template:Char Appearances: Difference between revisions

From Detective Conan Wiki
Template to display character appearances in a scrolling frame. It's using another custom-made extension made for DCW. This template also includes a fix for IE
 
m Prevents the surrounding box from going behind the main InfoBox and instead resize when the space is too narrow
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style="height: 190px; overflow: auto; overflow-y: hidden; clear: left; border: 1px dotted #7BA1EC">
<includeonly>
{|
<div style="max-width: min-content; margin-bottom: 2px; overflow:hidden;">
! 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|
            <div style="display:flex; width: min-content; font-size: 90%; text-align: center;">
{{Char|Shinichi Kudo}}
              {{{1}}}
{{Char|Conan Edogawa}}
            </div>
{{Char|Ran Mouri}}
        </div>
{{Char|Ai Haibara}}
    </div>
{{Char|Hiroshi Agasa}}
{{Char|Inspector Megure}}
{{Char|Ninzaburo Shiratori}}
{{Char|Officer Chiba}}
{{Char|Wataru Takagi}}
{{Char|Miwako Sato}}
{{Char|Heiji Hattori}}
{{Char|Kazuha Toyama}}
{{Char|Jodie Starling}}
{{Char|James Black}}
{{Char|Shuichi Akai}}
{{Char|Hidemi Hondou}}
{{Char|Chianti}}
{{Char|Korn}}
{{Char|Gin}}
{{Char|Vodka}}
{{Char|Mitsuhiko Tsuburaya}}
{{Char|Ayumi Yoshida}}
{{Char|Genta Kojima}}
{{Char|Sharon Vineyard}}
{{Char|Yusaku Kudo}}
{{Char|Yukiko Kudo}}
{{Char|Kogoro Mouri}}
}}
|}
</div></includeonly><noinclude>
</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 43: Line 18:
{{Char Appearances|
{{Char Appearances|
<list of characters>
<list of characters>
| width              =    (Optional. Used mainly if the number of characters is small)
}}
}}


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 show individual formatted character frames
                           Note: Remember to use the "{{Char}}" template to show individual formatted character frames
</pre>
</pre>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 23:33, 15 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