Add support for encyclopedia and dictionary entries to locators macro.

This PR adds support for displaying the output of the locators macro for dictionary and encyclopedia entries.