Feature summary (what you would like to be able to do and where):
For Wikimedia commons images, when seen in table format query result or other, a link to the image is displayed as ":commons:…". It could be great to have the same kind of features to better display links to projects such as "en:Victor Hugo" as compared to https://en.wikipedia.org/wiki/Victor_Hugo that it is now.
Alternatively, or as another option, the query service should provide a way to compute a label, which could be displayed as a HTML link "<a href="https://en.wikipedia.org/wiki/Victor_Hugo">?articleLabel</a>" where ?articleLabel is the variable name of the computed value
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
When Wikidata query is used to display results about a wikiproject, for a replacement of categories. The full link url are not very pretty and do not give an idea of the title of the link.
What triggers the ticket : writing the query https://w.wiki/8tqp to provide an alternative to someone who wanted to create a category "person with a puppet representing him" (searching a name for the category, see this discussion. A Wikidata query is perfect for such a usecase. There are many other one.
Benefits (why should this be implemented?):
It would provide better looking results for users, increasing the probability that Wikidata is considered an alternative to the Category system when relevant. It would also save space while displaying results by avoiding text redundancy in the results, while allowing user to easily go back to their home wiki.