Page MenuHomePhabricator

Edit Cards: Configure thumbnail images and descriptions for link cards on prototype server
Closed, ResolvedPublic

Event Timeline

Esanders renamed this task from Edit Cards: Add thumbnail image to link card to Edit Cards: Configure thumbnail images and descriptions for link cards on prototype server.Jul 17 2019, 11:42 AM
Esanders removed a project: Editing Design.

Add page descriptions is not really feasible on the prototype server as it requires setting up a wikibase, and linking all the articles to wikibase items with descriptions.

Images can be added by just adding images to the stub articles we created. I done a few for links at the top of the page (e.g Jane Austen).

Add page descriptions is not really feasible on the prototype server as it requires setting up a wikibase, and linking all the articles to wikibase items with descriptions.

I looked into it and there is actually an easier way to do the second part. I don't want to mess up the test server, but it works for me locally.

First you need to set up Wikibase repo and client, instructions here worked for me: https://www.mediawiki.org/wiki/Wikibase/Installation. Then you set $wgWBClientSettings["allowLocalShortDesc"] = true;.

Now you can set a description by placing {{SHORTDESC:medium test page}} anywhere in the page wikitext. The complicated Wikibase stuff doesn't even have to work (e.g. I haven't figured out how to make it possible to link my local articles to Wikibase items on my wiki…).

This seems to be largely undocumented, but the relevant task describing the feature is T184000.

First you need to set up Wikibase repo and client

Those are big complex extensions that I have found a lot of extra work to keep up to date locally.

ppelberg closed this task as Resolved.Feb 5 2020, 6:52 PM
ppelberg claimed this task.

I looked into it and there is actually an easier way to do the second part. I don't want to mess up the test server, but it works for me locally.

First you need to set up Wikibase repo and client, instructions here worked for me: https://www.mediawiki.org/wiki/Wikibase/Installation. Then you set $wgWBClientSettings["allowLocalShortDesc"] = true;.

Now you can set a description by placing {{SHORTDESC:medium test page}} anywhere in the page wikitext. The complicated Wikibase stuff doesn't even have to work (e.g. I haven't figured out how to make it possible to link my local articles to Wikibase items on my wiki…).

This seems to be largely undocumented, but the relevant task describing the feature is T184000.

...while the above seems to be a great solution in the longer-term, the manual approach below [1] is sufficient.


Images can be added by just adding images to the stub articles we created. I done a few for links at the top of the page (e.g Jane Austen).