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   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  parameter can be left as   for simplicity's sake.

If using the   parameter, it must be set to either   or  . will cause the template to display the episode that aired next in order;  will display the previous episode.

If the given combination of  and   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".

The date and time when the episode first aired can also be queried directly using the   param and setting it to  . Note that this will not display if there is a value entered for  .