@misc{ wiki:xxx, author = "Wikimedia Commons", title = "Sovereign-state flags in 1926 --- Wikimedia Commons{,} the free media repository", year = "2024", url = "https://commons.wikimedia.org/w/index.php?title=Sovereign-state_flags_in_1926&oldid=877943958", note = "[Online; accessed 12-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 = "Sovereign-state flags in 1926 --- Wikimedia Commons{,} the free media repository", year = "2024", url = "\url{https://commons.wikimedia.org/w/index.php?title=Sovereign-state_flags_in_1926&oldid=877943958}", note = "[Online; accessed 12-July-2024]" }