Template:AirdateOrder/doc

Description
This template is used to automate the Airdate Order of episodes in Template:Infobox Episode.

Dependencies

 * Module:AirdateOrder/Array: data of every episode code with the accompanying airdate. Updated regularly via script.
 * Module:AirdateOrder: the code for accessing the array, including the functions for getting previous episode, next episode, and the current episode's airdate.
 * Module:Ep/Matcher: matches the ep parameter with an episode, and returns the episode code to Module:AirdateOrder. Updated regularly via script.

Usage
The ep parameter can be any of the same values used for Template:Ep and Template:Ep ref: the episode's name, the Geek & Sundry number (eg. 68), the CxEE code (eg. 3x12), etc.

When used in an episode infobox, the ep parameter can be left as   for simplicity's sake.

The order parameter must be set to either order=next or order=prev. next will cause the template to display the episode that aired next in order; prev will display the previous episode.

If the given combination of ep and order does not produce a result (eg. "Arrival at Kraghammer" and "order=prev"; or "order=next" with the most recent episode), then the template will display N/A.