All major guitar scales are built the same way. Whole, whole, half, whole, whole whole half. If you were to play in the key of D Major as illustrated above, it would now be D Ionian. If you were playing in the key of C major, it would be C Ionian. If your not familiar with reading music, here is a real basic idea of what is going on.
Notes can continue above and below each of the lines.
The key of C below does do this. Look at the illustrations above. It is now the key of C major. A good way to look at music is how it is so mathematical and how it all repeats. I explain the key of C major for a very important reason.