Page MenuHomeMiraheze

Request adding settings for PageImages extension
Closed, DeclinedPublic

Description

I found that PageImages have a scoring algorithm which can be configured and I want to request adding this to additional settings in wikis

Event Timeline

Max20091 triaged this task as Normal priority.Jul 19 2022, 09:20
Max20091 created this task.
Unknown Object (User) added a comment.Aug 13 2022, 23:10

Due to the complexity of this configuration, it does not support adding to ManageWiki. If you want, we can manually configure it for your wiki though, if you tell us exactly what you want it set to?

Max20091 closed this task as Resolved.EditedAug 14 2022, 06:11
Max20091 claimed this task.

I'm not even sure how to configure this extension unless testing it multiple times to get the expected result.

Maybe $wgPageImagesScores['position'] = [ 9999, 6, 4, 3 ];

and then run refreshLinks.php

Saw from the talkpage of the extension

Unknown Object (User) changed the task status from Resolved to Invalid.Aug 14 2022, 06:13
Unknown Object (User) removed Max20091 as the assignee of this task.

No action was taken, so closing invalid instead.

Maybe $wgPageImagesScores['position'] = [ 9999, 6, 4, 3 ];

and then run refreshLinks.php

Saw from the talkpage of the extension

Unknown Object (User) claimed this task.Aug 14 2022, 07:48

I will do this tomorrow.

Unknown Object (User) added a comment.Aug 14 2022, 16:14

Hello, which wiki?

Unknown Object (User) added a comment.Aug 14 2022, 17:34

I have made the change.

You'll have to make an edit to the page to recalculate the algorithm, and if it works, run refreshLinks.php to update all pages.

Please follow that, if it works, I will run refreshLinks.php.

Seems like not working as expected, can you replace the old one with this?

$wgPageImagesScores['position'] = [ 100, -100, -100, -100 ];

What do you intend to do? What do you want to do exactly?

In T9551#195380, @Ugochimobi wrote:

What do you intend to do? What do you want to do exactly?

I want to make the extension to read the infobox images, somehow PageImages refused to read images in infoboxes so I need to adjust position.

Unknown Object (User) added a comment.Aug 25 2022, 22:51

Seems like not working as expected, can you replace the old one with this?

$wgPageImagesScores['position'] = [ 100, -100, -100, -100 ];

Done.