User:Thelazyleo/sandbox/2

This is a helper template that is required by User:Thelazyleo/sandbox/1.

It takes 5 parameters: array, sizeof(array), spliceOffset, spliceLength, replaceArray

The 5th patameter is optional. SpliceOffset and spliceLength MUST be 0 or greater for them to work properly.