217700 = { # Emperor Gaozu of Tang (lived 566-635)(reigned 617-626)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yuan"
	religion = taoist
	culture = han
	add_trait = grey_eminence
	father = 247763 #Li Bing
	mother = 247744 #Lady Dugu
	# spouse = Empress Dou
	556.4.8 = {
		birth = yes
	}
	586.1.1 = {
		add_spouse = 247831
	}
	618.6.18 = {
		name = "Gaozu"
	}
	635.6.25 = {
		death = { death_reason = death_offmap }
	}
}

217701 = { # Emperor Taizong of Tang (lived 598-649)(reigned 626-649)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shimin"
	religion = taoist
	culture = han
	add_trait = fortune_builder
	add_trait = genius
	add_trait = erudite
	father = 217700 # Emperor Gaozu
	mother = 247831 # Empress Dou
	598.1.28 = {
		birth = yes
	}
	617.1.1 = { # 613 - real date
		add_spouse = 247866 # Empress Wende
	}
	617.6.1 = {
		effect = { add_consort = c_247770 } # Consort Yin
	}
	618.6.18 = {
		effect = { add_consort = c_247757 } # Consort Yang
	}
	619.1.1 = {
		effect = { add_consort = c_247769 } # Consort Wei
	}
	619.1.1 = {
		effect = { add_consort = c_247771 } # Consort Yan
	}
	626.9.4 = {
		name = "Taizong"
	}
	637.1.1 = {
		effect = { add_consort = c_217704 } # Wu Cairen
	}
	641.1.1 = {
		effect = { add_consort = c_247868 } # Xu Cairen
	}
	649.7.10 = {
		death = { death_reason = death_offmap }
	}
}

217702 = { # Emperor Gaozong of Tang (lived 628-683)(reigned 649-683)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhi"
	religion = taoist
	culture = han
	add_trait = weak
	add_trait = naive_appeaser
	father = 217701 # Emperor Taizong
	mother = 247866 # Empress Wende
	628.7.21 = {
		birth = yes
	}
	644.1.1 = {
		add_spouse = 247903 # Empress Wang
	}
	644.2.1 = {
		effect = { add_consort = c_247905 } # Consort Liu
	}
	644.5.1 = {
		effect = { add_consort = c_247904 } # Consort Xiao
	}
	648.1.1 = {
		effect = { add_lover = c_217704 } # reported affair with Wu Zetian while his father was still alive
	}
	649.7.15 = {
		name = Gaozong
	}
	650.1.1 = {
		effect = { add_consort = c_217704 } # Wu Zhaoyi (Wu Zetian)
	}
	655.12.1 = {
		add_spouse = 217704 # Wu Zetian made Empress Consort
	}
	683.12.27 = {
		death = { death_reason = death_offmap }
	}
}

217799 = { # Emperor Zhongzong of Tang (lived 656-710)(reigned 684; 705-710)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhe"
	religion = taoist
	culture = han
	add_trait = detached_priest
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	656.11.26 = {
		birth = yes
	}
	673.1.1 = {
		add_spouse = 247923 # Princess Zhao
	}
	681.1.1 = {
		add_spouse = 247924 # Empress Wei
	}
	684.1.3 = {
		name = Zhongzong
	}
	705.3.1 = {
		effect = { add_consort = c_247927 } # Shangguan Wan'er
	}
	710.7.3 = {
		death = { death_reason = death_offmap } # Has to die this way to count as a previous emperor
		#death = {
			#death_reason = death_murder_unknown_poison
			#killer = Spouse Empress Wei
		#}
	}
}

217703 = { # Emperor Ruizong of Tang (lived 662-716)(reigned 684-690; 710)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Dan"
	religion = taoist
	culture = han
	add_trait = scholarly_theologian
	add_trait = humble
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	662.6.22 = {
		birth = yes
		name = "Xulun"
	}
	669.1.1 = {
		name = "Lun"
	}
	678.1.1 = {
		name = "Dan"

		# really at an earlier date
		add_spouse = 247931 # Empress Liu
		effect = { add_consort = c_247946 } # Consort Dou
	}
	679.1.1 = {
		effect = { add_consort = c_247945 } # Consort Doulu (really 676)
	}
	684.2.27 = {
		name = "Ruizong"
	}
	716.7.16 = {
		death = { death_reason = death_offmap }
	}
}

217704 = { # Empress Wu Zetian (lived c.625-705)(reigned formally 690-705)
	dynasty = 1051152 # Wu
	name = "Ruyi"
	religion = taoist
	culture = han
	add_trait = elusive_shadow
	add_trait = attractive
	add_trait = poet
	add_trait = erudite
	female = yes
	father = 247803 # Wu Shihou
	mother = 247802 # Lady Yang
	#spouse = Gaozong
	624.2.17 = {
		birth = yes
	}
	640.1.1 = {
		name = "Meiniang"
	}
	655.1.1 = {
		name = "Hou"
	}
	680.1.1 = {
		name = "Zhao"
	}
	690.10.16 = {
		name = "Zetian"
	}
	705.12.16 = {
		death = { death_reason = death_offmap }
	}
}

217705 = { # Emperor Shang of Tang (lived 695/698(?)-714)(reigned 710)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chongmao"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	add_trait = child_of_consort
	695.1.1 = {
		birth = yes
	}
	710.7.8 = {
		name = Shang
	}
	714.9.5 = {
		death = { death_reason = death_offmap }
	}
}

217706 = { # Emperor Xuanzong of Tang (lived 685-756)(reigned 712-756)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Longji"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	mother = 247946 # consort Dou
	#spouse = Empress Wang
	#consort = Consort Wu
	#consort = Consort Mei
	#consort = Yang Guifei
	add_trait = child_of_consort
	685.9.8 = {
		birth = yes
	}
	702.1.1 = {
		add_spouse = 247964 # Empress Wang
	}
	710.1.1 = {
		effect = { add_consort = c_247970 } # Consort Yang
	}
	712.9.8 = {
		name = Xuanzong
	}
	713.1.1 = {
		effect = { add_consort = c_247967 } # Consort Wu
	}
	726.1.1 = {
		effect = { add_consort = c_247971 } # Consort Mei
	}
	745.1.1 = {
		effect = { add_consort = c_247972 } # Consort Yang Guifei
	}
	762.5.3 = {
		death = { death_reason = death_offmap }
	}
}

217707 = { # Emperor Suzong of Tang (lived 711-762)(reigned 756-762)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sisheng"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247970 # Consort Yang (not Yang Guifei)
	# spouses = # Crown Princess Wei and Empress Zhang
	add_trait = child_of_consort
	711.2.21 = {
		birth = yes
	}
	725.1.1 = {
		name = "Jun"
		effect = { add_consort = c_247993 } # Consort Wu
	}
	728.1.1 = {
		add_spouse = 247992 # Crown Princess Wei
	}
	736.1.1 = {
		name = "Yu"
	}
	738.1.1 = {
		name = "Shao"
	}
	738.6.1 = {
		name = "Heng"
	}
	744.1.1 = {
		effect = { add_consort = c_247991 } # Empress Zhang as Consort
	}
	746.1.1 = {
		remove_spouse = 247992 # Crown Princess Wei
		add_spouse = 247991 # Empress Zhang
	}
	756.8.12 = {
		name = "Suzong"
	}
	762.5.16 = {
		death = { death_reason = death_offmap }
	}
}

217708 = { # Emperor Daizong of Tang (lived 727-779)(reigned 762-779)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chu"
	religion = taoist
	culture = han
	father = 217707 # Emperor Suzong
	mother = 247993 # Consort Wu
	add_trait = child_of_consort
	727.1.9 = {
		birth = yes
	}
	741.1.1 = {
		effect = { add_consort = c_247994 } # Consort Shen
	}
	746.1.1 = {
		effect = { add_consort = c_247995 } # Consort Cui
	}
	757.1.1 = {
		effect = { add_consort = c_247997 } # Consort Dugu
	}
	758.1.1 = {
		name = "Yu"
	}
	762.5.18 = {
		name = "Daizong"
	}
	779.5.23 = {
		death = { death_reason = death_offmap }
	}
}

217709 = { # Emperor Dezong of Tang (lived 742-805)(reigned 779-805)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Kuo"
	religion = taoist
	culture = han
	father = 217708 # Emperor Daizong
	mother = 247994 # Consort Shen
	add_trait = child_of_consort
	742.5.27 = {
		birth = yes
	}
	760.1.1 = {
		effect = { add_consort = c_247998 } # Consort Wang, later Empress
	}
	762.1.1 = {
		effect = { add_consort = c_247999 } # Consort Wei
	}
	779.6.12 = {
		name = "Dezong"
	}
	786.12.3 = {
		add_spouse = 247998 # Empress Wang
	}
	# Consort Zhang declared Empress three days before her death
	805.2.25 = {
		death = { death_reason = death_offmap }
	}
}

217710 = { # Emperor Shunzong of Tang (lived 761-806)(reigned 805)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Song"
	religion = taoist
	culture = han
	father = 217709 # Emperor Dezong
	mother = 247998 # (Consort) Empress Wang
	# spouses = # Crown Princess Xiao and Consort Wang
	add_trait = child_of_consort
	761.1.1 = {
		birth = yes
	}
	805.2.28 = {
		name = "Shunzong"
	}
	806.2.11 = {
		death = { death_reason = death_offmap }
	}
}

217711 = { # Emperor Xianzong of Tang (lived 778-820)(reigned 805-820)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chun"
	religion = taoist
	culture = han
	father = 217710 # Emperor Shunzong
	#mother =
	778.3.17 = {
		birth = yes
	}
	805.9.5 = {
		name = "Xianzong"
	}
	820.2.14 = {
		death = { death_reason = death_offmap }
	}
}

217712 = { # Emperor Muzong of Tang (lived 795-824)(reigned 820-824)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Heng"
	religion = taoist
	culture = han
	father = 217711 # Emperor Xianzong
	#mother =
	795.1.1 = {
		birth = yes
	}
	820.2.20 = {
		name = "Muzong"
	}
	824.2.25 = {
		death = { death_reason = death_offmap }
	}
}

217713 = { # Emperor Jingzong of Tang (lived 809-827)(reigned 824-827)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhan"
	religion = taoist
	culture = han
	father = 217712 # Emperor Muzong
	809.7.22 = {
		birth = yes
	}
	824.2.29 = {
		name = "Jingzong"
	}
	827.1.9 = {
		death = { death_reason = death_offmap } # Has to die this way to count as a previous emperor
		#death = {
		#	death_reason = death_murder_unknown
		#}
	}
}

217714 = { # Emperor Wenzong of Tang (lived 809-840)(reigned 827-840)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ang"
	religion = taoist
	culture = han
	father = 217712 # Emperor Muzong
	#mother =
	809.10.20 = {
		birth = yes
	}
	827.1.13 = {
		name = "Wenzong"
	}
	840.2.10 = {
		death = { death_reason = death_offmap }
	}
}

217715 = { # Emperor Wuzong of Tang (lived 814-846)(reigned 840-846)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chan"
	religion = taoist
	culture = han
	father = 217712 # Emperor Muzong
	#mother =
	814.7.2 = {
		birth = yes
	}
	840.2.20 = {
		name = "Wuzong"
	}
	846.4.22 = {
		death = { death_reason = death_offmap }
	}
}

217716 = { # Emperor Xuanzong of Tang (lived 810-859)(reigned 846-859)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chen"
	religion = taoist
	culture = han
	father = 217711 # Emperor Xianzong
	#mother =
	810.7.27 = {
		birth = yes
	}
	846.4.25 = {
		name = "Xuanzong"
	}
	859.9.7 = {
		death = { death_reason = death_offmap }
	}
}

217717 = { # Emperor Yizong of Tang (lived 833-873)(reigned 853-873)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wen"
	religion = taoist
	culture = han
	father = 217716 # Emperor Xuanzong
	#mother =
	833.12.28 = {
		birth = yes
	}
	859.9.13 = {
		name = "Yizong"
	}
	873.8.15 = {
		death = { death_reason = death_offmap }
	}
}

217718 = { # Emperor Xizong of Tang (lived 862-888)(reigned 873-888)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yan"
	religion = taoist
	culture = han
	father = 217717 # Emperor Yizong
	#mother =
	862.6.8 = {
		birth = yes
	}
	873.8.16 = {
		name = "Xizong"
	}
	888.4.20 = {
		death = { death_reason = death_offmap }
	}
}

217719 = { # Emperor Zhaozong of Tang (lived 867-904)(reigned 888-900)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jie"
	religion = taoist
	culture = han
	father = 217717 # Emperor Yizong
	#mother =
	867.3.31 = {
		birth = yes
	}
	888.4.20 = {
		name = "Zhaozong"
	}
	904.9.22 = {
		death = { death_reason = death_offmap }
	}
}

217720 = { # Emperor Aidi of Tang (lived 892-908)(reigned 904-907)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zuo"
	religion = taoist
	culture = han
	father = 217719 # Emperor Zhaoozong
	#mother =
	892.9.27 = {
		birth = yes
	}
	904.9.26 = {
		name = "Aidi"
	}
	908.3.26 = {
		death = { death_reason = death_offmap }
	}
}

215596 = {
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Hongyin"
	religion = taoist
	culture = han
	900.1.1 = {
		birth = yes
	}
	956.9.3 = {
		death = yes
	}
}

217721 = { # Emperor Taizu of Song (lived 927-976)(reigned 960-976)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Kuangyin"
	religion = taoist
	culture = han
	father = 215596 # Zhao Hongyin
	#mother = # Du
	927.3.21 = {
		birth = yes
	}
	960.2.1 = {
		name = "Taizu"
	}
	976.11.14 = {
		death = { death_reason = death_offmap }
	}
}

217722 = { # Emperor Taizong of Song (lived 939-997)(reigned 976-997)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Jiong"
	religion = taoist
	culture = han
	father = 215596 # Zhao Hongyin
	#mother = # Du
	939.11.20 = {
		birth = yes
	}
	976.11.15 = {
		name = "Taizong"
	}
	997.5.8 = {
		death = { death_reason = death_offmap }
	}
}

