Accurately Texturing Tiles

Not sure what you are asking. Just use regular tiling textures, and then model in a separate strip for the different pattern trim part. No need to over complicate your whole shader to support some trim, but you could use a mask I suppose. You would simply tile the small tiles more and make sure you paint the mask to line up with the desired tiling pattern.