%s and %d are format identifiers used by
string.format(). They practicly take the arguments passed and format them according to how they're configured in the place those identifiers appear in the string. This function is also known as the global,
format().
See the C documentation of
sprintf() for more information on format identifiers and their configurations.