Module:Ep/Info/doc

You can invoke this module from a template to get back episode information from a string representing an episode code or name in Module:Ep/Array. To get a formatted string similar to Ep, invoke Module:Ep instead. This module will return blank values if the episode code is missing from Module:Ep/Array, even if it's validly constructed.

Episode information
This module can return either the episode code, title, pagename, or episode number. Here it is invoked for the latest episode of Campaign 3:

Here it is for a case where the pagename and episode title differ:

Module:Ep combines all three of these values into a standardized format:



Campaign and season information
This utilizes Module:Ep/Decoder. When appropriate, some seasons are named instead of numbered. Note that,  , and any other string is equivalent after the equals sign.

Calling from another module
You can also get the episode number, title, pagename, campaign, and/or season in another module. Note that in this case, the module expects  to be a string, not a frame. Within a function, that might look something like: