Difference between revisions of "Template:Duelnext"
(Another attempt to fix chapter type parsing.) |
(Final attempt to fix chapter type parsing. If this doesn't work, I don't know what will.) |
||
Line 3: | Line 3: | ||
}}{{ #vardefine: $number | {{ #explode: {{ #var: $name }} || -1 }} | }}{{ #vardefine: $number | {{ #explode: {{ #var: $name }} || -1 }} | ||
}}{{ #vardefine: $type | {{ #explode: {{ #var: name }} | - | 1 }} | }}{{ #vardefine: $type | {{ #explode: {{ #var: name }} | - | 1 }} | ||
− | }}{{ #vardefine: $type | {{ #sub: {{ #var: $type }} | 0 | {{ # | + | }}{{ #vardefine: $type | {{ #sub: {{ #var: $type }} | 0 | {{ #expr: {{ #len: {{ #var: $type }} }} - 4 }} }} |
}}''[[{{ #var: $series }} - {{ #var: $type }} {{ padleft: {{ #expr: {{ #var: $number }} + 1 }} | 3 | 0 }}{{ #if: {{{1|}}} | <nowiki>#</nowiki>{{{1}}} | }}|Duel continues in the next {{ #switch: {{ #var: $type }} | Episode=episode | Duel Round=chapter | Chapter=chapter | {{ #var: $type }} }}]].'' | }}''[[{{ #var: $series }} - {{ #var: $type }} {{ padleft: {{ #expr: {{ #var: $number }} + 1 }} | 3 | 0 }}{{ #if: {{{1|}}} | <nowiki>#</nowiki>{{{1}}} | }}|Duel continues in the next {{ #switch: {{ #var: $type }} | Episode=episode | Duel Round=chapter | Chapter=chapter | {{ #var: $type }} }}]].'' |
Revision as of 08:34, 2 February 2015
[[Yu-Gi-Oh! Duelnext - Expression error: Unrecognized word "duelnext".|Duel continues in the next ]].