Permanently protected template

Difference between revisions of "Template:Card table anime and manga appearances"

From Yugipedia
Jump to: navigation, search
(store the earliest date from all "card table anime and manga appearances" on a page in the $debut_date variable.)
(fix property names when no series name is given)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
+
{{ #varexists: $smw || {{ #vardefine: $smw | {{ #if: {{ #set: }} || 1 }} }} }}<!-- standard implementation
 
-->{{ #vardefine: $ctaama-type | {{ #ifeq: {{{type}}} | Episode | episode | chapter }} }}<!--
 
-->{{ #vardefine: $ctaama-type | {{ #ifeq: {{{type}}} | Episode | episode | chapter }} }}<!--
-->{{ #vardefine: $ctaama-series | Yu-Gi-Oh! {{{series|}}} }}<!--
+
-->{{ #vardefine: $ctaama-series | {{{series|}}} }}<!--
 +
-->{{ #vardefine: $ctaama-series-property | {{ #var: $ctaama-series | DM }} }}<!--
 +
-->{{ #vardefine: $ctaama-series-suffix | {{ #if: {{{series_page_suffix|}}}
 +
  | {{ #explode: {{{series_page_suffix|}}} | ( }}
 +
  | {{{series|}}}
 +
  }}
 +
}}<!--
 
-->{{ #arraydefine: @ctaama-episodes | {{{1|}}} | , }}{{ #arrayunique: @ctaama-episodes }}{{ #arrayprint: @ctaama-episodes
 
-->{{ #arraydefine: @ctaama-episodes | {{{1|}}} | , }}{{ #arrayunique: @ctaama-episodes }}{{ #arrayprint: @ctaama-episodes
 
| ,&#32;
 
| ,&#32;
 
| $episode
 
| $episode
| [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{{series|}}} - {{{type}}} }} $episode|$episode]]{{IfSemantics
+
| [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{ #var: $ctaama-series-suffix }} - {{{type}}} }} $episode|$episode]]{{ #if: {{ #var: $smw }}
   | {{ #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| ]]
+
   | {{ #set: {{ #var: $ctaama-series-property }} {{ #var: $ctaama-type }} appearances (linked) | [[{{ #ifexpr: {{ #len: $episode }} < 4 | Yu-Gi-Oh! {{ #var: $ctaama-series-suffix }} - {{{type}}} }} $episode|$episode]] }}[[{{ #var: $ctaama-series-property }} {{ #var: $ctaama-type }} appearances::$episode| ]]
 
   }}
 
   }}
 
}}<!--
 
}}<!--
 
 
** Get the earlier date of all appearances **
 
** Get the earlier date of all appearances **
 
 
# Get the first item in the list
 
# Get the first item in the list
 
-->{{ #vardefine: $ctaama-first | {{ #explode: {{{1}}} | , }} }}<!--
 
-->{{ #vardefine: $ctaama-first | {{ #explode: {{{1}}} | , }} }}<!--
Line 17: Line 21:
 
-->{{ #vardefine: $ctaama-first-page
 
-->{{ #vardefine: $ctaama-first-page
 
| {{ #ifexpr: {{ #len: {{ #var: $ctaama-first }} }} < 4
 
| {{ #ifexpr: {{ #len: {{ #var: $ctaama-first }} }} < 4
   | {{trim|Yu-Gi-Oh! {{{series|}}}}} - {{{type}}} {{ #var: $ctaama-first }}
+
   | {{trim|Yu-Gi-Oh! {{ #var: $ctaama-series-suffix }}}} - {{{type}}} {{ #var: $ctaama-first }}
 
   | {{ #var: $ctaama-first }}
 
   | {{ #var: $ctaama-first }}
 
   }}
 
   }}
Line 42: Line 46:
 
   }}
 
   }}
 
}}<!--
 
}}<!--
 
 
--><noinclude>
 
--><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 17:36, 10 September 2023