Template:Episode table header/doc

From Itora Wiki

Description

This template is used in conjunction with {{Episode table entry}} to simplify the creation of episode listings. The templates must be used together or {{Episode table entry}} will not work.

Syntax

Simplest form

{{Episode table header
|episodes =
<!-- add entries using {{Episode table entry}} -->
}}
No. Title Session date

Full template

{{Episode table header
|tabletitle = <!-- Table title -->
|collapsible = 
|collapsed = 
|miniseries = 
|campaignno =
|chapterno =
|divisiontype = <!-- Valid values are: chapter, season. Chapter is default. -->
|auxtitle1 = <!-- Column name -->
|auxtitle2 = <!-- Column name -->
|color = 
|episodes =
}}
Table title (|collapsible= and |collapsed= not enabled)
Miniseries No. in series No. in camp. No. in chapter Title Column name Column name Session date

Parameters

  • tabletitle: Title above the table that spans the entire width. Most tables will not use this. Collapsible and collapsed tables must use this parameter.
  • collapsible: Makes table collapsible. Any value is accepted, but true is recommended. Will not work correctly if there is no value set in |tabletitle=.
  • collapsed: Makes table collapsed by default. Any value is accepted, but true is recommended. Will not work correctly if there is no value set in |tabletitle= and |collapsible=.
  • miniseries: Enables the "Miniseries" column. Turning this on renames the "No." column to "No. in series".
  • campaignno: Enables the "No. in camp." column. Turning this on renames the "No." column to "No. overall".
  • chapterno: Enables the "No. in chapter" column. Turning this on renames the "No." column to "No. overall".
  • divisiontype: Allows renaming "No. in chapter" to "No. in season". Only valid values are chapter and season. If empty or not included, defaults to chapter.
  • auxtitle1: Enables optional column between the "Title" and "Original airdate" columns. Whatever is placed in this parameter becomes the name of the column.
  • auxtitle2: Enables another optional column.
  • color: Optional line color that styles the border underneath the header and above the first episode. It only accepts values as hexcodes, which must be input excluding the preceding #. You can find color hex codes at https://htmlcolors.com/ or similar websites. If no color is specified, it defaults to black.
  • episodes: Here is where you place your episode entries using {{Episode table entry}}.

Troubleshooting

  • It's all showing as a bunch of text instead of a table. Make sure you closed this template, i.e. put }} after all your episode entries.
  • The number of columns aren't matching in the header and the body. Make sure you turned on the desired columns in each entry template. Check {{Episode table entry}} for further information on how to do so.

Examples

Simple listing

No. Title Session date
{{Episode table header
|episodes =
}}

Chapter and season listings

No. overall No. in camp. No. in chapter Title Session date
{{Episode table header
|campaignno = true
|chapterno = true
|episodes =
}}
No. overall No. in chapter Title Session date
{{Episode table header
|chapterno = true
|episodes =
}}
No. overall No. in season Title Session date
{{Episode table header
|chapterno = true
|divisiontype = season
|episodes =
}}

Miniseries listings

Miniseries No. in series Title Session date
{{Episode table header
|miniseries = true
|episodes =
}}

Using one or more auxiliary columns

No. Title Storyteller Session date
{{Episode table header
|auxtitle1 = Storyteller
|episodes =
}}
No. Title GM System Session date
{{Episode table header
|auxtitle1 = GM
|auxtitle2 = System
|episodes =
}}

Titled and collapsing tables

Season 1
No. Title Session date
{{Episode table header
|tabletitle = Season 1
|episodes =
}}
Season 1
No. Title Session date
{{Episode table header
|tabletitle = Season 1
|collapsible = true
|episodes =
}}
Season 1
No. Title Session date
{{Episode table header
|tabletitle = Season 1
|collapsible = true
|collapsed = true
|episodes =
}}

See Also