@misc{ wiki:xxx, author = "Wikimedia Commons", title = "Uncle Sam --- Wikimedia Commons{,} the free media repository", year = "2022", url = "https://commons.wikimedia.org/w/index.php?title=Uncle_Sam&oldid=680494715", note = "[Online; accessed 23-July-2024]" }
\usepackage{url}
somewhere in the preamble) which tends to give much more nicely formatted web addresses, the following may be preferred:
@misc{ wiki:xxx, author = "Wikimedia Commons", title = "Uncle Sam --- Wikimedia Commons{,} the free media repository", year = "2022", url = "\url{https://commons.wikimedia.org/w/index.php?title=Uncle_Sam&oldid=680494715}", note = "[Online; accessed 23-July-2024]" }