217723 = { # Emperor Zhenzong of Song (lived 968-1022)(reigned 997-1022)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Heng"
	religion = taoist
	culture = han
	father = 217722 # Emperor Taizong
	#mother = Li Yuande
	968.12.23 = {
		birth = yes
	}
	997.5.8 = {
		name = "Zhenzong"
	}
	1022.3.23 = {
		death = { death_reason = death_offmap }
	}
}

217724 = { # Emperor Renzong of Song (lived 1010-1063)(reigned 1022-1063)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Zhen"
	religion = taoist
	culture = han
	father = 217723 # Emperor Zhenzong
	#mother = # consort Li
	1010.5.30 = {
		birth = yes
	}
	1022.3.24 = {
		name = "Renzong"
	}
	1063.3.30 = {
		death = { death_reason = death_offmap }
	}
}

217725 = { # Emperor Yinzong of Song (lived 1032-1067)(reigned 1063-1067)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Zongshi"
	religion = taoist
	culture = han
	#father = X # Zhao Yunrang (996-1059)
	#mother = # Ren
	1032.2.16 = {
		birth = yes
	}
	1062.1.1 = {
		name = "Shu"
		father = 217724 # Adopted by Emperor Renzong
	}
	1063.5.1 = {
		name = "Yinzong"
	}
	1069.1.25 = {
		death = { death_reason = death_offmap }
	}
}

217726 = { # Emperor Shenzong of Song (lived 1048-1085)(reigned 1067-1085)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Xu"
	religion = taoist
	culture = han
	father = 217725 # Emperor Yinzong
	#mother = # Empress Gao
	1048.5.25 = {
		birth = yes
	}
	1067.1.25 = {
		name = "Shenzong"
	}
	1085.4.1 = {
		death = { death_reason = death_offmap }
	}
}

217727 = { # Emperor Zhezong of Song (lived 1076-1100)(reigned 1085-1100)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Xu"
	religion = taoist
	culture = han
	father = 217726 # Emperor Shenzong
	#mother =
	1076.1.4 = {
		birth = yes
	}
	1085.4.1 = {
		name = "Zhezong"
	}
	1100.2.23 = {
		death = { death_reason = death_offmap }
	}
}

217728 = { # Emperor Huizong of Song (lived 1082-1135)(reigned 1100-1126)
	dynasty = 1051151 # Zhao - ruling Song dynasty
	name = "Ji"
	religion = taoist
	culture = han
	father = 217726 # Emperor Shenzong
	#mother = # Empress Chen
	1082.6.7 = {
		birth = yes
	}
	1100.2.23 = {
		name = "Huizong"
	}
	#1126.1.18 = { } abdicated
	1135.6.4 = {
		death = {
			#death_reason = death_dungeon
			death_reason = death_offmap # Has to die this way to count as a previous emperor
			killer = 217729 #Emperor Taizong of Jin
		}
	}
}

### Chinese Western Protectorate ###
244001 = { # (762787)
	dynasty = 1055001 #Guo
	name = "Xin"
	religion = taoist
	culture = han
	add_trait = fortune_builder
	730.7.28 = {
		birth = yes
	}
	769.1.1 = {
		add_claim = d_kumul
		add_claim = c_yangguan
		add_claim = c_kumtag
		add_claim = c_lop_nor
		add_claim = c_loulan
		add_claim = c_yuni
		add_claim = c_charkliq
		add_claim = c_cherchen
		add_claim = c_cadota
		add_claim = c_mingoi
		add_claim = c_karashar
		add_claim = c_yumen
	}
	787.9.16 = {
		death = yes
	}
}

244002 = { # (actually 747751)
	dynasty = 1055002 #Gao
	name = "Xianzhi"
	religion = taoist
	culture = han
	747.5.18 = {
		birth = yes
	}
	820.4.23 = {
		death = yes
	}
}

244003 = { # (actually 741747)
	dynasty = 1055003 #Ye
	name = "Wenguan"
	religion = taoist
	culture = han
	795.1.16 = {
		birth = yes
	}
	867.3.22 = {
		death = yes
	}
}

244004 = {
	dynasty = 1055006 #ZHANG
	name = "Huaishen"
	religion = taoist
	culture = han
	father = 206811 # really his nephew
	840.6.26 = {
		birth = yes
	}
	910.2.21 = {
		death = yes
	}
}

244005 = { # fictitious
	dynasty = 1055002 #Gao
	name = "Jiahui"
	religion = taoist
	culture = han
	890.1.1 = {
		birth = yes
	}
	970.1.1 = {
		death = yes
	}
}

244006 = { # fictitious
	dynasty = 1055000 #Feng
	name = "Yizhen"
	religion = taoist
	culture = han
	955.1.1 = {
		birth = yes
	}
	1045.1.1 = {
		death = yes
	}
}

244007 = { # fictitious
	dynasty = 1055013 #Zhong
	name = "Shao"
	religion = taoist
	culture = han
	1025.1.1 = {
		birth = yes
	}
	1110.1.1 = {
		death = yes
	}
}

244020 = {
	dynasty = 1055005 # WANG
	name = "Shao"
	religion = taoist
	culture = han
	1035.1.1 = {
		birth = yes
	}
	1095.1.1 = {
		death = yes
	}
}

244021 = {
	dynasty = 1055002 # GAO
	name = "Zunyu"
	religion = taoist
	culture = han
	1050.1.1 = {
		birth = yes
	}
	1110.1.1 = {
		death = yes
	}
}

244022 = {
	dynasty = 1055006 # ZHANG
	name = "Shen"
	religion = taoist
	culture = han
	1045.1.1 = {
		birth = yes
	}
	1105.1.1 = {
		death = yes
	}
}

244023 = {
	dynasty = 1055007 # ZHAO
	name = "Ji"
	religion = taoist
	culture = han
	1055.1.1 = {
		birth = yes
	}
	1125.1.1 = {
		death = yes
	}
}

244024 = {
	dynasty = 1055008 # MIAO
	name = "Shou"
	religion = taoist
	culture = han
	1060.1.1 = {
		birth = yes
	}
	1090.1.1 = {
		death = yes
	}
}

244025 = {
	dynasty = 1055009 # LIU
	name = "Shunqin"
	religion = taoist
	culture = han
	1057.1.1 = {
		birth = yes
	}
	1105.1.1 = {
		death = yes
	}
}

244026 = {
	dynasty = 1055010 # FAN
	name = "Yu"
	religion = taoist
	culture = han
	1067.1.1 = {
		birth = yes
	}
	1110.1.1 = {
		death = yes
	}
}

244027 = {
	dynasty = 1055011 # JIANG
	name = "Zhiqi"
	religion = taoist
	culture = han
	1050.1.1 = {
		birth = yes
	}
	1115.1.1 = {
		death = yes
	}
}

244028 = {
	dynasty = 1055012 # WANG
	name = "Wenyu"
	religion = taoist
	culture = han
	1075.1.1 = {
		birth = yes
	}
	1155.1.1 = {
		death = yes
	}
}

244029 = {
	dynasty = 1055013 # ZHONG
	name = "Fu"
	religion = taoist
	culture = han
	1065.1.1 = {
		birth = yes
	}
	1145.1.1 = {
		death = yes
	}
}

244030 = {
	dynasty = 1055014 # ZHANG
	name = "Xun"
	religion = taoist
	culture = han
	1070.1.1 = {
		birth = yes
	}
	1125.1.1 = {
		death = yes
	}
}

244031 = {
	dynasty = 1055015 # SUN
	name = "La"
	religion = taoist
	culture = han
	1075.1.1 = {
		birth = yes
	}
	1150.1.1 = {
		death = yes
	}
}

244032 = {
	dynasty = 1055005 # WANG
	name = "Hou"
	religion = taoist
	culture = han
	father = 244020 #WANG Shao
	1060.1.1 = {
		birth = yes
	}
	1139.1.1 = {
		death = yes
	}
}

244033 = {
	dynasty = 1055016 # LI
	name = "Dan"
	religion = taoist
	culture = han
	1065.1.1 = {
		birth = yes
	}
	1140.1.1 = {
		death = yes
	}
}

244034 = {
	dynasty = 1055017 # YAO
	name = "Xiong"
	religion = taoist
	culture = han
	1085.1.1 = {
		birth = yes
	}
	1145.1.1 = {
		death = yes
	}
}

244035 = {
	dynasty = 1055018 # WU
	name = "Zeren"
	religion = taoist
	culture = han
	1082.1.1 = {
		birth = yes
	}
	1165.1.1 = {
		death = yes
	}
}

244036 = {
	dynasty = 1055009 # LIU
	name = "Fa"
	religion = taoist
	culture = han
	1089.1.1 = {
		birth = yes
	}
	1155.1.1 = {
		death = yes
	}
}

244037 = {
	dynasty = 1055009 # LIU
	name = "Zhongwu"
	religion = taoist
	culture = han
	1095.1.1 = {
		birth = yes
	}
	1175.1.1 = {
		death = yes
	}
}

244038 = {
	dynasty = 1055007 # ZHAO
	name = "Yu"
	religion = taoist
	culture = han
	1099.1.1 = {
		birth = yes
	}
	1161.1.1 = {
		death = yes
	}
}

244039 = {
	dynasty = 1055017 # YAO
	name = "Gu"
	religion = taoist
	culture = han
	1098.1.1 = {
		birth = yes
	}
	1165.1.1 = {
		death = yes
	}
}

244040 = {
	dynasty = 1055019 # QIAN
	name = "Gai"
	religion = taoist
	culture = han
	1099.1.1 = {
		birth = yes
	}
	1155.1.1 = {
		death = yes
	}
}

244041 = {
	dynasty = 1055012 # WANG
	name = "Yi"
	religion = taoist
	culture = han
	1105.1.1 = {
		birth = yes
	}
	1180.1.1 = {
		death = yes
	}
}

######## /END OF PROTECTOR GENERALS ##############


#Heqin to Tibet and Tuyuhun
247081 = {
	name = "Wencheng"
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = buddhist
	culture = han
	father = 247772 #Li Daozong
	add_trait = mahayana_buddhist
	623.1.1 = {
		birth = yes
	}
	680.11.1 = {
		death = yes
	}
}

247099 = {
	name = "Jincheng"
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = buddhist
	culture = han
	father = 247916 # Li Shouli, Prince of Bin
	add_trait = mahayana_buddhist
	698.1.1 = {
		birth = yes
	}
	739.1.1 = {
		death = yes
	}
}

247101 = {
	name = "Jiangchizun"
	female = yes
	dynasty = 105823 #Meng - Rulers of Nanzhou
	religion = buddhist
	culture = han #bai
	#father = #Meng Shengluopi, King of Nanzhao
	add_trait = mahayana_buddhist
	710.1.1 = {
		birth = yes
	}
	757.1.1 = {
		death = yes
	}
}

247388 = {
	name = "Guanghua"
	female = yes
	dynasty = 105837 #Yang
	religion = taoist
	culture = han
	father = 247737 #Yang Hong
	add_trait = attractive
	580.1.1 = {
		birth = yes
	}
	622.1.1 = {
		death = yes
	}
}

247389 = {
	name = "Honghua"
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = taoist
	culture = han
	father = 247775 #Li Daoming
	add_trait = attractive
	622.1.1 = {
		birth = yes
	}
	698.4.18 = {
		death = yes
	}
}

247390 = {
	name = "Jiying" #Lady Jincheng
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = taoist
	culture = han
	father = 247777 #Li Dao'en, Prince of Guiji
	642.1.1 = {
		birth = yes
	}
	718.1.1 = {
		death = yes
	}
}

247391 = {
	name = "Xiao" #Lady Jinming
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = taoist
	culture = han
	father = 247785 #Li Chongyi
	646.1.1 = {
		birth = yes
	}
	703.1.1 = {
		death = yes
	}
}

#Qocho
248079 = {
	name = "Kongzhi"
	dynasty = 1055042
	religion = taoist
	culture = han
	add_trait = tough_soldier
	add_trait = adventurer
	add_trait = organizer
	1240.1.1 = {
		birth = yes
	}
	1282.1.1 = {
		add_trait = brilliant_strategist # new supplies
		remove_trait = tough_soldier
		add_trait = wroth # authority to punish
	}
	1286.1.1 = {
		death = yes # captured in battle, fate unknown
	}
}

242100 = {
	name = "Puyo"
	dynasty = 1055042
	religion = taoist
	culture = han
	add_trait = skilled_tactician
	add_trait = brave
	add_trait = sympathy_pagans
	add_trait = sympathy_christendom
	1150.1.1 = {
		birth = yes
	}
	1215.1.1 = {
		employer = 125501
	}
	1218.1.1 = {
		death = yes
	}
}

242101 = {
	name = "Chengsi" # unknown
	dynasty = 1055001
	religion = taoist
	culture = han
	add_trait = skilled_tactician
	add_trait = brave
	add_trait = sympathy_pagans
	add_trait = sympathy_christendom
	father = 242100
	1170.1.1 = {
		birth = yes
	}
	1215.1.1 = {
		employer = 125501
	}
	1227.12.2 = {
		employer = 172005
	}
	1236.1.1 = {
		death = yes
	}
}

242102 = {
	name = "Kan"
	dynasty = 1055001
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = brave
	add_trait = sympathy_pagans
	add_trait = sympathy_christendom
	add_trait = siege_leader
	father = 242101
	1217.1.1 = {
		birth = yes
	}
	1234.1.1 = {
		employer = 172005
	}
	1238.1.1 = {
		employer = 34850
	}
	1242.1.1 = {
		employer = 478011
	}
	1243.1.1 = {
		effect = { add_friend = 478011 }
	}
	1259.8.11 = {
		death = yes # went to court of Kublai and conquered China
	}
}

#Governors and military advisors in 769 start
248148 = {
	name = "Yuanzhong"
	dynasty = 1055016
	religion = buddhist
	culture = sogdian
	add_trait = tough_soldier
	add_trait = desert_expert
	add_trait = brave
	martial = 10
	add_trait = mahayana_buddhist
	730.1.1 = {
		birth = yes
	}
	768.1.1 = {
		culture = han # imperial surname awarded
	}
	790.1.1 = {
		death = yes
	}
}

