Template:THOEpcode

From LGPedia
Revision as of 01:19, 11 August 2016 by FH14 (Talk | contribs) (Created page with "<includeonly>{{ #if: {{#ifeq: {{#ifexpr: {{{1}}} | true|true}} | true | {{{1|}}} |}} <!-- -->|{{ #ifexpr: {{{1}}} <= 0 | {{#switch: {{{2}}} | raw = {{{1}}} | chapter = 0 | 0x{...")

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

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