Template:Cast listing/doc: Difference between revisions
mNo edit summary |
m (→Examples) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Lua|Module:List}} | |||
{{Support|Template:Col list}} | {{Support|Template:Col list}} | ||
__NOTOC__ | __NOTOC__ | ||
Line 18: | Line 19: | ||
}} | }} | ||
== Examples == | |||
{| style="width: 40%" | |||
{{Cast listing | |+ '''Example 1 - Normal Usage''' | ||
|- style="vertical-align:middle;" | |||
| style="width: 45%" | | |||
{{tj|Cast listing | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 26: | Line 30: | ||
| Him as himself | | Him as himself | ||
| Them as themselves | | Them as themselves | ||
}} | }} | ||
| style="text-align: center" | {{Rarr}} | |||
|{{Cast listing | |||
{{ | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 35: | Line 38: | ||
| Him as himself | | Him as himself | ||
| Them as themselves | | Them as themselves | ||
}} | |||
|} | |||
''' | {| style="width: 50%" | ||
|+ '''Example 2 - Using {{para|colwidth}}''' | |||
{{Cast listing|colwidth | |- style="vertical-align:middle;" | ||
| style="width: 45%" | | |||
{{tj|Cast listing|colwidth: 10 | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 46: | Line 51: | ||
| Him as himself | | Him as himself | ||
| Them as themselves | | Them as themselves | ||
}} | }} | ||
| style="text-align: center" | {{Rarr}} | |||
|{{Cast listing|colwidth = 10 | |||
{{ | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 55: | Line 59: | ||
| Him as himself | | Him as himself | ||
| Them as themselves | | Them as themselves | ||
}} } | }} | ||
|} | |||
{{clear}} | {{clear}} | ||
'''An example of a multiple story cast list''' | '''An example of a multiple story cast list''' | ||
{| style="width: 50%" | |||
{{Cast listing|colwidth = 20 | |+ '''Must use {{tlb|blist}} for inside list''' | ||
|- style="vertical-align:middle;" | |||
| style="width: 45%" | | |||
{{{tcn|Cast listing}} | |||
<nowiki>|</nowiki> {{tcp|colwidth}} = {{tcv|20}} | |||
<nowiki>|</nowiki> <nowiki>'''Story 1 Name'''</nowiki> | |||
{{{{tcn|blist}} | |||
<nowiki>|</nowiki> {{tcv|Me as myself}} | |||
<nowiki>|</nowiki> {{tcv|You as yourself}} | |||
<nowiki>|</nowiki> {{tcv|Her as herself}} | |||
<nowiki>|</nowiki> {{tcv|Him as himself}} | |||
<nowiki>|</nowiki> {{tcv|Them as themselves}} }} | |||
<nowiki>|</nowiki> <nowiki>'''Story 2 Name'''</nowiki> | |||
{{{{tcn|blist}} | |||
<nowiki>|</nowiki> {{tcv|Me as myself}} | |||
<nowiki>|</nowiki> {{tcv|You as yourself}} | |||
<nowiki>|</nowiki> {{tcv|Her as herself}} | |||
<nowiki>|</nowiki> {{tcv|Him as himself}} | |||
<nowiki>|</nowiki> {{tcv|Them as themselves}} }} | |||
}} | |||
| style="text-align: center" | {{Rarr}} | |||
|{{Cast listing | |||
| colwidth = 20 | |||
| '''Story 1 Name''' | | '''Story 1 Name''' | ||
{{blist | {{blist | ||
Line 75: | Line 103: | ||
| Him as himself | | Him as himself | ||
| Them as themselves }} | | Them as themselves }} | ||
}} | }} | ||
|} | |||
== TemplateData == | == TemplateData == | ||
Line 115: | Line 126: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category: | [[Category:CD page templates]] | ||
[[Category: | [[Category:List templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 05:36, 20 August 2023
It contains usage information, categories and other content that is not part of the original template page.
|
This template uses Lua: |
Supporting Templates |
This template is for use in a cast list. It automatically breaks the available screen space into equal parts, meaning, for instance, that it is not necessary to guess how many columns to use and then figure out the dividing point(s), e.g., the halfway point to divide the list into two columns, or the one-third and two-thirds points to divide the list into three columns. The default value for the column width is 30em
, to change this value (in case names are too long and get pushed to the next line) use |colwidth=#
.
Notice
This template uses CSS3 multiple column layout and is not supported by all Web browsers.
Usage
Examples
{{Cast listing
| Me as myself | You as yourself | Her as herself | Him as himself | Them as themselves }} |
→ |
|
{{Cast listing
| colwidth = 10 | Me as myself | You as yourself | Her as herself | Him as himself | Them as themselves }} |
→ |
|
An example of a multiple story cast list
{Cast listing | colwidth = 20 | '''Story 1 Name''' {{blist | Me as myself | You as yourself | Her as herself | Him as himself | Them as themselves }} | '''Story 2 Name''' {{blist | Me as myself | You as yourself | Her as herself | Him as himself | Them as themselves }} }} |
→ |
|
TemplateData
Formats a list of voice actor role names into columns that automatically space for the given screen size.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Column Width | colwidth | To increase the width of the columns manually, so as to avoid names from breaking into multiple lines.
| Number | optional |