Template:Eps-byS

Purpose
Returns the season number that an episode appeared in. This will be used to automatically build a list of episodes per season.

'' Note: numbering for the Simpson Shorts has not yet been finalized. This is a first draft of the template. ''

Certain punctuation in an episode title can cause the template to break. Examples include apostrophes/single quotes, double quotes and colons. For these cases, the line immediately below needs to have the episode number equal the season (example: 45=3 for the Season 3 episode "Flaming Moe's"). This is used by other templates such as Eps-PN to compensate for when BASEPAGENAME would not match the episode name correctly due to the punctuation. It also eliminates the need to convert the punctuation into Unicode values, since it may not be possible to convert a colon to a value that would still work.

Changing episode names and broadcast order
If the spelling of an episode's name changes, that needs to be updated here, the Eps-In template and on the Eps-Out template. If the episode's new name includes punctuation described above, be sure to add an override line immediately below it (a "x=x" line, such as 45=3).

'' Note: numbering for the Simpson Shorts has not yet been finalized. This is a first draft of the template. ''

When Fox changes the order that an episode is broadcast, such as when "Dangers on a Train" was moved from the premiere of Season 25 to the finale of Season 24, the episode number needs to be updated, along with any override line that accompanies it. Move the episode up or down in the listing so that the episodes are kept in straight numerical order. Update the Eps-PN template and theEps-Out template to match the change in this template.