module BrowseTagsHelper
# https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links
# https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links
- SECONDARY_WIKI_PREFIXES = "architect|artist|brand|flag|genus|name:etymology|network|operator|species|subject".freeze
+ SECONDARY_WIKI_PREFIXES = "architect|artist|brand|buried|flag|genus|name:etymology|network|operator|species|subject".freeze
def format_key(key)
if url = wiki_link("key", key)
assert_equal "//www.wikidata.org/entity/Q24?uselang=en", links[0][:url]
assert_equal "Q24", links[0][:title]
+ # This verified buried is working
+ links = wikidata_links("buried:wikidata", "Q24")
+ assert_equal "//www.wikidata.org/entity/Q24?uselang=en", links[0][:url]
+ assert_equal "Q24", links[0][:title]
+
links = wikidata_links("species:wikidata", "Q26899")
assert_equal "//www.wikidata.org/entity/Q26899?uselang=en", links[0][:url]
assert_equal "Q26899", links[0][:title]