Template:API doc function