 The "temple" in "temple name" (廟號) refers to the grand temples (太廟) built by each dynasty for the purpose of ancestor worship.The temple name of each monarch was recorded on their respective ancestral tablet placed within the grand temple.Temple names trace their origins to the Shang dynasty of China.