Template:Cast listing/doc: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Template:Cast Listing/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
mNo edit summary |
||
Line 3: | Line 3: | ||
<!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE END OF THIS 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 | 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 <code>colwidth=#em|</code>. | ||
== Use == | == Use == | ||
Line 21: | Line 21: | ||
which would render as: | which would render as: | ||
{{Cast Listing| | {{Cast Listing| | ||
* Me as myself | |||
* You as yourself | |||
* Her as herself | |||
* Him as himself | |||
* Them as themselves | |||
}} | |||
An example using <code>colwidth</code> | |||
<pre>{{Cast Listing|colwidth=15em| | |||
* Me as myself | |||
* You as yourself | |||
* Her as herself | |||
* Him as himself | |||
* Them as themselves | |||
}} | |||
</pre> | |||
which would render as: | |||
{{Cast Listing|colwidth=15em| | |||
* Me as myself | * Me as myself | ||
* You as yourself | * You as yourself |
Revision as of 05:38, 2 October 2020
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=#em|
.
Use
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=15em| * 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