Page MenuHomePhabricator

Allow custom ordering of properties in wikibase.cloud instances
Closed, ResolvedPublic

Description

While manually creating https://kbtestwikibase.wikibase.cloud/wiki/Item:Q10 property by property, I noticed that the Properties (statements blocks) remain displayed in the same order as I've added them.

I would like to be able to set the specific order of the properties myself, allowing the more important blocks (instance of, sex/gender, dob, dod, pob, pod, occupation etc) to be displayed at the top of the page.

In Wikidata P31, P22, P18, P27 etc are always displayed first. I would like to be able to specify the order myself, in some sort of "Property ordering form" where I can drag the more important Ps to the top. Once the order has been saved, all Qitems in my wb.cloud instance should be and remain ordered that way.

Event Timeline

it may take a while for the property order to update due to caching btw

@I_is_chan : thanks! Adding such page to my Wikibase indeed did the trick: https://kbtestwikibase.wikibase.cloud/wiki/MediaWiki:Wikibase-SortedProperties , resulting in an accordingly sorted page, eg https://kbtestwikibase.wikibase.cloud/wiki/Item:Q29

It is noted that you can actively purge the cache of pages via [[Special:Purge]] - https://kbtestwikibase.wikibase.cloud/wiki/Special:Purge

Addshore closed this task as Resolved.EditedAug 12 2022, 1:34 PM
Addshore claimed this task.
Addshore added subscribers: danshick-wmde, Addshore.

Resolving as this already works.

Ping @danshick-wmde @Evelien_WMDE to see if we want to document this in any way

Resolving as this already works.

Ping @danshick-wmde @Evelien_WMDE to see if we want to document this in any way

I don't think we need more documentation beyond https://www.mediawiki.org/wiki/Manual:Interface/Wikibase-SortedProperties and the sorted properties section of https://doc.wikimedia.org/Wikibase/master/php/md_docs_topics_options.html .