@misc{ wiki:xxx, author = "Wikimedia Commons", title = "File:Arms of the Bruce of Earlshall.svg --- Wikimedia Commons{,} the free media repository", year = "2023", url = "https://commons.wikimedia.org/w/index.php?title=File:Arms_of_the_Bruce_of_Earlshall.svg&oldid=801785750", note = "[Online; accessed 21-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 = "File:Arms of the Bruce of Earlshall.svg --- Wikimedia Commons{,} the free media repository", year = "2023", url = "\url{https://commons.wikimedia.org/w/index.php?title=File:Arms_of_the_Bruce_of_Earlshall.svg&oldid=801785750}", note = "[Online; accessed 21-July-2024]" }