Template:Ep2/doc

This ep template translates an episode name or number into a wikilinked episode title. Almost any format of the name or number should work, but please leave a comment on the this template's talk page if you've encountered an error.

Dependencies

 * Module:Ep/Matcher:  Converts episode names and numbers to a standardized [Campaign]x[Episode] shortcode.
 * Module:Ep/Info: Given a standardized shortcode, returns information about an episode such as its title and pagename.
 * Module:AirdateOrder: Assists with relational identification of episodes by airdate order.

Usage
To use this template, simple write  and replace the red "Episode" with the name or number of the episode:

The episode parameter can be provided in many different formats, including "C[campaign]E[episode]" (e.g. "C3E21"), this wiki's Campaign x Episode format of CxEE (e.g. "2x45"), the episode name, and the episode pagename. All of the following ways of using the ep template will produce the same output, except when the provided name or number isn't recognized:

Optional Parameters
The following optional parameters may be used to modify how the episode name is displayed. Except as noted, the optional parameters may be used at the same time:

Errors
If the episode does not exist, then the template will produce the text provided:

However, when linking to an existing episode, it is preferable to provide custom text using the parameter along with the actual episode name or number. That way, the trailing (CxEE) and tooltip will still function, as will the link to the episode's page.