Template:Cast listing/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Support|Template:Col list}} | {{Support|Template:Col list}} | ||
__NOTOC__ | |||
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 {{code|30em}}, to change this value (in case names are too long and get pushed to the next line) use {{para|colwidth|#}}. | 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 {{code|30em}}, to change this value (in case names are too long and get pushed to the next line) use {{para|colwidth|#}}. | ||
== Notice == | |||
This template uses [[Wikipedia:CSS|CSS]]3 multiple column layout and is not supported by all [[Wikipedia:WWW|Web]] [[Wikipedia:Web browser|browsers]]. | |||
== Usage == | == Usage == | ||
{{tj|Cast listing | |||
| colwidth: | |||
| Cast Name 1 | |||
| Cast Name 2 | |||
| Cast Name 3 | |||
... | |||
| Cast Name last | |||
}} | |||
=== Examples === | === Examples === | ||
<div style="float:right;width: | <div style="float:right;width:50%"> | ||
{{Cast listing | {{Cast listing | ||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 17: | Line 28: | ||
}}</div> | }}</div> | ||
{{Pre|width=25%|{{ | {{Pre|width=25%| | ||
{{tj|Cast listing | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 27: | Line 39: | ||
'''An example using {{para|colwidth}}''' | '''An example using {{para|colwidth}}''' | ||
<div style="float:right;width: | <div style="float:right;width:50%"> | ||
{{Cast listing|colwidth=10 | {{Cast listing|colwidth = 10 | ||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 36: | Line 48: | ||
}}</div> | }}</div> | ||
{{Pre|width=25%|{{ | {{Pre|width=25%| | ||
{{tj|Cast listing|colwidth: 10 | |||
| Me as myself | | Me as myself | ||
| You as yourself | | You as yourself | ||
Line 42: | Line 55: | ||
| Him as himself | | Him as himself | ||
| Them as themselves | | Them as themselves | ||
}} }} | |||
{{clear}} | |||
'''An example of a multiple story cast list''' - Must use {{tl|blist}} for inside list. | |||
<div style="float:right;width:50%"> | |||
{{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 }} | |||
}}</div> | |||
{{Pre|width=25%|{{{{fcb|#4169e1|Cast listing}} | |||
| {{fcb|#2e8b57|colwidth}} {{=}} {{fc|#933|20}} | |||
| {{fcb|#2e8b57|<nowiki>'''Story 1 Name'''</nowiki>}} | |||
{{((}}{{fcb|#4169e1|blist}} | |||
| {{fc|#933|Me as myself}} | |||
| {{fc|#933|You as yourself}} | |||
| {{fc|#933|Her as herself}} | |||
| {{fc|#933|Him as himself}} | |||
| {{fc|#933|Them as themselves}} {{))}} | |||
| {{fcb|#2e8b57|<nowiki>'''Story 2 Name'''</nowiki>}} | |||
{{((}}{{fcb|#4169e1|blist}} | |||
| {{fc|#933|Me as myself}} | |||
| {{fc|#933|You as yourself}} | |||
| {{fc|#933|Her as herself}} | |||
| {{fc|#933|Him as himself}} | |||
| {{fc|#933|Them as themselves}} {{))}} | |||
}} }} | }} }} | ||
Revision as of 04:25, 7 August 2023
It contains usage information, categories and other content that is not part of the original template page.
|
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
- Me as myself
- You as yourself
- Her as herself
- Him as himself
- Them as themselves
{{Cast listing
| Me as myself
| You as yourself
| Her as herself
| Him as himself
| Them as themselves
}}
An example using |colwidth=
- 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 - Must use {{blist}} for inside list.
- Story 1 Name
- Me as myself
- You as yourself
- Her as herself
- Him as himself
- Them as themselves
- Story 2 Name
- Me as myself
- You as yourself
- Her as herself
- Him as himself
- Them as themselves
{{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 |