|
|
(43 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | {{ #if: {{ #pos: {{{1}}} | / }} | {{ #arraymap: {{{1}}} | / | x | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:x|3|0}}|{{padleft:x|3|0}}]] }} | + | <!-- |
− | | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{1}}}|3|0}}|{{padleft:{{{1}}}|3|0}}]]{{ | + | -->{{ #vardefine: $ctaama-type | {{ #ifeq: {{{type}}} | Episode | episode | chapter }} }}<!-- |
− | #if: {{{2|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{2}}}|3|0}}|{{padleft:{{{2}}}|3|0}}]]}}{{ | + | -->{{ #vardefine: $ctaama-series | Yu-Gi-Oh! {{{series|}}} }}<!-- |
− | #if: {{{3|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{3}}}|3|0}}|{{padleft:{{{3}}}|3|0}}]]}}{{ | + | -->{{ #arraydefine: @ctaama-episodes | {{{1|}}} | , }}{{ #arrayunique: @ctaama-episodes }}{{ #arrayprint: @ctaama-episodes |
− | #if: {{{4|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{4}}}|3|0}}|{{padleft:{{{4}}}|3|0}}]]}}{{ | + | | ,  |
− | #if: {{{5|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{5}}}|3|0}}|{{padleft:{{{5}}}|3|0}}]]}}{{
| + | | $episode |
− | #if: {{{6|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{6}}}|3|0}}|{{padleft:{{{6}}}|3|0}}]]}}{{ | + | | [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]]{{IfSemantics |
− | #if: {{{7|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{7}}}|3|0}}|{{padleft:{{{7}}}|3|0}}]]}}{{
| + | | {{ #set: {{ #var: $ctaama-series }} {{ #var: $ctaama-type }} appearances (linked) | [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]] }}[[{{ #var: $ctaama-series }} {{ #var: $ctaama-type }} appearances::$episode| ]] |
− | #if: {{{8|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{8}}}|3|0}}|{{padleft:{{{8}}}|3|0}}]]}}{{
| + | }} |
− | #if: {{{9|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{9}}}|3|0}}|{{padleft:{{{9}}}|3|0}}]]}}{{
| + | }}<!-- |
− | #if: {{{10|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{10}}}|3|0}}|{{padleft:{{{10}}}|3|0}}]]}}{{
| + | |
− | #if: {{{11|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{11}}}|3|0}}|{{padleft:{{{11}}}|3|0}}]]}}{{
| + | ** Get the earlier date of all appearances ** |
− | #if: {{{12|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{12}}}|3|0}}|{{padleft:{{{12}}}|3|0}}]]}}{{
| + | |
− | #if: {{{13|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{13}}}|3|0}}|{{padleft:{{{13}}}|3|0}}]]}}{{
| + | # Get the first item in the list |
− | #if: {{{14|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{14}}}|3|0}}|{{padleft:{{{14}}}|3|0}}]]}}{{
| + | -->{{ #vardefine: $ctaama-first | {{ #explode: {{{1}}} | , }} }}<!-- |
− | #if: {{{15|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{15}}}|3|0}}|{{padleft:{{{15}}}|3|0}}]]}}{{
| + | # Get its page |
− | #if: {{{16|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{16}}}|3|0}}|{{padleft:{{{16}}}|3|0}}]]}}{{
| + | -->{{ #vardefine: $ctaama-first-page |
− | #if: {{{17|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{17}}}|3|0}}|{{padleft:{{{17}}}|3|0}}]]}}{{
| + | | {{ #ifexpr: {{ #len: {{ #var: $ctaama-first }} }} < 4 |
− | #if: {{{18|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{18}}}|3|0}}|{{padleft:{{{18}}}|3|0}}]]}}{{
| + | | {{trim|Yu-Gi-Oh! {{{series|}}}}} - {{{type}}} {{ #var: $ctaama-first }} |
− | #if: {{{19|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{19}}}|3|0}}|{{padleft:{{{19}}}|3|0}}]]}}{{
| + | | {{ #var: $ctaama-first }} |
− | #if: {{{20|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{20}}}|3|0}}|{{padleft:{{{20}}}|3|0}}]]}}{{
| + | }} |
− | #if: {{{21|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{21}}}|3|0}}|{{padleft:{{{21}}}|3|0}}]]}}{{
| + | }}<!-- |
− | #if: {{{22|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{22}}}|3|0}}|{{padleft:{{{22}}}|3|0}}]]}}{{
| + | # Get its release date |
− | #if: {{{23|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{23}}}|3|0}}|{{padleft:{{{23}}}|3|0}}]]}}{{
| + | -->{{ #vardefine: $ctaama-first-date |
− | #if: {{{24|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{24}}}|3|0}}|{{padleft:{{{24}}}|3|0}}]]}}{{
| + | | {{ #show: {{ #var: $ctaama-first-page }} |
− | #if: {{{25|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{25}}}|3|0}}|{{padleft:{{{25}}}|3|0}}]]}}{{
| + | |?{{ #ifeq: {{{series}}} | Capsule Monsters |
− | #if: {{{26|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{26}}}|3|0}}|{{padleft:{{{26}}}|3|0}}]]}}{{
| + | | English air date |
− | #if: {{{27|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{27}}}|3|0}}|{{padleft:{{{27}}}|3|0}}]]}}{{
| + | | {{ #ifeq: {{ #var: $ctaama-type }} | episode |
− | #if: {{{28|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{28}}}|3|0}}|{{padleft:{{{28}}}|3|0}}]]}}{{
| + | | Japanese air date |
− | #if: {{{29|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{29}}}|3|0}}|{{padleft:{{{29}}}|3|0}}]]}}{{
| + | | Japanese release date |
− | #if: {{{30|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{30}}}|3|0}}|{{padleft:{{{30}}}|3|0}}]]}}{{
| + | }} |
− | #if: {{{31|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{31}}}|3|0}}|{{padleft:{{{31}}}|3|0}}]]}}{{
| + | }}#ISO |
− | #if: {{{32|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{32}}}|3|0}}|{{padleft:{{{32}}}|3|0}}]]}}{{
| + | }} |
− | #if: {{{33|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{33}}}|3|0}}|{{padleft:{{{33}}}|3|0}}]]}}{{
| + | }}<!-- |
− | #if: {{{34|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{34}}}|3|0}}|{{padleft:{{{34}}}|3|0}}]]}}{{
| + | # If there is no previously-declared debut date, set this as the debut date |
− | #if: {{{35|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{35}}}|3|0}}|{{padleft:{{{35}}}|3|0}}]]}}{{
| + | -->{{ #vardefine: $debut_date | {{ #var: $debut_date | {{ #var: $ctaama-first-date | unknown }} }} }}<!-- |
− | #if: {{{36|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{36}}}|3|0}}|{{padleft:{{{36}}}|3|0}}]]}}{{
| + | # Otherwise compare the two dates to see which came first. If previously-declared debut date is unknown, we can't compare. |
− | #if: {{{37|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{37}}}|3|0}}|{{padleft:{{{37}}}|3|0}}]]}}{{
| + | -->{{ #ifeq: {{ #var: $debut_date }} | unknown |
− | #if: {{{38|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{38}}}|3|0}}|{{padleft:{{{38}}}|3|0}}]]}}{{
| + | | |
− | #if: {{{39|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{39}}}|3|0}}|{{padleft:{{{39}}}|3|0}}]]}}{{
| + | | {{ #ifexpr: {{ #time: U | {{ #var: $ctaama-first-date }} }} < {{ #time: U | {{ #var: $debut_date }} }} |
− | #if: {{{40|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{40}}}|3|0}}|{{padleft:{{{40}}}|3|0}}]]}}{{
| + | | {{ #vardefine: $debut_date | {{ #var: $ctaama-first-date }} }} |
− | #if: {{{41|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{41}}}|3|0}}|{{padleft:{{{41}}}|3|0}}]]}}{{
| + | }} |
− | #if: {{{42|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{42}}}|3|0}}|{{padleft:{{{42}}}|3|0}}]]}}{{
| + | }}<!-- |
− | #if: {{{43|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{43}}}|3|0}}|{{padleft:{{{43}}}|3|0}}]]}}{{
| + | |
− | #if: {{{44|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{44}}}|3|0}}|{{padleft:{{{44}}}|3|0}}]]}}{{
| + | --><noinclude> |
− | #if: {{{45|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{45}}}|3|0}}|{{padleft:{{{45}}}|3|0}}]]}}{{
| |
− | #if: {{{46|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{46}}}|3|0}}|{{padleft:{{{46}}}|3|0}}]]}}{{
| |
− | #if: {{{47|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{47}}}|3|0}}|{{padleft:{{{47}}}|3|0}}]]}}{{
| |
− | #if: {{{48|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{48}}}|3|0}}|{{padleft:{{{48}}}|3|0}}]]}}{{
| |
− | #if: {{{49|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{49}}}|3|0}}|{{padleft:{{{49}}}|3|0}}]]}}{{
| |
− | #if: {{{50|}}} | /[[Yu-Gi-Oh! {{#if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:{{{50}}}|3|0}}|{{padleft:{{{50}}}|3|0}}]]}}}}{{
| |
− | #if: {{{extra|}}} | /{{{extra}}}}}{{
| |
− | #if: {{{extra2|}}} | /{{{extra2}}}}}<noinclude>
| |
| {{Documentation}} | | {{Documentation}} |
| </noinclude> | | </noinclude> |