-
-
Notifications
You must be signed in to change notification settings - Fork 39
Add general url reference functionality #5
Comments
@metallikat36 Just to clarify: You'd like the plugin to automatically format references to webpages and blogs with just an input url? That should be doable (for most, but probably not all, urls). I'll look into implementing it when I get some spare time. 👍 |
Yes, you got it. Like for example, you are adding a formatted reference, but now you add an option to choose whether you are entering a PMID or whether you are entering a url. If you input a url, the plugin automatically adds a formatted reference for that url to your post. I would say that the plugin algorithm might go something like this for a general url:
Of course, there would also need to be something in this reference that is a clickable link. Since the worst case scenario is that domain name is all the info you have, it might make sense to have that as the clickable part of the reference. Or perhaps what is best is just to generically add a clickable word at the end of such all url references like "View Link" or something. I don't know. |
@metallikat36 This is going to have to be part of a much larger update. I tagged it for release 2.4.0.. 2.3.0 was just released so you should see the changes from your other threads applied. |
Sounds good. I'll wait. All your improvements on the tooltip work great as far as I can tell. Thanks a lot. This is really good. Z-index issue is a relative thing. In my case, hardcoding 20 does not fix it because I hardcoded my social media icons to like 1 million or something. Nothing you can do to forsee something like that. Maybe the best thing is to just include a note about z-index in some documentation and let people do it themselves in the CSS. 20 should solve any issues for most everyone else though. I would also include a note in some documentation about what the CSS selector is for the new arrow you added to the tooltip. |
@metallikat36 I'm super close to being done with 2.4.0... You're gonna dig it I think. Please, please let me know if I added something that doesn't feel right. I greatly appreciate the awesome feedback. |
It's all great so far. A couple nit picky details I don't really care about, but you may want to be aware of:
|
@metallikat36 Good tips -- I'll make the necessary changes prior to pushing out the update. To respond directly to some of the suggestions:
I'll have to rethink how that is written. Currently, you can't override it because depending on where the tooltip is in relation to the page, the tooltip (and arrow) are placed either above or below the citation. This is tricky because the color of the tooltip arrow is just a fancy css trick using border colors, and it differs depending if the arrow is needed to be pointed upwards or downwards... For example: /* Upwards */
.abt_tooltip_arrow {
border-color: transparent transparent <whatever-color-you-want>;
}
/* Downwards */
.abt_tooltip_arrow {
border-color: <whatever-color-you-want> transparent transparent;
} Not to worry though, I think I can fix it by applying two separate classes.
That's partly correct. It actually does get repositioned, however when the citation numbers wrap lines, it doesn't know what to do. I fixed this already and you'll be seeing it in 2.4.0 (see issue #13 ) As always, thanks again for the feedback! 👍 |
I want to link to a lot of articles, but want them to also appear as inline citations like the PMID inline citations your plugin produces. I think it looks sloppy to have a mixture of normal text links and numerical superscript citations. I want everything to be numerical supercripts - both links to articles, and links to PMID references. I notice that you can already manually add references to the ordered list, and then cite those references with your numerical inline citation option. So that half of the picture is already done. The other half of the picture that needs implementation is adding a dialogue box to add a url to the references ordered list.
I don't know the best practices for references a url, but things that would be desired are as folllows. And note that most of these could conceivable be parsed automatically from the target url.
It seems conceivable to me that the only input the user would need to give is the url.
And like my previous thread, tooltips for such url references should also be clickable and take you to a new url. And of course all clickable tooltip links should be target=blank.
The text was updated successfully, but these errors were encountered: