This already exists, but I'm using it here to feel out how this thing works. Working out how to add only half a repeat.
Shown with a cast-on count of 52 stitches.
1 2 3 4 5 Horizontal repeats
1 2 3 4 5 Vertical repeats