Add buried to list of secondary Wiki prefixes
This commit is contained in:
parent
67b0b5b885
commit
2a6f78747e
2 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
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)
|
||||
|
|
|
@ -132,6 +132,11 @@ class BrowseTagsHelperTest < ActionView::TestCase
|
|||
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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue