Fix example code in pagination doc templates