248149 = {
	name = "Ding" # governor of Hexi corridor who fled here
	dynasty = 1055021
	religion = taoist
	culture = han
	add_trait = tough_soldier
	add_trait = organizer
	martial = 10
	730.1.1 = {
		birth = yes
	}
	769.1.1 = {
		add_claim = c_fuqi
		# add_claim = c_maqen
	}
	790.1.1 = {
		death = yes
	}
}

248150 = {
	name = "Xigu"
	dynasty = 1053301
	religion = taoist
	culture = han
	add_trait = tough_soldier
	add_trait = brave
	martial = 10
	732.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 244001
		add_claim = c_kara_khoja # Jiedushi
	}
	789.1.1 = {
		death = yes
	}
}

248151 = {
	name = "Quan"
	dynasty = 1053302
	religion = taoist
	culture = han
	add_trait = tough_soldier
	add_trait = patient
	martial = 10
	731.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 244001
		add_claim = c_luntai # Jiedushi
	}
	787.1.1 = {
		death = yes
	}
}

248152 = {
	name = "Ju"
	dynasty = 1055022
	religion = taoist
	culture = han
	add_trait = skilled_tactician
	add_trait = brave
	martial = 10
	709.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166665
	}
	770.1.1 = {
		death = yes
	}
}

248153 = {
	name = "Yang"
	dynasty = 1055055
	religion = taoist
	culture = han
	add_trait = tough_soldier
	martial = 10
	731.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166691
		add_claim = c_kashgar # Jiedushi
	}
	787.1.1 = {
		death = yes
	}
}

248154 = {
	name = "Cen"
	dynasty = 1055049
	religion = taoist
	culture = han
	add_trait = tough_soldier
	martial = 10
	731.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166703
		add_claim = c_aksu # Jiedushi
	}
	787.1.1 = {
		death = yes
	}
}

248155 = {
	name = "Riyou"
	dynasty = 1053304
	religion = taoist
	culture = han
	add_trait = tough_soldier
	martial = 10
	731.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166713
		add_claim = c_kucha # Jiedushi
	}
	787.1.1 = {
		death = yes
	}
}

248156 = {
	name = "Jing"
	dynasty = 1055022
	religion = taoist
	culture = han
	father = 248152
	add_trait = tough_soldier
	martial = 10
	731.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166665
	}
	787.1.1 = {
		death = yes
	}
}

248157 = {
	name = "Huinan"
	female = yes
	dynasty = 1055022
	religion = taoist
	culture = han
	father = 248152
	739.1.1 = {
		birth = yes
	}
	769.1.1 = {
		employer = 166665
	}
	790.1.1 = {
		death = yes
	}
}

#marriages to Tuyuhun heirs in exile
247722 = {
	name = "Ruyu" #Lady Guzang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	religion = taoist
	culture = han
	father = 247788 #Li Rong
	673.1.1 = {
		birth = yes
	}
	718.1.1 = {
		death = yes
	}
}

247723 = {
	name = "Yuanjun" #Wu Yuanjun
	female = yes
	dynasty = 1051152 # Wu
	religion = taoist
	culture = han
	father = 247813 #Wu Yanshou
	703.1.1 = {
		birth = yes
	}
	735.1.1 = {
		death = yes
	}
}

#Sui dynasty
247725 = { # Emperor Wen of Sui (lived 541-604)(reigned 581-604)
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Jian"
	religion = buddhist
	culture = han
	add_trait = diligent
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	# spouse = Dugu Qieluo, Empress Wenxian
	541.7.21 = {
		birth = yes
	}
	#557 - Real date of marriage to Empress Wenxian
	560.1.1 = {
		add_spouse = 247742
		effect = { add_lover = c_247742 }
	}
	581.3.4 = {
		name = "Wen"
	}
	604.8.13 = {
		death = { death_reason = death_offmap }
	}
}

247726 = { # Emperor Yang(di) of Sui (lived 569-618)(reigned 604-618)
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Ying"
	religion = buddhist
	culture = han
	add_trait = cruel
	add_trait = deceitful
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Princess Xiao of Western Liang
	569.1.1 = {
		birth = yes
	}
	569.4.1 = {
		name = "Guang" # father has name changed after consulting with oracles
	}
	582.1.1 = {
		add_spouse = 247754
	}
	604.8.13 = {
		name = "Yangdi"
	}
	618.4.11 = {
		death = { death_reason = death_offmap }
	}
}

