Changes

Jump to: navigation, search
store the earliest date from all "card table anime and manga appearances" on a page in the $debut_date variable.
<!---->{{ #vardefine: $ctaama-type | {{ #ifeq: {{IfSemantics{type}}} | Episode | episode | chapter }} }}<!---->{{ #vardefine: $ctaama-series | Yu-Gi-Oh! {{{series| }}} }}<!---->{{ #arraymaparraydefine: @ctaama-episodes | {{{1|}}} | , }}{{ #arrayunique: @ctaama-episodes }} {{ #arrayprint: @ctaama-episodes| / ,&#32;| x $episode| [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]]{{IfSemantics | {{ #ifset: {{{#var: $ctaama-series|}} {{ #var: $ctaama-type }} appearances (linked) | [[{{#ifexpr: {{series#len: $episode }}< 4 | Yu-Gi-Oh! {{{series|} }} - {{{type}}} }} $episode|$episode]] }}[[{{padleft#var: $ctaama-series }} {{ #var: $ctaama-type }} appearances::x$episode|3|0]] }}}}<!-- ** Get the earlier date of all appearances ** # Get the first item in the list-->{{ #vardefine: $ctaama-first |{{padleft#explode:x{{{1}}} |3|0, }}]] }}<!--# Get its page-->{{#vardefine: $ctaama-first-page| {{ #ifexpr: {{ #len: {{ #ifvar: $ctaama-first }} }} < 4 | {{trim|Yu-Gi-Oh! {{{extraseries|}}} }} - {{{type}}} {{ #var: $ctaama-first }} | , {{{extra#var: $ctaama-first }} }}}}<!--# Get its release date-->{{ #vardefine: $ctaama-first-date| {{ #replaceshow: {{ #var: $ctaama-first-page }} |?{{1#ifeq: {{{series}}} | / Capsule Monsters | English air date | {{ #ifeq: {{ #var: $ctaama-type }} | episode | Japanese air date | Japanese release date }} }}#ISO }}}}<!--# If there is no previously-declared debut date,&set this as the debut date-->{{ #vardefine: $debut_date | {{ #var: $debut_date | {{ #32; var: $ctaama-first-date | unknown }} }} }}<!--# Otherwise compare the two dates to see which came first. If previously-declared debut date is unknown, we can't compare.-->{{ #ifeq: {{ #var: $debut_date }}| unknown| | {{ #ifexpr: {{#iftime: U | {{ #var: $ctaama-first-date }} }} < {{extra2#time: U |{{ #var: $debut_date }}} } | , {{ #vardefine: $debut_date | {{extra2#var: $ctaama-first-date }}}} }}}}<!-- --><noinclude>
{{Documentation}}
</noinclude>

Navigation menu