Template:REEpcode
From LGPedia
Revision as of 06:29, 24 July 2016 by FH14 (Talk | contribs) (Created page with "<includeonly>{{ #if: {{#ifeq: {{#ifexpr: {{{1}}} | true|true}} | true | {{{1|}}} |}} <!-- -->|{{ #ifexpr: {{{1}}} <= 0 | {{#switch: {{{2}}} | raw = {{{1}}} | season = 0 | 0x{{...")
This template generates episode codes in the form of (seasonnumber)x(episodenumber within season) from normal, continuous episode numbers.
Usage: {{REEpcode|Normal episode number}}
Example: {{REEpcode|260}}
gives 1x260raw
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.