Template:Arraypush

From Yugipedia
Jump to: navigation, search
Template documentation

{{arraypush|name of array|item to add to the array}} is used to add an element to an array.

Example

{{ #arraydefine: $cards | Dark Magician, Dark Magician Girl }}

The $cards array contains "Dark Magician" and "Dark Magician Girl".

{{ arraypush | $cards | Magician of Black Chaos }}

The $cards array now contains "Dark Magician", "Dark Magician Girl", and "Magician of Black Chaos".