Difference between revisions of "Template:Duelnext"

From Yugipedia
Jump to: navigation, search
(Final attempt to fix chapter type parsing. If this doesn't work, I don't know what will.)
(Found the problem. It was a typo.)
Line 2: Line 2:
 
}}{{ #vardefine: $series | Yu-Gi-Oh! {{ #explode: {{ #var: $name }} | - }}
 
}}{{ #vardefine: $series | Yu-Gi-Oh! {{ #explode: {{ #var: $name }} | - }}
 
}}{{ #vardefine: $number | {{ #explode: {{ #var: $name }} || -1 }}
 
}}{{ #vardefine: $number | {{ #explode: {{ #var: $name }} || -1 }}
}}{{ #vardefine: $type | {{ #explode: {{ #var: name }} | - | 1 }}
+
}}{{ #vardefine: $type | {{ #replace: {{ #explode: {{ #var: $name }} | - | 1 }} | {{ #var: $number }} }}
}}{{ #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:41, 2 February 2015

[[Yu-Gi-Oh! Duelnext - Expression error: Unrecognized word "duelnext".|Duel continues in the next ]].