#Can you set what image shows up as the embed image in an article link

1 messages · Page 1 of 1 (latest)

supple blaze
#

Currently I have an article with an infobox that has tabbers for multiple images of their appearances across different games. I would like to set that article so that it displays a certain image whenever I send the link via discord or etc, because atm it's displaying the image in the second tabber which is a huge spoiler, and I'd like for it to display the first image. How can I do that?

visual horizon
#

not a true solution but I thought I'd let you know, you can wrap links in < & > tags, such as <google.com> to prevent any sort of embed preview popping up within discord. so when linking to it for now, you could use that method to prevent the embed entirely.
again not a true solution but just thought it might help you for the moment 🤔

ripe atlas
supple blaze
#

/auth

#

Well last time I tried the /auth command

#

It didn't really work out

ripe atlas
#

yeah like I said, try another channel for it, like general? also make sure you have dms enabled I guess

supple blaze
#

I did and it doesn't work uh

#

How about I just dm you?

foggy latch
#

try a few times, the bot can be a little sleepy but usually works after a bit

supple blaze
#

Can I send images here?

ripe atlas
#

can you say what wiki and page it is?

ripe atlas
supple blaze
#

And this is what I want to show up

#

Also Utawarerumono Wiki, page is Haku

ripe atlas
supple blaze
#

Yes

ripe atlas
#

and according to this, you can exclude and image from the page by adding this class to it [[File:Example.png|class=notpageimage]]
https://www.mediawiki.org/wiki/Extension:PageImages#Can_I_exclude_certain_page_images?

The PageImages extension collects information about images used on a page.
Its aim is to return the single most appropriate thumbnail associated with an article.
PageImages also provides OpenGraph protocol metadata for articles on the wiki for 3rd parties like Facebook to extract.

supple blaze
supple blaze
#

It's still embedding the second

visual horizon
#

is it related to this part ?

I'm not sure what it means by link, like, literally any link?? could u hypothetically just delete a link in the page and then add it back and that will force the update ...? or is this not what that means haha

ripe atlas
#

yeah not sure about that part either

supple blaze
#

Man this is kinda frustrating

#

💀

ripe atlas
visual horizon
#

it's also strange to me there isn't a class to identify a desired page image, only a way to exclude ...?
it seems tedious to exclude basically all images except a desired one, but I don't see a way to select a desired one from that help page ... hm

ripe atlas
supple blaze
ripe atlas
#

you could try the MediaWiki:Pageimages-denylist method

supple blaze
#

I may have typed something wrongly

ripe atlas
#

I'm not sure if individual images in galleries can even have a class.. do you know @foggy latch?

supple blaze
#

Same result

#

Do I just add the link

#

In the page

ripe atlas
#

the wiki example looks like this btw

ripe atlas
supple blaze
#

I will copy it

ripe atlas
supple blaze
ripe atlas
supple blaze
ripe atlas
supple blaze
#

yes

#

by link do you mean like

#

Any random link or

ripe atlas
#

yeah

#

might need to do it again to update it

supple blaze
#

Works!

#

Check on your end too

ripe atlas
#

nice, the page info shows the first image now

supple blaze
#

Thanks for your help

#

Kind of stupid that we need to insert random links for this to update but oh well

ripe atlas
#

yeah, it's not very user friendly