This may seems a strange idea, but I've founded it usefull in different uses cases. For example, when storing notes and adding links of external websites, I would like to have a bit more info without having to click on links each time: like a preview.
The strategy would be to look for pages <head> at render time and include datas in <a> link. We could then imagine a JS script that would allow to show those infos as a popup like on Wikipedia. Or, I don't know if it is possible, but using CSS to add, for example, a flag according to a language.
This may seems a strange idea, but I've founded it usefull in different uses cases. For example, when storing notes and adding links of external websites, I would like to have a bit more info without having to click on links each time: like a preview.
The strategy would be to look for pages
<head>
at render time and include datas in<a>
link. We could then imagine a JS script that would allow to show those infos as a popup like on Wikipedia. Or, I don't know if it is possible, but using CSS to add, for example, a flag according to a language.This could also be used for internal links.
Data that I found interesting
Or other possibilities in open graph protocol
Activation in W
This type of rendering could be activated or not at ELEMENT inclusion like
%MAIN?richlink=1%
.Way to store datas
What I would imagine is to use HTML custom data attributes. They seems to be accessible from CSS.
problems I see
This will slow down the rendering process a lot, especially for external links.
alternatives
I imagine that those tooltips could be loaded in a more lazy way, I mean, using only JS to request datas and create a popup on hover for example.
Avantages of this seems to be the fact that datas would be more up to date. Cons are the fact that this is way slower.
I have found a chrome extension that do this. This is interesting ! But this one is trying to do a full preview of a page instead of metadatas.