Template:Cast listing: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|{{{1|}}}}}}|{{div col | <includeonly>{{#if:{{{2|{{{1|}}}}}}|{{div col | ||
| colwidth = {{{colwidth|30em | | colwidth = {{ #if:{{{colwidth|}}}|{{{colwidth}}}em|30em }} | ||
| gap = {{{gap|}}} | | gap = {{{gap|}}} | ||
| rules = {{{rules|}}} | | rules = {{{rules|}}} |
Revision as of 03:29, 13 June 2023
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 }} |
→ |
You as yourself
|
{{Cast listing
| colwidth = 10 | Me as myself | You as yourself | Her as herself | Him as himself | Them as themselves }} |
→ |
You as yourself
|
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 }} }} |
→ |
Story 2 Name
|
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 |