Template:Cast listing/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:
=== Examples ===
=== Examples ===
Here is an example:
Here is an example:
<pre>{{Cast Listing|
{{Pre|{{((}}{{fcb|#4169e1|<b>Cast Listing</b>}}|
* 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
}}
{{))}}}}
</pre>


which would render as:
which would render as:
Line 28: Line 27:


An example using {{para|colwidth}}
An example using {{para|colwidth}}
<pre>{{Cast Listing|colwidth=15|
{{Pre|{{((}}{{fcb|#4169e1|Cast Listing}}|{{fcb|#4169e1|colwidth}}{{=}}{{font color|#933|15}}|
* Me as myself
* Me as myself
* You as yourself
* You as yourself
Line 34: Line 33:
* Him as himself
* Him as himself
* Them as themselves
* Them as themselves
}}
{{))}}}}
</pre>


which would render as:
which would render as:

Revision as of 04:57, 17 June 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.

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

Here is an example:

{{Cast Listing|
* Me as myself
* You as yourself
* Her as herself
* Him as himself
* Them as themselves
}}

which would render as:

    • Me as myself
    • You as yourself
    • Her as herself
    • Him as himself
    • Them as themselves

An example using |colwidth=

{{Cast Listing|colwidth=15|
* Me as myself
* You as yourself
* Her as herself
* Him as himself
* Them as themselves
}}

which would render as:

    • Me as myself
    • You as yourself
    • Her as herself
    • Him as himself
    • Them as themselves