[uilib] reimplement printable_value function using a dictionary so one can easily change how to base type is displayed everywhere in the application. Closes #1827465
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".