Template:Cast listing/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
=== Examples === | === Examples === | ||
<div style="float:right;width:45%"> | |||
{{ | {{Cast listing| | ||
* Me as myself | * Me as myself | ||
* You as yourself | * You as yourself | ||
Line 15: | Line 15: | ||
* Him as himself | * Him as himself | ||
* Them as themselves | * Them as themselves | ||
}} | }}</div> | ||
{{Pre|{{{{fcb|#4169e1|Cast listing}}| | |||
{{Cast listing| | |||
* Me as myself | * Me as myself | ||
* You as yourself | * You as yourself | ||
Line 24: | Line 23: | ||
* Him as himself | * Him as himself | ||
* Them as themselves | * Them as themselves | ||
}} | }} }} | ||
{{clear}} | |||
An example using {{para|colwidth}} | '''An example using {{para|colwidth}}''' | ||
{{ | <div style="float:right;width:45%"> | ||
{{Cast listing|colwidth=10| | |||
* Me as myself | * Me as myself | ||
* You as yourself | * You as yourself | ||
Line 33: | Line 34: | ||
* Him as himself | * Him as himself | ||
* Them as themselves | * Them as themselves | ||
}} | }}</div> | ||
{{Pre|{{{{fcb|#4169e1|Cast listing}}|{{fcb|#2e8b57|colwidth}}{{=}}{{font color|#933|10}}| | |||
{{Cast listing|colwidth= | |||
* Me as myself | * Me as myself | ||
* You as yourself | * You as yourself | ||
Line 42: | Line 42: | ||
* Him as himself | * Him as himself | ||
* Them as themselves | * Them as themselves | ||
}} | }} }} | ||
== TemplateData == | == TemplateData == |
Revision as of 22:20, 21 June 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=#
.
Usage
This template uses CSS3 multiple column layout and is not supported by all Web browsers.
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 }}
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 |