Come on, that title is intentionally super long to bury the joke at the end. And what about the next time, when 250 chars isnāt enough? Then 300? Then 350? Where do we draw the line on title length other than ānot hereā?
Looking good!
The steps to get a Mediawiki Oneboxing:
- Start with an up-to-date Mediawiki. I jumped from an old 1.18 to relatively recent 1.27.3. (The jump from Jesse Raspbian to Stretch.) It was painful, but like taking a band-aid off quick, it was done.
- Add two extensions: OpenGraphMeta and Description2
- Wrap the image you want for each page. e.g. {{#setmainimage:TorontoOrg.jpeg}} I borrowed Infobox templates from Wikipedia, so Iāll tweak those to do that for me. Onebox seems to need an image, so Iāll think about what to do when there isnāt one.
I have the feeling that thereās been recent work on the BB side, because this wasnāt working last week. Thanks!
P.S. If you update your Mediawiki, also drop in extension MobileFrontend. Phone users and Google ranking will be happy about it.
I went in and added the #setmainmage to the Infobox Organization, Person and Book. (What a mess. I should update to more recent templates now that I can.)
Iāll need to make sure that thereās at least some text in the body of articles so that thereās a description.
This was unexpected:
Well that is not good, @techAPJ can you check our length limits in the code there?
The google docs description was not getting truncated. Fixed via:
Fix will be deployed here soon. Thanks for bringing this in our notice @Wanderfound.
@techAPJ also added xxtra onebox fanciness along the top, from left to right: site favicon, proper titles (if the page has a title) and dates next to the title (when date is provided in the metadata, but it typically is on news-y sites).
Like so
This one looks like it should work. Is it the Ć in the title?
ETA: And now itās working. odd.
Is it just me, or is the xkcd thing presenting its images with wrong aspect ratio?
Specific to that one perhaps?
This one didnāt onebox:
https://scholarlykitchen.sspnet.org/2018/03/15/a-comment-on-klein-et-als-comparing-articles-to-preprints/
Which is a pity, as the thumbnail is good. (Also it is a bit ironic, as it is a website dedicated to publishing.)
Per iframely.com/debug it might be because they offer no text description in oEmbed. There is one in the OpenGraph tags though.
Articles from https://scholarlykitchen.sspnet.org
doesnāt onebox because the site returns error code 403
(Forbidden) after looking at default Onebox user agent āDiscourse Forum Onebox v2.0.0.beta4
ā. Nothing we can do about it except creating a custom onebox agent for them, which I am not so sure about.
Well, I wouldnāt bother, I just thought that since we have this thread for onebox failures and I was sad about that one when I posted it elsewhere that Iād report it here.
Tweets from this user:
https://mobile.twitter.com/Saeen
ā¦donāt Onebox or autolink properly, because the underscores at the start and end of his username are interpreted as italics rather than text. It should be underscore-saeen-underscore rather than saeen.
Sample:
https://twitter.com/Saeen/status/979459068724117505?s=20
Is there a simple way around this problem that Iām missing?
Not sure, but you can use parens to make a proper link. Of course that also negates oneboxing, or maybe oneboxing should treat this case as an acceptable way to onebox?
https://mobile.twitter.com/_Saeen_
<https://mobile.twitter.com/_Saeen_>
Thereās probably an HTML character entity way as well:
https://mobile.twitter.com/_Saeen_
https://mobile.twitter.com/%5FSaeen%5F
letās see
yes that works. Sorry this guy has an annoying username
Is there some way the click counter that works on a plain link can be made to work on these onebox things?
Itās an annoying omission.
It already works, hereās an example
Note the click counter says āoneā there.
Not on my machineā¦ (Firefox on Win8.1)
ETA - thatās weird, I wasnāt zoomed in when I took the screencapā¦?