@misc{ enwiki:1215051708, author = "{Wikipedia contributors}", title = "Wedding of Frederik, Crown Prince of Denmark, and Mary Donaldson --- {Wikipedia}{,} The Free Encyclopedia", year = "2024", url = "https://en.wikipedia.org/w/index.php?title=Wedding_of_Frederik,_Crown_Prince_of_Denmark,_and_Mary_Donaldson&oldid=1215051708", note = "[Online; accessed 12-July-2024]" }
url
(\usepackage{url}
somewhere in the preamble), which tends to give much more nicely formatted web addresses, the following may be preferred:
@misc{ enwiki:1215051708, author = "{Wikipedia contributors}", title = "Wedding of Frederik, Crown Prince of Denmark, and Mary Donaldson --- {Wikipedia}{,} The Free Encyclopedia", year = "2024", howpublished = "\url{https://en.wikipedia.org/w/index.php?title=Wedding_of_Frederik,_Crown_Prince_of_Denmark,_and_Mary_Donaldson&oldid=1215051708}", note = "[Online; accessed 12-July-2024]" }