247727 = { # Crown Prince Yuande, Yang Zhao of Sui
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zhao"
	religion = buddhist
	culture = han
	father = 247726 #Emperor Yang(di) of Sui
	mother = 247754 #Princess Xiao of Western Liang
	# spouse = Crown Princess Wei, daughter of Wei Shou
	584.1.1 = {
		birth = yes
	}
	606.7.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247728 = { # Emperor Gong of Sui (lived 605-619)(reigned 617-618)
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "You"
	religion = buddhist
	culture = han
	father = 247727 #Crown Prince Yuande
	# mother = Crown Princess Wei, daughter of Wei Shou
	605.1.1 = {
		birth = yes
	}
	617.12.18 = {
		name = "Gong"
	}
	619.9.14 = {
		death = { death_reason = death_offmap }
	}
}

247729 = { # Yang Zhen, Duke of Sui
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zhen"
	religion = buddhist
	culture = han
	father = 247789 #Yang Lie, Duke of Sui
	476.1.1 = {
		birth = yes
	}
	528.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247730 = { # Yang Zhong, Duke of Sui
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zhong"
	religion = buddhist
	culture = han
	father = 247729 #Yang Zhen, Duke of Sui
	# spouse = L Gutao
	507.1.1 = {
		birth = yes
	}
	538.1.1 = {
		add_spouse = 247732
	}
	568.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247731 = { # Yang Aijing
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Aijing"
	religion = buddhist
	culture = han
	father = 247729 #Yang Zhen, Duke of Sui
	510.1.1 = {
		birth = yes
	}
	565.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247732 = { # L Gutao
	female = yes
	dynasty = 1055033 # L
	name = "Gutao"
	religion = taoist
	culture = han
	# father = L Shangzhou
	# mother = Lady Yao
	# spouse = Yang Zhong, Duke of Sui
	519.1.1 = {
		birth = yes
	}
	569.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247733 = { # Yang Zan
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zan"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	# spouse = Princess Shunyang
	549.1.1 = {
		birth = yes
	}
	591.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247734 = { # Yang Song
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Song"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	553.1.1 = {
		birth = yes
	}
	570.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247735 = { # Yang Shuang
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shuang"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	563.1.1 = {
		birth = yes
	}
	587.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247736 = { # Yang Suji - fictional personal name
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Suji"
	religion = buddhist
	culture = han
	father = 247731 #Yang Aijing
	532.1.1 = {
		birth = yes
	}
	576.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247737 = { # Yang Hong
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Hong"
	religion = buddhist
	culture = han
	father = 247736 #Yang Suji
	550.1.1 = {
		birth = yes
	}
	601.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247738 = { # Yang Zheng
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zheng"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	564.1.1 = {
		birth = yes
	}
	576.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247739 = { # Yang Wanan
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Wanan"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	# spouse = Dou Rongding
	548.1.1 = {
		birth = yes
	}
	589.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247740 = { # Yang Changle
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Changle"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	# spouse = Dou Lukuan
	558.1.1 = {
		birth = yes
	}
	597.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247741 = { # Yang Shi
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shi"
	religion = buddhist
	culture = han
	father = 247730 #Yang Zhong, Duke of Sui
	mother = 247732 #L Gutao
	# spouse = Li Licheng
	560.1.1 = {
		birth = yes
	}
	603.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247742 = { # Empress Wenxian, Dugu Qieluo
	female = yes
	dynasty = 1055114 # Dugu
	name = "Qieluo"
	religion = taoist
	culture = han
	father = 247743 #General Dugu Xin
	# mother = Lady Cui
	544.1.1 = {
		birth = yes
	}
	602.9.10 = {
		death = { death_reason = death_in_china_historic }
	}
}

247743 = { # General Dugu Xin
	dynasty = 1055114 # Dugu
	name = "Xin"
	religion = taoist
	culture = han
	# father = Dugu Ku
	# spouses = Lady Cui and Lady Guo
	502.1.1 = {
		birth = yes
	}
	557.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247744 = { # Lady Dugu, mother of Gaozu of Tang
	female = yes
	dynasty = 1055114 # Dugu
	name = "Shi"
	religion = taoist
	culture = han
	father = 247743 #General Dugu Xin
	# mother = Lady Cui
	530.1.1 = {
		birth = yes
	}
	608.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247745 = { # Crown Prince Yang Yong
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Yong"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Lady Yuan Shi
	568.1.1 = {
		birth = yes
	}
	604.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247746 = { #  Princess Leping
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Lihua"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Emperor Xuan of Northern Zhou
	561.1.1 = {
		birth = yes
	}
	609.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247747 = { #  Princess Xiangguo
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Xiangguo"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Li Changya
	564.1.1 = {
		birth = yes
	}
	612.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247748 = { #  Princess Guangping
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Guangping"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Yuwen Jingli, son of Yuwen Qing
	566.1.1 = {
		birth = yes
	}
	606.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247749 = { #  Prince Xiao of Qin
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Jun"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Princess Cui
	571.1.1 = {
		birth = yes
	}
	600.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247750 = { #  Princess Wan'an
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Wan'an"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Dou Rong, Duke of Chen
	572.1.1 = {
		birth = yes
	}
	601.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247751 = { #  Prince of Shu
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Xiu"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Concubine Dong Mei (m. 578-597.8.31)
	573.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247752 = { #  Princess Lanling
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Awu"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouses = Wang Fengxiao, Liu Shu
	573.12.1 = {
		birth = yes
	}
	604.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247753 = { #  Prince of Han
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Liang"
	religion = buddhist
	culture = han
	father = 247725 #Emperor Wen of Sui
	mother = 247742 #Dugu Qieluo, Empress Wenxian
	# spouse = Dou Lushi, daughter of Dou Luji
	575.1.1 = {
		birth = yes
	}
	605.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247754 = { #  Empress Xiao
	female = yes
	dynasty = 1055084 # Xiao - ruling Western Liang dynasty
	name = "Xiliang" #Princess Xiliang
	religion = taoist
	culture = han
	# father = #Emperor Ming of Western Liang
	#mother = #Lady Zhang
	# spouses = Emperor Yang of Sui
	566.1.1 = {
		birth = yes
	}
	647.4.17 = {
		death = { death_reason = death_in_china_historic }
	}
}

247755 = { # Prince Jian of Qi
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Jian"
	religion = buddhist
	culture = han
	father = 247726 #Emperor Yang(di) of Sui
	mother = 247754 #Princess Xiao of Western Liang
	# spouse = Princess Wei, daughter of Wei Chong
	585.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247756 = { # Princess Nanyang
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Nanyang"
	religion = buddhist
	culture = han
	father = 247726 #Emperor Yang(di) of Sui
	mother = 247754 #Princess Xiao of Western Liang
	# spouse = Yuwen Shiji
	586.1.1 = {
		birth = yes
	}
	630.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247757 = { # Consort Yang of Emperor Taizong of Tang
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shi"
	religion = buddhist
	culture = han
	father = 247726 #Emperor Yang(di) of Sui
	# spouse = Emperor Taizong of Tang
	add_trait = child_of_consort
	600.1.1 = {
		birth = yes
	}
	643.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247758 = { # Prince Gao of Zhao
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Gao"
	religion = buddhist
	culture = han
	father = 247726 #Emperor Yang(di) of Sui
	# mother = # Consort Xiao
	add_trait = child_of_consort
	607.1.1 = {
		birth = yes
	}
	618.6.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247759 = { # Prince Tan of Yan
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Tan"
	religion = buddhist
	culture = han
	father = 247727 #Crown Prince Yuande
	# mother = Consort Liu
	add_trait = child_of_consort
	603.1.1 = {
		birth = yes
	}
	618.4.11 = {
		death = { death_reason = death_in_china_historic }
	}
}

247760 = { # Prince Tong of Yue, later Emperor Renjin of Eastern Sui dynasty
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Tong"
	religion = buddhist
	culture = han
	father = 247727 #Crown Prince Yuande
	# mother = Consort Liu
	add_trait = child_of_consort
	604.1.1 = {
		birth = yes
	}
	619.7.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247761 = { #  Prince Hao of Qin
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Hao"
	religion = buddhist
	culture = han
	father = 247749 #Prince Xiao of Qin
	# mother = #Princess Cui
	587.11.22 = {
		birth = yes
	}
	618.10.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

#Extended Tang family members
247762 = { #  Li Hu
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hu"
	religion = taoist
	culture = han
	# father = #Li Tianxi
	# mother = #Lady Gu
	504.1.1 = {
		birth = yes
	}
	551.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247763 = { #  Li Bing
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Bing"
	religion = taoist
	culture = han
	father = 247762 #Li Hu
	528.1.1 = {
		birth = yes
	}
	546.1.1 = {
		add_spouse = 247744 #Lady Dugu
	}
	572.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247764 = { #  Li Cheng
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Cheng"
	religion = taoist
	culture = han
	father = 247763 #Li Bing
	mother = 247744 #Lady Dugu
	547.1.1 = {
		birth = yes
	}
	593.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247765 = { #  Li Zhan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhan"
	religion = taoist
	culture = han
	father = 247763 #Li Bing
	mother = 247744 #Lady Dugu
	549.1.1 = {
		birth = yes
	}
	608.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247766 = { #  Li Boyi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Boyi"
	religion = taoist
	culture = han
	father = 247765 #Li Zhan
	592.1.1 = {
		birth = yes
	}
	671.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247767 = { #  Li Fengci
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Fengci"
	religion = taoist
	culture = han
	father = 247765 #Li Zhan
	595.1.1 = {
		birth = yes
	}
	664.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247768 = { #  Li Hong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hong"
	religion = taoist
	culture = han
	father = 247763 #Li Bing
	mother = 247744 #Lady Dugu
	553.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247769 = { #  Princess Tong'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Tong'an"
	religion = taoist
	culture = han
	father = 247763 #Li Bing
	mother = 247744 #Lady Dugu
	# spouse = Wang Yu
	559.1.1 = {
		birth = yes
	}
	612.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247770 = { #  Li Zhang
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhang"
	religion = taoist
	culture = han
	father = 247762 #Li Hu
	532.1.1 = {
		birth = yes
	}
	580.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247771 = { #  Li Shao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shao"
	religion = taoist
	culture = han
	father = 247770 #Li Zhang
	572.1.1 = {
		birth = yes
	}
	615.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247772 = { #  Li Daozong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Daozong"
	religion = taoist
	culture = han
	father = 247771 #Li Shao
	600.1.1 = {
		birth = yes
	}
	653.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247773 = { #  Li Hui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hui"
	religion = taoist
	culture = han
	father = 247762 #Li Hu
	545.1.1 = {
		birth = yes
	}
	600.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247774 = { #  Li Zhi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhi"
	religion = taoist
	culture = han
	father = 247773 #Li Hui
	574.1.1 = {
		birth = yes
	}
	620.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247775 = { #  Li Daoming
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Daoming"
	religion = taoist
	culture = han
	father = 247774 #Li Zhi
	606.1.1 = {
		birth = yes
	}
	658.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247776 = { #  Li Daoxuan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Daoxuan"
	religion = taoist
	culture = han
	father = 247774 #Li Zhi
	604.1.1 = {
		birth = yes
	}
	622.11.25 = {
		death = { death_reason = death_in_china_historic }
	}
}

247777 = { #  Li Dao'en, Prince of Guiji
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Dao'en"
	religion = taoist
	culture = han
	father = 247776 #Li Daoxuan
	620.1.1 = {
		birth = yes
	}
	678.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247778 = { #  Li Wei
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wei"
	religion = taoist
	culture = han
	father = 247762 #Li Hu
	548.1.1 = {
		birth = yes
	}
	598.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247779 = { #  Li An
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "An"
	religion = taoist
	culture = han
	father = 247778 #Li Wei
	570.1.1 = {
		birth = yes
	}
	623.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247780 = { #  Li Qiong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Qiong"
	religion = taoist
	culture = han
	father = 247779 #Li An
	587.1.1 = {
		birth = yes
	}
	600.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247781 = { #  Li Chen
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chen"
	religion = taoist
	culture = han
	father = 247779 #Li An
	589.1.1 = {
		birth = yes
	}
	620.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247782 = { #  Li Xiaogong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiaogong"
	religion = taoist
	culture = han
	father = 247779 #Li An
	591.1.1 = {
		birth = yes
	}
	640.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247783 = { #  Li Ji
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ji"
	religion = taoist
	culture = han
	father = 247779 #Li An
	593.1.1 = {
		birth = yes
	}
	638.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247784 = { #  Li Wen
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wen"
	religion = taoist
	culture = han
	father = 247779 #Li An
	596.1.1 = {
		birth = yes
	}
	630.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247785 = { #  Li Chongyi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chongyi"
	religion = taoist
	culture = han
	father = 247782 #Li Xiaogong
	625.1.1 = {
		birth = yes
	}
	682.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247786 = { #  Li Hui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hui"
	religion = taoist
	culture = han
	father = 247782 #Li Xiaogong
	628.1.1 = {
		birth = yes
	}
	689.3.23 = {
		death = { death_reason = death_in_china_historic }
	}
}

247787 = { #  Li Chongzhen
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chongzhen"
	religion = taoist
	culture = han
	father = 247782 #Li Xiaogong
	631.1.1 = {
		birth = yes
	}
	693.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247788 = { #  Li Rong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Rong"
	religion = taoist
	culture = han
	father = 247786 #Li Hui
	645.1.1 = {
		birth = yes
	}
	699.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

#Extended family members of Sui dynasty
247789 = { # Yang Lie
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Lie"
	religion = buddhist
	culture = han
	# father = Yang Hui
	447.1.1 = {
		birth = yes
	}
	501.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247790 = { # Yang Zhongkui
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zhongkui"
	religion = buddhist
	culture = han
	father = 247789 #Yang Lie, Duke of Sui
	479.1.1 = {
		birth = yes
	}
	520.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247791 = { # Yang Xing
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Xing"
	religion = buddhist
	culture = han
	father = 247789 #Yang Lie, Duke of Sui
	484.1.1 = {
		birth = yes
	}
	538.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247792 = { # Yang Guo
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Guo"
	religion = buddhist
	culture = han
	father = 247791 #Yang Xing
	500.1.1 = {
		birth = yes
	}
	552.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247793 = { # Yang Shao
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shao"
	religion = buddhist
	culture = han
	father = 247792 #Yang Guo
	521.1.1 = {
		birth = yes
	}
	572.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247794 = { # Yang Xiong
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Xiong"
	religion = buddhist
	culture = han
	father = 247793 #Yang Shao
	542.1.1 = {
		birth = yes
	}
	612.3.19 = {
		death = { death_reason = death_in_china_historic }
	}
}

247795 = { # Yang Da
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Da"
	religion = buddhist
	culture = han
	father = 247793 #Yang Shao
	548.1.1 = {
		birth = yes
	}
	612.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247796 = { # Yang Gui
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Gui"
	religion = buddhist
	culture = han
	father = 247793 #Yang Shao
	550.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247797 = { # Yang Gongren
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Gongren"
	religion = buddhist
	culture = han
	father = 247794 #Yang Xiong
	568.1.1 = {
		birth = yes
	}
	639.12.30 = {
		death = { death_reason = death_in_china_historic }
	}
}

247798 = { # Yang Shidao
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shidao"
	religion = buddhist
	culture = han
	father = 247794 #Yang Xiong
	570.1.1 = {
		birth = yes
	}
	647.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247799 = { # Yang Ze
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Ze"
	religion = buddhist
	culture = han
	father = 247795 #Yang Da
	565.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247800 = { # Yang Jian
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Jian"
	religion = buddhist
	culture = han
	father = 247795 #Yang Da
	569.1.1 = {
		birth = yes
	}
	619.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247801 = { # Yang Bao
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Bao"
	religion = buddhist
	culture = han
	father = 247795 #Yang Da
	#spouse = #Guo Lun
	575.1.1 = {
		birth = yes
	}
	623.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247802 = { # Lady Yang, Mother of Wu Zetian
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shi"
	religion = buddhist
	culture = han
	father = 247795 #Yang Da
	#spouse = #Wu Shihou
	579.1.1 = {
		birth = yes
	}
	670.10.3 = {
		death = { death_reason = death_in_china_historic }
	}
}

#Extended family members of Wu Zetian
247803 = { # Wu Shihou (Shiyue)
	dynasty = 1051152 # Wu
	name = "Shihou"
	religion = taoist
	culture = han
	father = 247815 #Wu Hua
	#mother = Lady Zhao
	#spouses = Lady Xiangli and Lady Yang
	559.1.1 = {
		birth = yes
	}
	619.1.1 = {
		add_spouse = 247802
	}
	635.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247804 = { # Wu Yuanqing
	dynasty = 1051152 # Wu
	name = "Yuanqing"
	religion = taoist
	culture = han
	father = 247803 #Wu Shihou
	#mother = Lady Xiangli
	597.1.1 = {
		birth = yes
	}
	665.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247805 = { # Wu Sansi
	dynasty = 1051152 # Wu
	name = "Sansi"
	religion = taoist
	culture = han
	father = 247804 #Wu Yuanqing
	632.1.1 = {
		birth = yes
	}
	707.8.7 = {
		death = { death_reason = death_in_china_historic }
	}
}

247806 = { # Wu Chongxun
	dynasty = 1051152 # Wu
	name = "Chongxun"
	religion = taoist
	culture = han
	father = 247805 #Wu Sansi
	#spouse = Princess Anle
	683.1.1 = {
		birth = yes
	}
	701.10.1 = {
		add_spouse = 247939
	}
	707.8.7 = {
		death = { death_reason = death_in_china_historic }
	}
}

247807 = { # Wu Jizhi
	dynasty = 1051152 # Wu
	name = "Jizhi"
	religion = taoist
	culture = han
	father = 247806 #Wu Chongxun
	mother = 247939 # Princess Anle
	701.6.1 = {
		birth = yes
	}
	749.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247808 = { # Wu Yuanshuang
	dynasty = 1051152 # Wu
	name = "Yuanshuang"
	religion = taoist
	culture = han
	father = 247803 #Wu Shihou
	#mother = Lady Xiangli
	604.1.1 = {
		birth = yes
	}
	672.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247809 = { # Wu Chengsi
	dynasty = 1051152 # Wu
	name = "Chengsi"
	religion = taoist
	culture = han
	father = 247808 #Wu Yuanshuang
	649.1.1 = {
		birth = yes
	}
	698.7.22 = {
		death = { death_reason = death_in_china_historic }
	}
}

247810 = { # Wu Yanji
	dynasty = 1051152 # Wu
	name = "Yanji"
	religion = taoist
	culture = han
	father = 247809 #Wu Chengsi
	# spouse = Princess Yongtai
	679.1.1 = {
		birth = yes
	}
	701.1.1 = {
		add_spouse = 247938
	}
	701.10.9 = {
		death = { death_reason = death_in_china_historic }
	}
}

247811 = { # Wu Yanyi
	dynasty = 1051152 # Wu
	name = "Yanyi"
	religion = taoist
	culture = han
	father = 247809 #Wu Chengsi
	680.1.1 = {
		birth = yes
	}
	730.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247812 = { # Wu Yan'an
	dynasty = 1051152 # Wu
	name = "Yan'an"
	religion = taoist
	culture = han
	father = 247809 #Wu Chengsi
	681.1.1 = {
		birth = yes
	}
	728.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247813 = { # Wu Yanshou
	dynasty = 1051152 # Wu
	name = "Yanshou"
	religion = taoist
	culture = han
	father = 247809 #Wu Chengsi
	682.1.1 = {
		birth = yes
	}
	724.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247814 = { # Wu Yanxiu
	dynasty = 1051152 # Wu
	name = "Yanguang"
	religion = taoist
	culture = han
	father = 247809 #Wu Chengsi
	#spouse = Princess Anle
	685.1.1 = {
		birth = yes
	}
	707.8.17 = {
		add_spouse = 247939
	}
	710.7.21 = {
		death = { death_reason = death_in_china_historic }
	}
}

247815 = { # Wu Hua
	dynasty = 1051152 # Wu
	name = "Hua"
	religion = taoist
	culture = han
	#father = Wu Jian
	#mother = Lady Song
	#spouse = Lady Zhao
	524.1.1 = {
		birth = yes
	}
	590.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247816 = { # Wu Shileng
	dynasty = 1051152 # Wu
	name = "Shileng"
	religion = taoist
	culture = han
	father = 247815 #Wu Hua
	#mother = Lady Zhao
	547.1.1 = {
		birth = yes
	}
	603.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247817 = { # Wu Shirang
	dynasty = 1051152 # Wu
	name = "Shirang"
	religion = taoist
	culture = han
	father = 247815 #Wu Hua
	#mother = Lady Zhao
	550.1.1 = {
		birth = yes
	}
	618.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247818 = { # Wu Hong
	dynasty = 1051152 # Wu
	name = "Hong"
	religion = taoist
	culture = han
	father = 247817 #Wu Shirang
	614.1.1 = {
		birth = yes
	}
	673.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247819 = { # Wu Youji
	dynasty = 1051152 # Wu
	name = "Youji"
	religion = taoist
	culture = han
	father = 247818 #Wu Hong
	#spouse = Princess Taiping
	656.1.1 = {
		birth = yes
	}
	690.1.1 = {
		add_spouse = 247920
	}
	712.7.17 = {
		death = { death_reason = death_in_china_historic }
	}
}

247820 = { # Wu Chongmin
	dynasty = 1051152 # Wu
	name = "Chongmin"
	religion = taoist
	culture = han
	father = 247819 #Wu Youji
	mother = 247920 #Princess Taiping
	691.1.1 = {
		birth = yes
	}
	713.8.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247821 = { # Wu Chongxing
	dynasty = 1051152 # Wu
	name = "Chongxing"
	religion = taoist
	culture = han
	father = 247819 #Wu Youji
	mother = 247920 # Princess Taiping
	693.1.1 = {
		birth = yes
	}
	713.8.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247822 = { # Lady Wu
	female = yes
	dynasty = 1051152 # Wu
	name = "Shi"
	religion = taoist
	culture = han
	father = 247819 #Wu Youji
	mother = 247920 # Princess Taiping
	695.1.1 = {
		birth = yes
	}
	734.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247823 = { # Lady Yonghe
	female = yes
	dynasty = 1051152 # Wu
	name = "Yonghe"
	religion = taoist
	culture = han
	father = 247819 #Wu Youji
	mother = 247920 # Princess Taiping
	697.1.1 = {
		birth = yes
	}
	738.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247824 = { # Wu Shun
	female = yes
	dynasty = 1051152 # Wu
	name = "Shun"
	religion = taoist
	culture = han
	father = 247803 #Wu Shihou
	mother = 247802 #Lady Yang
	#spouse = Helan Yueshi
	623.1.1 = {
		birth = yes
	}
	665.10.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247825 = { # Helan Yueshi
	dynasty = 105853 # Helan
	name = "Yueshi"
	religion = taoist
	culture = han
	#spouse = Wu Shun
	620.1.1 = {
		birth = yes
	}
	640.1.1 = {
		add_spouse = 247824
	}
	663.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247826 = { # Helan Minzhi
	dynasty = 105853 # Helan
	name = "Minzhi"
	religion = taoist
	culture = han
	father = 247825 #Helan Yueshi
	mother = 247824 #Wu Shun
	642.1.1 = {
		birth = yes
	}
	671.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247827 = { # Helan Wuwen
	dynasty = 105853 # Helan
	name = "Wuwen"
	religion = taoist
	culture = han
	father = 247825 #Helan Yueshi
	mother = 247824 #Wu Shun
	657.1.1 = {
		birth = yes
	}
	721.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247828 = { # Lady Helan
	female = yes
	dynasty = 105853 # Helan
	name = "Shi"
	religion = taoist
	culture = han
	father = 247825 #Helan Yueshi
	mother = 247824 #Wu Shun
	644.1.1 = {
		birth = yes
	}
	666.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247829 = { # Helan Wan
	dynasty = 105853 # Helan
	name = "Wan"
	religion = taoist
	culture = han
	father = 247826 #Helan Minzhi
	662.1.1 = {
		birth = yes
	}
	732.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247830 = { # Lady Wu, younger sister of Wu Zetian
	female = yes
	dynasty = 1051152 # Wu
	name = "Shi"
	religion = taoist
	culture = han
	father = 247803 #Wu Shihou
	mother = 247802 #Lady Yang
	#spouse = Guo Xiaoshen
	625.1.1 = {
		birth = yes
	}
	689.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

#Close Tang family members
247831 = { # Duchess Dou, wife of Gaozu
	female = yes
	dynasty = 1055047 # Dou
	name = "Taimu"
	religion = taoist
	culture = han
	#father = #Dou Yi
	#mother = #Princess Xiangyang of Northern Zhou
	#spouse = Emperor Gaozu of Tang
	569.1.1 = {
		birth = yes
	}
	613.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247832 = { # Li Jiancheng, Crown Prince Yin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jiancheng"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	mother = 247831 # Empress Dou
	# spouse = Zheng Guanyin
	589.1.1 = {
		birth = yes
	}
	614.1.1 = {
		add_spouse = 247833
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247833 = { # Zheng Guanyin
	female = yes
	dynasty = 1055022 # Zheng
	name = "Guanyin"
	religion = taoist
	culture = han
	father = 217700 # Zheng Jibo
	# spouse = Li Jiancheng
	599.1.1 = {
		birth = yes
	}
	676.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247834 = { # Li Chengzong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jiancheng"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	615.1.1 = {
		birth = yes
	}
	617.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247835 = { # Li Chengdao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengdao"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	618.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247836 = { # Li Chengde
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengde"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	620.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247837 = { # Li Chengxun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengxun"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	621.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247838 = { # Li Chengming
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengming"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	622.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247839 = { # Li Chengyi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengyi"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	624.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247840 = { # Li Wanshun
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wanshun"
	religion = taoist
	culture = han
	father = 247832 # Li Jiancheng
	mother = 247833 # Zheng Guanyin
	# spouse = Liu Yingdao
	622.1.1 = {
		birth = yes
	}
	661.7.8 = {
		death = { death_reason = death_in_china_historic }
	}
}

247841 = { # Li Xuanba
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xuanba"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	mother = 247831 # Empress Dou
	599.1.1 = {
		birth = yes
	}
	614.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247842 = { # Li Yuanji
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yuanji"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	mother = 247831 # Empress Dou
	# spouse = Princess Yang
	603.1.1 = {
		birth = yes
	}
	617.1.1 = {
		add_spouse = 247843
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247843 = { # Princess Yang
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Shi"
	religion = taoist
	culture = han
	father = 247797 #Yang Gongren
	601.1.1 = {
		birth = yes
	}
	637.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247844 = { # Li Chengye
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengye"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	618.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247845 = { # Li Chengluan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengluan"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	619.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247846 = { # Li Chengjiang
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengjiang"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	620.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247847 = { # Li Chengyu
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengyu"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	622.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247848 = { # Li Chengdu
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengdu"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	626.1.1 = {
		birth = yes
	}
	626.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247849 = { # Princess Wen'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wen'an"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	623.1.1 = {
		birth = yes
	}
	648.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247850 = { # Li Ling, Princess Xinye
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ling"
	religion = taoist
	culture = han
	father = 247842 # Li Yuanji
	mother = 247843 # Princess Yang
	624.1.1 = {
		birth = yes
	}
	662.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247851 = { # Princess Pingyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Pingyang"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	mother = 247831 # Empress Dou
	# spouse = Chai Shao (588638)
	598.1.1 = {
		birth = yes
	}
	623.3.14 = {
		death = { death_reason = death_in_china_historic }
	}
}

247852 = { # Chai Shao
	dynasty = 105854 # Chai
	name = "Shao"
	religion = taoist
	culture = han
	# father = # Chai Shen
	# spouse = # Princess Pingyang
	588.1.1 = {
		birth = yes
	}
	614.1.1 = {
		add_spouse = 247851
	}
	638.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247853 = { # Chai Zhewei
	dynasty = 105854 # Chai
	name = "Zhewei"
	religion = taoist
	culture = han
	father = 247852 # Chai Shao
	mother = 247851 # Princess Pingyang
	615.1.1 = {
		birth = yes
	}
	659.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247854 = { # Chai Lingwu
	dynasty = 105854 # Chai
	name = "Lingwu"
	religion = taoist
	culture = han
	father = 247852 # Chai Shao
	mother = 247851 # Princess Pingyang
	# spouse = # Princess Baling
	617.1.1 = {
		birth = yes
	}
	639.1.1 = {
		add_spouse = 247895
	}
	653.3.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247855 = { # Princess Xiangyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiangyang"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	# spouse = Dao Dan
	625.1.1 = {
		birth = yes
	}
	659.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247856 = { # Dao Dan
	dynasty = 105855 # Dao
	name = "Dan"
	religion = taoist
	culture = han
	# spouse = # Princess Pingyang
	614.1.1 = {
		birth = yes
	}
	641.1.1 = {
		add_spouse = 247855
	}
	664.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247857 = { # Dao Xiaochen
	dynasty = 105855 # Dao
	name = "Xiaochen"
	religion = taoist
	culture = han
	father = 247856 # Dao Dan
	mother = 247855 # Princess Pingyang
	# spouse = # Lady Ping
	643.1.1 = {
		birth = yes
	}
	690.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247858 = { # Consort Dao
	female = yes
	dynasty = 105855 # Dao
	name = "Shi"
	religion = taoist
	culture = han
	father = 247856 # Xiaochen
	# mother = # Lady Ping
	# spouse = # Emperor Ruizong of Tang
	663.1.1 = {
		birth = yes
	}
	693.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247859 = { # Li Zhiyun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhiyun"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	605.1.1 = {
		birth = yes
	}
	617.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247860 = { # Zhangsun Sheng
	dynasty = 1055110 # Zhangsun
	name = "Sheng"
	religion = taoist
	culture = han
	# father = # Zhangsun Si
	# spouse = # Lady Gao, daughter of Gao Jingde
	557.1.1 = {
		birth = yes
	}
	617.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247861 = { # Zhangsun Xingbu
	dynasty = 1055110 # Zhangsun
	name = "Xingbu"
	religion = taoist
	culture = han
	father = 247860 # Zhangsun Sheng
	# mother = # Lady Gao, daughter of Gao Jingde
	585.1.1 = {
		birth = yes
	}
	604.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247862 = { # Zhangsun Heng'an
	dynasty = 1055110 # Zhangsun
	name = "Heng'an"
	religion = taoist
	culture = han
	father = 247860 # Zhangsun Sheng
	# mother = # Lady Gao, daughter of Gao Jingde
	588.1.1 = {
		birth = yes
	}
	627.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247863 = { # Zhangsun Anye
	dynasty = 1055110 # Zhangsun
	name = "Anye"
	religion = taoist
	culture = han
	father = 247860 # Zhangsun Sheng
	# mother = # Lady Gao, daughter of Gao Jingde
	591.1.1 = {
		birth = yes
	}
	632.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247864 = { # Zhangsun Wuji
	dynasty = 1055110 # Zhangsun
	name = "Wuji"
	religion = taoist
	culture = han
	father = 247860 # Zhangsun Sheng
	# mother = # Lady Gao, daughter of Gao Jingde
	594.1.1 = {
		birth = yes
	}
	659.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247865 = { # Zhangsun Chong
	dynasty = 1055110 # Zhangsun
	name = "Chong"
	religion = taoist
	culture = han
	father = 247864 # Zhangsun Wuji
	# spouse = # Tang Princess Changle
	612.1.1 = {
		birth = yes
	}
	637.1.1 = {
		add_spouse = 247894
	}
	659.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247866 = { # Empress Wende
	female = yes
	dynasty = 1055110 # Zhangsun
	name = "Wende"
	religion = taoist
	culture = han
	father = 247860 # Zhangsun Sheng
	# mother = # Lady Gao, daughter of Gao Jingde
	# spouse = Emperor Taizong of Tang
	601.1.1 = {
		birth = yes
	}
	636.7.28 = {
		death = { death_reason = death_in_china_historic }
	}
}

247867 = { # Xu Xiaode
	dynasty = 1055031 # Xu
	name = "Xiaode"
	religion = taoist
	culture = han
	599.1.1 = {
		birth = yes
	}
	662.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247868 = { # Xu Hui
	female = yes
	dynasty = 1055031 # Xu
	name = "Hui"
	religion = taoist
	culture = han
	father = 247867 # Xu Xiaode
	add_trait = attractive
	add_trait = poet
	626.1.1 = {
		birth = yes
	}
	650.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247869 = { # Consort Wei
	female = yes
	dynasty = 1055025 # Wei
	name = "Gui"
	religion = taoist
	culture = han
	# father = # Wei Yuancheng
	# mother = # Lady Yang
	597.1.1 = {
		birth = yes
	}
	665.9.28 = {
		death = { death_reason = death_in_china_historic }
	}
}

247870 = { # Consort Yin
	female = yes
	dynasty = 1055069 # Yin
	name = "Fei"
	religion = taoist
	culture = han
	# father = # Yin Shishi
	599.1.1 = {
		birth = yes
	}
	643.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247871 = { # Consort Yan
	female = yes
	dynasty = 1055037 # Yan
	name = "Shi"
	religion = taoist
	culture = han
	609.1.1 = {
		birth = yes
	}
	671.7.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247872 = { # Crown Prince Li Chengqian
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengqian"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247866 # Empress Wende
	# spouse = Lady Su
	618.1.1 = {
		birth = yes
	}
	645.1.5 = {
		death = { death_reason = death_in_china_historic }
	}
}

247873 = { # Li Xiang
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiang"
	religion = taoist
	culture = han
	father = 247872 # Crown Prince Li Chengqian
	# mother = # Lady Su
	# spouse = Lady Su
	638.5.16 = {
		birth = yes
	}
	687.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247874 = { # Li Kuan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengqian"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	# mother = # mother unknown
	add_trait = child_of_consort
	619.1.1 = {
		birth = yes
	}
	630.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247875 = { # Li Ke
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ke"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247757 # Consort Yang
	add_trait = child_of_consort
	add_trait = duelist
	add_trait = strong
	619.1.1 = {
		birth = yes
	}
	653.3.10 = {
		death = { death_reason = death_in_china_historic }
	}
}

247876 = { # Li Qianli
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Qianli"
	religion = taoist
	culture = han
	father = 247875 # Li Ke
	646.1.1 = {
		birth = yes
	}
	707.8.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247877 = { # Li Wei
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wei"
	religion = taoist
	culture = han
	father = 247875 # Li Ke
	647.1.1 = {
		birth = yes
	}
	682.4.4 = {
		death = { death_reason = death_in_china_historic }
	}
}

247878 = { # Li Kun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Kun"
	religion = taoist
	culture = han
	father = 247875 # Li Ke
	649.1.1 = {
		birth = yes
	}
	702.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247879 = { # Li Yi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yi"
	religion = taoist
	culture = han
	father = 247878 # Li Kun
	665.1.1 = {
		birth = yes
	}
	743.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247880 = { # Li Jing
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jing"
	religion = taoist
	culture = han
	father = 247875 # Li Ke
	653.1.1 = {
		birth = yes
	}
	713.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247881 = { # Princess Xin'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xin'an"
	religion = taoist
	culture = han
	father = 247875 # Li Ke
	# spouse = # Yuan Sizhong
	648.1.1 = {
		birth = yes
	}
	717.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247882 = { # Li Tai
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Tai"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247866 # Empress Wende
	# spouse = # Yan Wan (622-690)
	620.1.1 = {
		birth = yes
	}
	653.1.20 = {
		death = { death_reason = death_in_china_historic }
	}
}

247883 = { # Li Xin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xin"
	religion = taoist
	culture = han
	father = 247882 # Li Tai
	# mother = # Yan Wan (622-690)
	633.1.1 = {
		birth = yes
	}
	685.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247884 = { # Li Hui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hui"
	religion = taoist
	culture = han
	father = 247882 # Li Tai
	# mother = # Yan Wan (622-690)
	644.1.1 = {
		birth = yes
	}
	683.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247885 = { # Li You
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "You"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247870 # Consort Yin
	add_trait = child_of_consort
	621.1.1 = {
		birth = yes
	}
	643.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247886 = { # Li Yin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yin"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247757 # Consort Yang
	add_trait = child_of_consort
	621.1.1 = {
		birth = yes
	}
	667.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247887 = { # Li Yun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yun"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	# mother = # Consort Wang
	add_trait = child_of_consort
	622.1.1 = {
		birth = yes
	}
	674.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247888 = { # Li Zhen
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhen"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247871 # Consort Yan
	add_trait = child_of_consort
	627.12.1 = {
		birth = yes
	}
	688.10.12 = {
		death = { death_reason = death_in_china_historic }
	}
}

247889 = { # Li Shen
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shen"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247869 # Consort Wei
	add_trait = child_of_consort
	629.1.1 = {
		birth = yes
	}
	689.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247890 = { # Li Xiao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiao"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247871 # Consort Yan
	add_trait = child_of_consort
	630.1.1 = {
		birth = yes
	}
	632.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247891 = { # Li Jian
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jian"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	add_trait = child_of_consort
	631.1.1 = {
		birth = yes
	}
	632.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247892 = { # Li Fu
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Fu"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247757 # Consort Yang
	add_trait = child_of_consort
	634.1.1 = {
		birth = yes
	}
	670.9.13 = {
		death = { death_reason = death_in_china_historic }
	}
}

247893 = { # Li Ming
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ming"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247757 # Consort Yang
	add_trait = child_of_consort
	640.1.1 = {
		birth = yes
	}
	680.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247894 = { # Li Lizhi, Princess Changle
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Lizhi"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247866 # Empress Wende
	# spouse = # Zhangsun Chong
	621.1.1 = {
		birth = yes
	}
	643.9.28 = {
		death = { death_reason = death_in_china_historic }
	}
}

247895 = { # Li Baling
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Baling"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	# spouse = # Chai Lingwu
	add_trait = child_of_consort
	621.1.1 = {
		birth = yes
	}
	653.3.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247896 = { # Princess Chengyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengyang"
	religion = taoist
	culture = han
	father = 217701 # Emperor Taizong
	mother = 247866 # Empress Wende
	# spouses = # Du He and Xue Yao
	626.1.1 = {
		birth = yes
	}
	671.5.16 = {
		death = { death_reason = death_in_china_historic }
	}
}

247897 = { # Xue Yao
	dynasty = 1055065 # Xue
	name = "Yao"
	religion = taoist
	culture = han
	# spouse = # Princess Chengyang
	617.1.1 = {
		birth = yes
	}
	645.1.1 = {
		add_spouse = 247896
	}
	671.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247898 = { # Xue Shao
	dynasty = 1055065 # Xue
	name = "Shao"
	religion = taoist
	culture = han
	father = 247897 # Xue Yao
	mother = 247896 # Princess Chengyang
	# spouse = # Princess Taiping
	652.1.1 = {
		birth = yes
	}
	681.1.1 = {
		add_spouse = 247920
	}
	688.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247899 = { # Princess Gaoyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Gaoyang"
	religion = taoist
	culture = han
	add_trait = deceitful
	add_trait = wroth
	father = 217701 # Emperor Taizong
	# spouse = # Fang Yi'ai
	# lover = Bianji
	627.1.1 = {
		birth = yes
	}
	653.3.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247900 = { # Fang Xuanling
	dynasty = 1055058 # Fang
	name = "Xuanling"
	religion = taoist
	culture = han
	579.1.1 = {
		birth = yes
	}
	648.8.18 = {
		death = { death_reason = death_in_china_historic }
	}
}

247901 = { # Fang Yi'ai
	dynasty = 1055058 # Fang
	name = "Yi'ai"
	religion = taoist
	culture = han
	father = 247900 # Fang Xuanling
	# spouse = # Princess Gaoyang
	620.1.1 = {
		birth = yes
	}
	648.1.1 = {
		add_spouse = 247899
	}
	653.3.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247902 = { # Wang Renyou
	dynasty = 1055005 # Wang
	name = "Renyou"
	religion = taoist
	culture = han
	# father = # Wang Sizheng
	597.1.1 = {
		birth = yes
	}
	659.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247903 = { # Empress Wang
	female = yes
	dynasty = 1055005 # Wang
	name = "Shi"
	religion = taoist
	culture = han
	father = 247902 # Wang Renyou
	# spouse = # Emperor Gaozong of Tang
	627.1.1 = {
		birth = yes
	}
	655.12.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247904 = { # Consort Xiao
	female = yes
	dynasty = 1055084 # Xiao
	name = "Shi"
	religion = taoist
	culture = han
	# spouse = # Emperor Gaozong of Tang
	627.1.1 = {
		birth = yes
	}
	655.12.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247905 = { # Consort Liu
	female = yes
	dynasty = 1055009 # Liu
	name = "Shi"
	religion = taoist
	culture = han
	# spouse = # Emperor Gaozong of Tang
	627.1.1 = {
		birth = yes
	}
	652.1.1 = {
		death = { death_reason = death_in_china_historic } # Possibly poisoned by Empress Wang
	}
}

247906 = { # Crown Prince Li Zhong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhong"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 247905 # Consort Liu
	add_trait = child_of_consort
	644.8.1 = {
		birth = yes # Real dob in 643
	}
	665.1.6 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247907 = { # Li Xiao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiao"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	# mother = # Consort Zheng
	add_trait = child_of_consort
	645.1.1 = {
		birth = yes
	}
	664.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247908 = { # Li Shangjin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shangjin"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	# mother = # Consort Yang
	add_trait = child_of_consort
	646.1.1 = {
		birth = yes
	}
	690.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247909 = { # Li Sujie
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sujie"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 247904 # Consort Xiao
	add_trait = child_of_consort
	648.1.1 = {
		birth = yes
	}
	690.6.24 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247910 = { # Princess Yiyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiayu"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 247904 # Consort Xiao
	add_trait = child_of_consort
	# spouse = # Quan Yi
	646.1.1 = {
		birth = yes
	}
	691.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247911 = { # Princess Gao'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xuancheng"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 247904 # Consort Xiao
	add_trait = child_of_consort
	# spouse = # Wang Xu
	649.1.1 = {
		birth = yes
	}
	671.1.1 = {
		name = "Gao'an"
	}
	714.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247912 = { # Emperor Xiaojing, Crown Prince Li Hong (652-675) (never ruled)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hong"
	religion = taoist
	culture = han
	add_trait = honest
	add_trait = just
	add_trait = kind
	add_trait = diligent
	add_trait = child_of_consort
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	# spouse = Crown Princess Pei
	652.1.1 = {
		birth = yes
	}
	655.12.1 = {
		remove_trait = child_of_consort # mother made Empress Consort
	}
	675.5.25 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	} # Poisoned, possibly by Lady Helan, his brother Li Xian, or his mother
}

247913 = { # Princess Anding
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Anding"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	add_trait = child_of_consort
	654.1.1 = {
		birth = yes
	}
	654.6.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	} # Possibly killed by Empress Wang, Consort Xiao, Princess Gaoyang, or her mother
}

247914 = { # Crown Prince Zhanghuai, Li Xian
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xian" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	# spouse = # Lady Fang
	655.1.1 = {
		birth = yes
	}
	684.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247915 = { # Li Guangshun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Guangshun" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 247914 # Li Xian
	# mother = # Consort Zhang
	add_trait = child_of_consort
	671.1.1 = {
		birth = yes
	}
	693.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247916 = { # Li Shouli
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Guangren" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 247914 # Li Xian
	# mother = # Consort Zhang
	add_trait = child_of_consort
	672.1.1 = {
		birth = yes
	}
	675.1.1 = {
		name = "Shouli"
	}
	741.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247917 = { # Li Shouyi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shouyi" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 247914 # Li Xian
	# mother = # Consort Zhang
	add_trait = child_of_consort
	675.1.1 = {
		birth = yes
	}
	703.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247918 = { # Lady Changxin
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Changxin" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 247914 # Li Xian
	# mother = # Consort Zhang
	add_trait = child_of_consort
	674.1.1 = {
		birth = yes
	}
	706.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247919 = { # Li Chenghong (Declared Emperor by invading Tibetans 763.11.18-763.11.30)
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chenghong" # different tone than younger brother's name
	religion = taoist
	culture = han
	father = 247916 # Li Shouli
	add_trait = child_of_consort
	700.1.1 = {
		birth = yes
	}
	766.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247920 = { # Princess Taiping
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Taiping"
	religion = taoist
	culture = han
	father = 217702 # Emperor Gaozong
	mother = 217704 # Wu Zetian
	# spouses = Xue Shao and Wu Youji
	665.1.1 = {
		birth = yes
	}
	713.8.2 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247921 = { # Princess Changle, daughter of Emperor Gaozu of Tang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Changle"
	religion = taoist
	culture = han
	father = 217700 # Emperor Gaozu
	# spouse = Zhao Gui
	620.1.1 = {
		birth = yes
	}
	688.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247922 = { # Zhao Gui
	dynasty = 1051151 # Zhao
	name = "Gui"
	religion = taoist
	culture = han
	# spouse = Princess Changle
	618.1.1 = {
		birth = yes
	}
	638.1.1 = {
		add_spouse = 247921
	}
	680.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247923 = { # Princess Zhao
	female = yes
	dynasty = 1051151 # Zhao
	name = "Gui"
	religion = taoist
	culture = han
	father = 247922 # Zhao Gui
	mother = 247921 # Princess Changle
	# spouse = Emperor Zhongzong of Tang
	655.1.1 = {
		birth = yes
	}
	675.5.7 = {
		death = { death_reason = death_in_china_historic }
	}
}

247924 = { # Empress Wei
	female = yes
	dynasty = 1055025 # Wei
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Wei Xuanzhen
	# mother = # Lady Cui
	664.1.1 = {
		birth = yes
	}
	710.7.21 = {
		death = { death_reason = death_in_china_historic }
	}
}

247925 = { # Shangguan Yi
	dynasty = 1055095 # Shangguan
	name = "Yi"
	religion = taoist
	culture = han
	# father = # Shangguan Hong
	608.1.1 = {
		birth = yes
	}
	665.1.4 = {
		death = { death_reason = death_in_china_historic }
	}
}

247926 = { # Shangguan Tingzhi
	dynasty = 1055095 # Shangguan
	name = "Tingzhi"
	religion = taoist
	culture = han
	father = 247925 # Shangguan Yi
	630.1.1 = {
		birth = yes
	}
	665.1.4 = {
		death = { death_reason = death_in_china_historic }
	}
}

247927 = { # Shangguan Wan'er
	female = yes
	dynasty = 1055095 # Shangguan
	name = "Wan'er"
	religion = taoist
	culture = han
	father = 247926 # Shangguan Tingzhi
	# mother = # Lady Zheng
	664.11.24 = {
		birth = yes
	}
	710.7.21 = {
		death = { death_reason = death_in_china_historic }
	}
}

247928 = { # Crown Prince Yide, Li Chongrun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chongzhao"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	mother = 247924 # Empress Wei
	682.1.1 = {
		birth = yes
	}
	684.1.1 = {
		name = "Chongrun"
	}
	701.10.8 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247929 = { # Li Chongjun
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chongjun"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	# spouse = #  Lady Yang
	add_trait = child_of_consort
	683.1.1 = {
		birth = yes
	}
	707.8.7 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247930 = { # Li Zonghui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zonghui"
	religion = taoist
	culture = han
	father = 247929 # Li Chongjun
	# mother = #  Lady Yang
	add_trait = child_of_consort
	700.1.1 = {
		birth = yes
	}
	761.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247931 = { # Empress Liu
	female = yes
	dynasty = 1055009 # Liu
	name = "Suming"
	religion = taoist
	culture = han
	# father = # Liu Yanjing
	662.1.1 = {
		birth = yes
	}
	693.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247932 = { # Princess Xindu
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xindu"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	add_trait = child_of_consort
	679.1.1 = {
		birth = yes
	}
	711.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247933 = { # Princess Yicheng
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yicheng"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	add_trait = child_of_consort
	681.1.1 = {
		birth = yes
	}
	722.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247934 = { # Princess Ding'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ding'an"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	add_trait = child_of_consort
	684.1.1 = {
		birth = yes
	}
	733.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247935 = { # Princess Changning
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Changning"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	mother = 247924 # Empress Wei
	683.1.1 = {
		birth = yes
	}
	736.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247936 = { # Princess Yongshou
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yongshou"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	mother = 247924 # Empress Wei
	684.1.1 = {
		birth = yes
	}
	704.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247937 = { # Princess Cheng'an
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Cheng'an"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	add_trait = child_of_consort
	688.1.1 = {
		birth = yes
	}
	719.1.1 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247938 = { # Princess Yongtai
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xianhui"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	mother = 247924 # Empress Wei
	# spouse = Wu Yanji
	685.1.1 = {
		birth = yes
	}
	701.10.9 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247939 = { # Princess Anle
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Guo'er"
	religion = taoist
	culture = han
	father = 217799 # Emperor Zhongzong
	mother = 247924 # Empress Wei
	# spouses = Wu Chongxun and Wu Yanxiu
	685.9.1 = {
		birth = yes
	}
	710.7.21 = {
		death = { death_reason = death_in_china_historic } # Has to die this way to count as a previous emperor
	}
}

247940 = { # Li Chengqi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengqi"
	religion = taoist
	culture = han
	add_trait = kind
	add_trait = honest
	add_trait = just
	father = 217703 # Emperor Ruizong
	mother = 247931 # Empress Liu
	#spouse = Lady Yuan
	679.1.1 = {
		birth = yes
	}
	716.1.1 = {
		name = "Xian"
	}
	742.1.15 = {
		death = { death_reason = death_in_china_historic }
	}
}

247941 = { # Li Jin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jin"
	religion = taoist
	culture = han
	add_trait = poet
	father = 247940 # Li Chengqi
	# mother = # Lady Yuan
	696.1.1 = {
		birth = yes
	}
	750.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247942 = { # Li Sizhuang
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sizhuang"
	religion = taoist
	culture = han
	add_trait = poet
	father = 247940 # Li Chengqi
	# mother = # Lady Yuan
	704.1.1 = {
		birth = yes
	}
	721.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247943 = { # Li Yu
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yu"
	religion = taoist
	culture = han
	father = 247940 # Li Chengqi
	add_trait = child_of_consort
	718.1.1 = {
		birth = yes
	}
	773.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247944 = { # Li Bin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Bin"
	religion = taoist
	culture = han
	father = 247940 # Li Chengqi
	add_trait = child_of_consort
	720.1.1 = {
		birth = yes
	}
	784.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247945 = { # Consort Doulu
	female = yes
	dynasty = 105856 # Doulu
	name = "Jinshan"
	religion = taoist
	culture = han
	# father = # Doulu Qinsu
	# spouse = # Emperor Ruizong of Tang
	661.1.1 = {
		birth = yes
	}
	740.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247946 = { # Consort Dou
	female = yes
	dynasty = 1055047 # Dou
	name = "Shi"
	religion = taoist
	culture = han
	#father = #Dou Xiaochen
	#spouse = # Emperor Ruizong of Tang
	663.1.1 = {
		birth = yes
	}
	693.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247947 = { # Princess Shouchang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shouchang"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	mother = 247931 # Empress Liu
	#spouse = # Cui Zhen
	684.1.1 = {
		birth = yes
	}
	729.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247948 = { # Princess Dai
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hua"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	mother = 247931 # Empress Liu
	#spouse = # Zheng Wanjun
	689.1.1 = {
		birth = yes
	}
	734.8.2 = {
		death = { death_reason = death_in_china_historic }
	}
}

247949 = { # Li Hui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Chengyi"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # Consort Liu
	add_trait = child_of_consort
	682.1.1 = {
		birth = yes
	}
	687.1.1 = {
		name = "Hui"
	}
	724.12.15 = {
		death = { death_reason = death_in_china_historic }
	}
}

247950 = { # Princess Jinxian
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jinxian"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	mother = 247946 # consort Dou
	add_trait = child_of_consort
	689.1.1 = {
		birth = yes
	}
	732.8.14 = {
		death = { death_reason = death_in_china_historic }
	}
}

247951 = { # Princess Yuzhen
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yuzhen"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	mother = 247946 # consort Dou
	add_trait = child_of_consort
	690.1.1 = {
		birth = yes
	}
	762.4.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247952 = { # Princess Huoguo
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Huoguo"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	add_trait = child_of_consort
	692.1.1 = {
		birth = yes
	}
	756.1.1 = {
		death = { death_reason = death_in_china_historic } # Killed by An Lushan
	}
}

247953 = { # Li Fan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Fan"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # consort Cui
	add_trait = child_of_consort
	686.1.1 = {
		birth = yes
	}
	726.5.25 = {
		death = { death_reason = death_in_china_historic }
	}
}

247954 = { # Princess Xiguo
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xiguo"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # consort Cui
	# spouses = # Xue Yan and Zhang Xiaoyi
	add_trait = child_of_consort
	689.1.1 = {
		birth = yes
	}
	725.4.3 = {
		death = { death_reason = death_in_china_historic }
	}
}

247955 = { # Princess Zhaohuai of Anxing
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Zhaohuai"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	add_trait = child_of_consort
	685.1.1 = {
		birth = yes
	}
	692.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247956 = { # Princess Jingshan
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Jingshan"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# spouse = # Xue Boyang
	add_trait = child_of_consort
	685.1.1 = {
		birth = yes
	}
	718.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247957 = { # Princess Huaiyang
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Huashan"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # Consort Wang
	# spouse = # Wang Chengqing
	add_trait = child_of_consort
	add_trait = twin
	686.1.1 = {
		birth = yes
	}
	704.11.17 = {
		death = { death_reason = death_in_china_historic }
	}
}

247958 = { # Li Ye
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ye"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # Consort Wang
	add_trait = child_of_consort
	add_trait = twin
	686.1.1 = {
		birth = yes
	}
	734.8.13 = {
		death = { death_reason = death_in_china_historic }
	}
}

247959 = { # Li Longti
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Longti"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	add_trait = child_of_consort
	692.1.1 = {
		birth = yes
	}
	702.5.9 = {
		death = { death_reason = death_in_china_historic }
	}
}

247960 = { # Princess Liangguo
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Nou"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# mother = # Consort Wang
	# spouse = # Xue Boyang
	add_trait = child_of_consort
	687.1.1 = {
		birth = yes
	}
	724.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247961 = { # Princess Xueguo
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xueguo"
	religion = taoist
	culture = han
	father = 217703 # Emperor Ruizong
	# spouses = # Wang Shouyi and Pei Xun
	add_trait = child_of_consort
	688.1.1 = {
		birth = yes
	}
	742.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247962 = { # Wang Renjiao
	dynasty = 1055005 # Wang
	name = "Renjiao"
	religion = taoist
	culture = han
	651.1.1 = {
		birth = yes
	}
	719.5.13 = {
		death = { death_reason = death_in_china_historic }
	}
}

247963 = { # Wang Shouyi
	dynasty = 1055005 # Wang
	name = "Shouyi"
	religion = taoist
	culture = han
	father = 247962 # Wang Renjiao
	# spouse = # Princess Xueguo
	680.1.1 = {
		birth = yes
	}
	704.1.1 = {
		add_spouse = 247961
	}
	725.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247964 = { # Empress Wang (Xuanzong)
	female = yes
	dynasty = 1055005 # Wang
	name = "Shi"
	religion = taoist
	culture = han
	father = 247962 # Wang Renjiao
	# spouse = # Emperor Xuanzong
	684.1.1 = {
		birth = yes
	}
	725.5.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247965 = { # Wu Youning
	dynasty = 1051152 # Wu
	name = "Youning"
	religion = taoist
	culture = han
	father = 247818 #Wu Hong
	661.1.1 = {
		birth = yes
	}
	709.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247966 = { # Wu Youzhi
	dynasty = 1051152 # Wu
	name = "Youzhi"
	religion = taoist
	culture = han
	father = 247818 #Wu Hong
	#spouse = Lady Guo
	666.1.1 = {
		birth = yes
	}
	708.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247967 = { # Consort Wu (Xuanzong)
	female = yes
	dynasty = 1051152 # Wu
	name = "Youzhi"
	religion = taoist
	culture = han
	father = 247966 #Wu Youzhi
	#mother = # Lady Guo
	#spouse = # Emperor Xuanzong
	696.1.1 = {
		birth = yes
	}
	738.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247968 = { # Yang Quanjie
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Quanjie"
	religion = taoist
	culture = han
	father = 247800 #Yang Jian
	600.1.1 = {
		birth = yes
	}
	663.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247969 = { # Yang Zhiqing
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Zhiqing"
	religion = taoist
	culture = han
	father = 247968 #Yang Quanjie
	649.1.1 = {
		birth = yes
	}
	710.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247970 = { # Consort Yang (Xuanzong)
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Guipin"
	religion = taoist
	culture = han
	father = 247969 #Yang Zhiqing
	689.1.1 = {
		birth = yes
	}
	729.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247971 = { # Consort Mei (Xuanzong)
	female = yes
	dynasty = 1055011 # Jiang
	name = "Zaiping"
	religion = taoist
	culture = han
	# father = #Jiang Zhongxun
	710.1.1 = {
		birth = yes
	}
	756.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
	# Killed by An Lushan
}

219551 = { # Father of Yang Guifei
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Xuanyan"
	religion = taoist
	culture = han
	# Fictional connection to connect the dynasty tree
	father = 247969 #Yang Zhiqing
	681.3.15 = { # Fictional date
		birth = yes
	}
	741.2.17 = { # Fictional date
		death = { death_reason = death_in_china_historic }
	}
}

247972 = { # Consort Yang Guifei (Xuanzong)
	female = yes
	dynasty = 105837 # Yang - ruling Sui dynasty
	name = "Yuhuan"
	religion = taoist
	culture = han
	add_trait = attractive
	father = 219551 #Yang Xuanyan
	719.6.26 = {
		birth = yes
	}
	756.7.15 = {
		death = { death_reason = death_in_china_historic } # Killed by An Lushan
	}
}

247973 = { # Crown Prince Li Cong
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sizhi"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Liu
	add_trait = child_of_consort
	700.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Tan"
	}
	736.1.1 = {
		name = "Cong"
	}
	752.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247974 = { # Crown Prince Li Ying
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Siqian"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Zhou
	add_trait = child_of_consort
	701.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Hong"
	}
	736.1.1 = {
		name = "Ying"
	}
	737.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247975 = { # Li Yan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sizhen"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Qian
	add_trait = child_of_consort
	709.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Qia"
	}
	736.1.1 = {
		name = "Yan"
	}
	752.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247976 = { # Li Yao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sichu"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Huangfu
	add_trait = child_of_consort
	710.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Juan"
	}
	736.1.1 = {
		name = "Yao"
	}
	737.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247977 = { # Li Wan
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Sixuan"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Liu
	add_trait = child_of_consort
	711.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Huang"
	}
	736.1.1 = {
		name = "Wan"
	}
	755.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247978 = { # Li Ju
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ju"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Liu
	add_trait = child_of_consort
	712.1.1 = {
		birth = yes
	}
	725.1.1 = {
		name = "Ju" # different tone
	}
	737.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247979 = { # Li Yi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Ju"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	716.1.1 = {
		birth = yes
	}
	717.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247980 = { # Li Sui
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Wei"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Liu
	add_trait = child_of_consort
	717.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Sui"
	}
	765.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247981 = { # Li Jiao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yun"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Gao
	add_trait = child_of_consort
	718.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Jiao"
	}
	783.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247982 = { # Li Min
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Min"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	719.1.1 = {
		birth = yes
	}
	720.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247983 = { # Li Lin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Yun"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Guo
	add_trait = child_of_consort
	720.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Lin"
	}
	757.3.14 = {
		death = { death_reason = death_in_china_historic }
	}
}

247984 = { # Li Mao
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Qing"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	720.1.1 = {
		birth = yes
	}
	736.1.1 = { #733 - real date of marriage
		name = "Mao"
		add_spouse = 247972 # Yang Guifei
	}
	737.6.1 = {
		remove_spouse = 247972 # Emperor Xuanzong covets Yang Guifei and makes her a Taoist nun
	}
	775.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247985 = { # Li Bin
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Hui"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	# mother = # Consort Liu
	add_trait = child_of_consort
	721.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Bin"
	}
	784.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247986 = { # Li Qi
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Mu"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	722.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Qi"
	}
	764.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247987 = { # Princess Ningqin
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xinxing"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247970 # Consort Yang (not Yang Guifei)
	add_trait = child_of_consort
	725.1.1 = {
		birth = yes
	}
	736.1.1 = {
		name = "Ningqin"
	}
	786.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247988 = { # Princess Shangxian
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shangxian"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	717.1.1 = {
		birth = yes
	}
	720.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247989 = { # Princess Xianyi
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Xianyi"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	# spouses = # Yang Hui and Cui Song
	add_trait = child_of_consort
	724.1.1 = {
		birth = yes
	}
	784.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247990 = { # Princess Taihua
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Taihua"
	religion = taoist
	culture = han
	father = 217706 # Emperor Xuanzong
	mother = 247967 # Consort Wu
	add_trait = child_of_consort
	727.1.1 = {
		birth = yes
	}
	756.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247991 = { # Empress Zhang (Suzong)
	female = yes
	dynasty = 1055014 # Zhang
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Zhang Quyi
	# spouse = # Emperor Suzong
	728.1.1 = {
		birth = yes
	}
	762.5.16 = {
		death = { death_reason = death_in_china_historic }
	}
}

247992 = { # Crown Princess Wei (Suzong)
	female = yes
	dynasty = 1055025 # Wei
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Wei Yuangui
	# spouse = # Emperor Suzong
	712.1.1 = {
		birth = yes
	}
	757.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247993 = { # Consort Wu (Suzong)
	female = yes
	dynasty = 1051152 # Wu (different from Wu Zetian's surname)
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Wu Linggui
	# spouse = # Emperor Suzong
	709.1.1 = { # real dob 713
		birth = yes
	}
	740.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247994 = { # Consort Shen (Daizong)
	female = yes
	dynasty = 1055026 # Shen
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Shen Yizhi
	# spouse = # Emperor Daizong
	726.1.1 = {
		birth = yes
	}
	759.1.1 = {
		death = { death_reason = death_in_china_historic } # Disappeared, not officially declared dead until 805
	}
}

247995 = { # Consort Cui (Daizong)
	female = yes
	dynasty = 1055026 # Shen
	name = "Shi"
	religion = taoist
	culture = han
	# mother = # Lady Yang of Han, Yang Guifei's sister
	# spouse = # Emperor Daizong
	730.1.1 = {
		birth = yes
	}
	757.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247996 = { # Princess Shengping
	female = yes
	dynasty = 1051150 # Li - ruling Tang dynasty
	name = "Shengping"
	religion = taoist
	culture = han
	father = 217708 # Emperor Daizong
	mother = 247995 # Consort Cui
	add_trait = child_of_consort
	750.1.1 = {
		birth = yes
	}
	805.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

247997 = { # Consort Dugu (Daizong)
	female = yes
	dynasty = 1055114 # Dugu
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Dugu Ying
	# spouse = # Emperor Daizong
	735.1.1 = {
		birth = yes
	}
	775.11.3 = {
		death = { death_reason = death_in_china_historic }
	}
}

247998 = { # Empress Wang (Dezong)
	female = yes
	dynasty = 1055005 # Wang
	name = "Shi"
	religion = taoist
	culture = han
	# father = # Wang Yu
	# spouse = # Emperor Dezong
	744.1.1 = {
		birth = yes
	}
	786.12.6 = {
		death = { death_reason = death_in_china_historic }
	}
}

247999 = { # Consort Wei (Dezong)
	female = yes
	dynasty = 1055025 # Wei
	name = "Shi"
	religion = taoist
	culture = han
	# grandfather = # Wei Zhuo
	# spouse = # Emperor Dezong
	746.1.1 = {
		birth = yes
	}
	809.1.1 = {
		death = { death_reason = death_in_china_historic }
	}
}

206811 = {
	name = "Yichao"
	dna = wynehxmbzzh
	properties = nd0njn00000000dc00
	dynasty = 1055006 #ZHANG
	religion = taoist
	culture = han
	add_trait = skilled_tactician
	add_trait = brave
	add_trait = inspiring_leader
	martial = 6
	799.1.1 = {
		birth = yes
	}
	872.1.1 = {
		death = yes
	}
}

# Outlaws
242300 = {
	name = "Jiang"
	dynasty = 1053100 # Song
	religion = taoist
	culture = han
	disallow_random_traits = yes
	martial = 14
	add_trait = grey_eminence
	add_trait = peasant_leader
	add_trait = shrewd
	add_trait = just
	add_trait = humble
	add_trait = patient
	add_trait = diligent
	add_trait = gregarious
	add_trait = ambitious
	add_trait = master_of_flame
	add_trait = inspiring_leader
	add_trait = administrator
	1030.1.1 = {
		birth = yes
		give_nickname = the_timely_rain
		prestige = 500
	}
	1127.1.1 = {
		death = yes
	}
}

242301 = {
	name = "Junyi"
	dynasty = 1053101 # Lu
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = brilliant_strategist
	add_trait = strong
	add_trait = master_of_flame
	add_trait = diligent
	add_trait = just
	add_trait = inspiring_leader
	1030.1.1 = {
		birth = yes
		give_nickname = the_jade_unicorn
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242302 = {
	name = "Yong"
	dynasty = 1053102 # Wu
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = brilliant_strategist
	add_trait = trickster
	add_trait = logistics_expert
	add_trait = genius
	add_trait = strategist
	add_trait = deceitful
	add_trait = patient
	1030.1.1 = {
		birth = yes
		give_nickname = the_wizard
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242303 = {
	name = "Sheng"
	dynasty = 1053103 # Gongshun
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = mastermind_theologian
	add_trait = mystic
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242304 = {
	name = "Sheng"
	dynasty = 1053104 # Guan
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = strong
	add_trait = brawny
	add_trait = logistics_expert
	1030.1.1 = {
		birth = yes
		give_nickname = the_big_halberd
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242305 = {
	name = "Chong"
	dynasty = 1053105 # Lin
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = master_of_flame
	add_trait = cavalry_leader
	add_trait = brave
	1030.1.1 = {
		birth = yes
		give_nickname = the_panther_head
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242306 = {
	name = "Ming"
	dynasty = 1053106 # Qin
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = brilliant_strategist
	add_trait = duelist
	add_trait = logistics_expert
	add_trait = brawny
	add_trait = holy_warrior
	1030.1.1 = {
		birth = yes
		give_nickname = the_thunderbolt
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242307 = {
	name = "Zhuo"
	dynasty = 1053107 # Huyan
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = brilliant_strategist
	add_trait = duelist
	add_trait = logistics_expert
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242308 = {
	name = "Rong"
	dynasty = 1053108 # Hua
	religion = taoist
	culture = han
	martial = 15
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = master_of_flame
	add_trait = hunter
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242309 = {
	name = "Jin"
	dynasty = 1053109 # Chai
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = charismatic_negotiator
	add_trait = diligent
	add_trait = charitable
	1030.1.1 = {
		birth = yes
		give_nickname = the_whirlwind
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242310 = {
	name = "Yin"
	dynasty = 1053110 # Li
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = misguided_warrior
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242311 = {
	name = "Tong"
	dynasty = 1053111 # Zhu
	religion = taoist
	culture = han
	dna = chlcczfbbbv # Magnificent black beard
	prp = cb0cdk00000000ab00
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = patient
	add_trait = brave
	add_trait = sapper
	1030.1.1 = {
		birth = yes
		give_nickname = beautiful_beard
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242312 = {
	name = "Da"
	dynasty = 1053112 # Lu
	religion = taoist
	culture = han
	martial = 14
	disallow_random_traits = yes
	add_trait = brilliant_strategist
	add_trait = drunkard
	add_trait = gluttonous
	add_trait = shrewd
	add_trait = wroth
	add_trait = brawny
	add_trait = strong
	add_trait = logistics_expert
	1030.1.1 = {
		birth = yes
		give_nickname = the_tattooed_monk
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242313 = {
	name = "Song"
	dynasty = 1053113 # Wu
	religion = taoist
	culture = han
	martial = 17
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = drunkard
	add_trait = cannibal
	add_trait = just
	add_trait = wroth
	add_trait = strong
	add_trait = chaste
	1030.1.1 = {
		birth = yes
		give_nickname = nick_the_pilgrim
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242314 = {
	name = "Ping"
	dynasty = 1053114 # Dong
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = wroth
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242315 = {
	name = "Qin"
	dynasty = 1053115 # Zhang
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = trickster
	add_trait = frail
	add_trait = deceitful
	add_trait = shrewd
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242316 = {
	name = "Zhi"
	dynasty = 1053116 # Yang
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = skilled_tactician
	add_trait = humble
	add_trait = master_of_flame
	add_trait = brawny
	add_trait = duelist
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242317 = {
	name = "Ning"
	dynasty = 1053117 # Xu
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242318 = {
	name = "Chao"
	dynasty = 1053118 # Suo
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = brawny
	add_trait = wroth
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242319 = {
	name = "Zong"
	dynasty = 1053119 # Dai
	religion = taoist
	culture = han
	disallow_random_traits = yes
	add_trait = charismatic_negotiator
	add_trait = zealous
	add_trait = patient
	add_trait = quick
	add_trait = mystic
	add_trait = sapper
	1030.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242320 = {
	name = "Tang"
	dynasty = 1053120 # Liu
	religion = taoist
	culture = tangut
	dna = daceacaebal
	prp = cl0cbd000000000000
	disallow_random_traits = yes
	add_trait = skilled_tactician
	add_trait = deceitful
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242321 = {
	name = "Kui"
	dynasty = 1053121 # Li
	religion = taoist
	culture = han
	disallow_random_traits = yes
	martial = 20
	add_trait = tough_soldier
	add_trait = drunkard
	add_trait = gluttonous
	add_trait = shrewd
	add_trait = wroth
	add_trait = brawny
	add_trait = strong
	add_trait = cruel
	add_trait = lunatic
	add_trait = trusting
	add_trait = brave
	add_trait = aggressive_leader
	1030.1.1 = {
		birth = yes
		give_nickname = the_black_whirlwind
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242322 = {
	name = "Jin"
	dynasty = 1053122 # Shi
	religion = taoist
	culture = han
	martial = 13
	disallow_random_traits = yes
	add_trait = misguided_warrior
	add_trait = duelist
	add_trait = wroth
	add_trait = master_of_flame
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242323 = {
	name = "Hong"
	dynasty = 1053123 # Mu
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = drunkard
	add_trait = brawny
	1040.1.1 = {
		birth = yes
		give_nickname = the_unrestrained
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242324 = {
	name = "Heng"
	dynasty = 1053124 # Lei
	religion = taoist
	culture = han
	martial = 10
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = just
	add_trait = brawny
	add_trait = gregarious
	1040.1.1 = {
		birth = yes
		give_nickname = the_winged_tiger
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242325 = {
	name = "Jun"
	dynasty = 1053125 # Li
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	add_trait = master_of_flame
	add_trait = greedy
	add_trait = deceitful
	1040.1.1 = {
		birth = yes
		give_nickname = the_turbulent_river_dragon
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242326 = { # Ruan the second
	name = "Xiao'er"
	dynasty = 1053126 # Ruan
	religion = taoist
	culture = han
	father = 242332
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	1034.1.1 = {
		birth = yes
		give_nickname = the_ferocious_giant
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242327 = {
	name = "Heng"
	dynasty = 1053127 # Zhang
	religion = taoist
	culture = han
	father = 242330
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242328 = { # Ruan the fifth
	name = "Xiaowu"
	dynasty = 1053126 # Ruan
	religion = taoist
	culture = han
	father = 242332
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	1037.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242329 = {
	name = "Shun"
	dynasty = 1053127 # Zhang
	religion = taoist
	culture = han
	father = 242330
	disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = strong
	add_trait = cruel
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242330 = {
	name = "Chuke"
	dynasty = 1053127 # Zhang
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1000.1.1 = {
		birth = yes
	}
	1045.1.1 = {
		death = yes
	}
}

242331 = { # Ruan the seventh
	name = "Xiaoqi"
	dynasty = 1053126 # Ruan
	religion = taoist
	culture = han
	father = 242332
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1039.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242332 = {
	name = "Gai"
	dynasty = 1053126 # Ruan
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1000.1.1 = {
		birth = yes
	}
	1060.1.1 = {
		death = yes
	}
}

242333 = {
	name = "Xiong"
	dynasty = 1053129 # Yang
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = master_of_flame
	add_trait = attractive
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242334 = {
	name = "Xiu"
	dynasty = 1053130 # Shi
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = attractive
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242335 = {
	name = "Zhen"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	father = 242338
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242336 = {
	name = "Bao"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	father = 242338
	#disallow_random_traits = yes
	add_trait = tough_soldier
	add_trait = master_of_flame
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242337 = {
	name = "Qing"
	dynasty = 1053132 # Yan
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = charismatic_negotiator
	add_trait = duelist
	add_trait = gregarious
	add_trait = attractive
	add_trait = shrewd
	1040.1.1 = {
		birth = yes
		give_nickname = the_prodigy
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242338 = {
	name = "Wuji"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	father = 242340
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1000.1.1 = {
		birth = yes
	}
	1045.1.1 = {
		death = yes
	}
}

242339 = {
	name = "Xuanling"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	father = 242340
	#disallow_random_traits = yes
	add_trait = tough_soldier
	1000.1.1 = {
		birth = yes
	}
	1045.1.1 = {
		death = yes
	}
}

242340 = {
	name = "Shilian"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	#disallow_random_traits = yes
	add_trait = tough_soldier
	960.1.1 = {
		birth = yes
	}
	1020.1.1 = {
		death = yes
	}
}

242341 = {
	name = "Gu"
	dynasty = 1053131 # Xie
	religion = taoist
	culture = han
	female = yes
	father = 242339
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	add_trait = master_schemer
	add_trait = master_of_flame
	1040.1.1 = {
		birth = yes
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242342 = {
	name = "San Nian"
	dynasty = 1053133 # Hu
	religion = taoist
	culture = han
	female = yes
	#disallow_random_traits = yes
	add_trait = skilled_tactician
	add_trait = strong
	1040.1.1 = {
		birth = yes
		effect = {
			set_character_flag = special_marshal
		}
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242343 = {
	name = "Er Niang"
	dynasty = 1053134 # Sun
	religion = taoist
	culture = han
	female = yes
	#disallow_random_traits = yes
	add_trait = charismatic_negotiator
	add_trait = mystic
	add_trait = cannibal
	add_trait = shrewd
	1040.1.1 = {
		birth = yes
		give_nickname = nick_the_witch
		effect = {
			set_character_flag = special_marshal
		}
	}
	1066.1.1 = {
		employer = 242300
	}
	1127.1.1 = {
		death = yes
	}
}

242344 = {
	name = "Bi"
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = master_of_flame
	740.1.1 = {
		birth = yes
	}
	820.1.1 = {
		death = yes
	}
}

242345 = {
	name = "Zhou"
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = master_of_flame
	840.1.1 = {
		birth = yes
	}
	910.1.1 = {
		death = yes
	}
}

242346 = {
	name = "Gun"
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = master_of_flame
	1107.1.1 = {
		birth = yes
	}
	1197.1.1 = {
		death = yes
	}
}

242347 = {
	name = "Xuanling"
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = master_of_flame
	1177.1.1 = {
		birth = yes
	}
	1267.1.1 = {
		death = yes
	}
}

242348 = {
	name = "Yu"
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = master_of_flame
	1247.1.1 = {
		birth = yes
	}
	1337.1.1 = {
		death = yes
	}
}

261132 = {
	name = "Li Keyong"
	dynasty = 1062562
	religion = taoist
	culture = han
	851.1.1 = {
		birth = yes
	}
	908.1.1 = {
		death = { death_reason = death_offmap }
	}
}

261133 = {
	name = "Zhuangzong"
	dynasty = 1062562
	religion = taoist
	culture = han
	father = 261132
	885.1.1 = {
		birth = yes
	}
	926.1.1 = {
		death = { death_reason = death_offmap }
	}
}

261134 = {
	name = "Mingzong"
	dynasty = 1062562
	religion = taoist
	culture = han
	father = 261132
	867.1.1 = {
		birth = yes
	}
	933.1.1 = {
		death = { death_reason = death_offmap }
	}
}

261135 = {
	name = "Min"
	dynasty = 1062562
	religion = taoist
	culture = han
	father = 261134
	914.1.1 = {
		birth = yes
	}
	934.1.1 = {
		death = { death_reason = death_offmap }
	}
}

261136 = {
	name = "Mo"
	dynasty = 1062562
	religion = taoist
	culture = han
	father = 261134
	885.1.1 = {
		birth = yes
	}
	937.1.1 = {
		death = { death_reason = death_offmap }
	}
}

# Cao family
1059714 = {
	name = "Yijin"
	dynasty = 1055036
	religion = taoist
	culture = han
	add_trait = brilliant_strategist
	add_trait = ambitious
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	865.1.1 = {
		birth = yes
	}
	935.1.1 = {
		death = yes
	}
}

1059715 = {
	name = "Huinan" # unnamed daughter of Cao Yijin
	dynasty = 1055036
	female = yes
	religion = taoist
	culture = han
	father = 1059714
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	905.1.1 = {
		birth = yes
	}
	926.1.1 = {
		add_spouse = 166768 # not really but this gives realm alliance and some staying power
	}
	937.1.1 = {
		death = yes
	}
}

1059716 = {
	name = "Yuande"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059714
	add_trait = tough_soldier
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	890.1.1 = {
		birth = yes
	}
	936.1.1 = { # historical claims toward Qocho
		add_claim = c_lop_nor
		add_claim = c_kumtag
		add_claim = c_kumul
		effect = {
			spawn_unit = {
				province = c_dunhuang
				owner = ROOT
				troops = {
					light_infantry = { 600 600 }
					heavy_infantry = { 300 300 }
				}
				attrition = 1
			}
		}
	}
	939.1.1 = {
		death = yes
	}
}

1059717 = {
	name = "Yuanshen"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059714
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	892.1.1 = {
		birth = yes
	}
	944.1.1 = {
		death = yes
	}
}

1059718 = {
	name = "Yuanzhong"
	dynasty = 1055036
	religion = buddhist
	culture = han
	father = 1059714
	add_trait = charismatic_negotiator
	add_trait = quick
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	add_trait = theravada_buddhist
	920.1.1 = {
		birth = yes # maybe
	}
	974.1.1 = {
		death = yes
	}
}

1059719 = {
	name = "Jiangui" # unnamed daughter of Cao Yijin
	dynasty = 1055036
	female = yes
	religion = taoist
	culture = han
	father = 1059714
	add_trait = sympathy_zoroastrianism
	add_trait = sympathy_islam
	add_trait = sympathy_christendom
	912.1.1 = {
		birth = yes
	}
	934.1.1 = {
		add_spouse = 166686
	}
	960.1.1 = {
		death = yes
	}
}

1059720 = {
	name = "Yangong"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059716
	937.1.1 = {
		birth = yes
	}
	976.1.1 = {
		death = yes
	}
}

1059721 = {
	name = "Yanlu"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059716
	938.1.1 = {
		birth = yes
	}
	1002.1.1 = {
		death = yes
	}
}

1059722 = {
	name = "Zongshou"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059718
	add_trait = quick
	968.1.1 = {
		birth = yes # maybe
	}
	1014.1.1 = {
		death = yes
	}
}

1059723 = {
	name = "Zongshou"
	dynasty = 1055036
	religion = taoist
	culture = han
	father = 1059722
	add_trait = quick
	988.1.1 = {
		birth = yes # maybe
	}
	1030.1.1 = {
		death = yes # Tanguts defeat Guiyi Circuit
	}
}