Difference between revisions of "Template:Anime card/types"

From Yugipedia
Jump to: navigation, search
(For now, we'll just get it to print the linked types.)
(handle empty input)
Line 1: Line 1:
{{ #arraydefine: $types-array | {{{1|}}} | / }}<!--
+
{{ #if: {{{1|}}}
-->{{ #arrayprint: $types-array
+
{{ #arraydefine: $types-array | {{{1|}}} | / }}<!--
| &#32;/&#32;
+
  -->{{ #arrayprint: $types-array
| $type
+
  | &#32;/&#32;
| {{ #switch: $type
+
  | $type
  | Effect | Fusion | Ritual | Synchro | Dark Synchro | Accel Synchro | Limit Over Accel Synchro | Xyz | Link | Token
+
  | {{ #switch: $type
    = [[$type Monster|$type]]
+
    | Effect | Fusion | Ritual | Synchro | Dark Synchro | Accel Synchro | Limit Over Accel Synchro | Xyz | Link | Token
  | Flip  | Toon  | Spirit | Union  | Gemini | Armor | Plus | Minus | Plus-Minus =  
+
      = [[$type Monster|$type]]
    = [[$type monster|$type]]
+
    | Flip  | Toon  | Spirit | Union  | Gemini | Armor | Plus | Minus | Plus-Minus =  
  | Tuner  | Dark Tuner
+
      = [[$type monster|$type]]
    = [[$type monster|$type]]
+
    | Tuner  | Dark Tuner
  | Pendulum =
+
      = [[$type monster|$type]]
    = [[$type Monster|$type]]
+
    | Pendulum =
  |#default  
+
      = [[$type Monster|$type]]
    = [[$type]]
+
    |#default  
 +
      = [[$type]]
 +
    }}
 
   }}
 
   }}
 
}}
 
}}

Revision as of 13:09, 2 July 2017