Template:KMEpcode

From LGPedia
Revision as of 20:34, 18 February 2008 by Jonpro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template generates episode codes in the form of (seasonnumber)x(episodenumber within season) from normal, continuous episode numbers.
Usage: {{KMEpcode|Normal episode number}}
Example: {{KMEpcode|260}} gives 2x105
raw can be passed as a second argument to turn off the leading #x.
season can be passed as a second argument to return only the season number.
If the input is not a number, nothing is returned.