Which doesn't disprove the definition. Instead of using Wikipedia you might try something more authoritative such as the government genome web site or the NCBI of the NIH.
"he
X and
Y chromosomes, also known as the
sex chromosomes, determine the biological sex of an individual: females inherit an X chromosome from the father for a XX genotype, while males inherit a Y chromosome from the father for a XY genotype (mothers only pass on X chromosomes)."
The Y chromosome: beyond gender determination).
"
Primary sex determination is the determination of the gonads. In mammals, primary sex determination is strictly chromosomal and is not usually influenced by the environment. In most cases, the female is XX and the male is XY. Every individual must have at least one X chromosome. Since the female is XX, each of her eggs has a single X chromosome. The male, being XY, can generate two types of sperm: half bear the X chromosome, half the Y. If the egg receives another X chromosome from the sperm, the resulting individual is XX, forms ovaries, and is female; if the egg receives a Y chromosome from the sperm, the individual is XY, forms testes, and is male. The Y chromosome carries a gene that encodes a testis-determining factor. This factor organizes the gonad into a testis rather than an ovary. Unlike the situation in
Drosophila (discussed below), the mammalian Y chromosome is a crucial factor for determining sex in mammals. A person with five X chromosomes and one Y chromosome (XXXXXY) would be male."
Chromosomal Sex Determination in Mammals - Developmental Biology - NCBI Bookshelf.