refactor wiki_references to refs+priority