Page MenuHomePhabricator

indirect sort key alterations
Closed, DeclinedPublic

Description

Author: gangleri

Description:
This report tries to add a dependency structure to indirect sort key alterations.

The sort key can be defined

0) as full *nonvariable* text

  1. as an expression depending on variables via predefined templates as {{PAGENAME}}, {{BASEPAGENAME}}, {{FULLPAGENAME}}, {{SUBPAGENAME}} ... and other magic words from

http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/MagicWord.php?view=markup

  1. as an expression via templates

It can be altered by

a) moving the page
bug 001119 Page move doesn't update category link sort keys
b) changing the templates which define the sort key
c) deleting which define the sort key and / or
d) recreating the templates which define the sort key
x) other actions as
bug 003622 rollback doesn't roll back category sort key
...)

The membership in a category is afected by

i) changes of the sort key in the page
ii) changes in the (nested) templates defining the sort key
iii) deletion of the page itself
iv) deletion of the (nested) templates defining the sort key
v) recreating of the pageitself
vi) recreating of the (nested) templates defining the sort key
...)

Many of the earlier bugs related to the actions mentioned above have been fixed.
Some still need to be fixed or reported.

Best regards Reinhardt [[usser:Gangleri]]


Version: unspecified
Severity: normal
URL: http://bugzilla.wikimedia.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=sort+key&order=Bug+Number

Details

Reference
bz12332

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:56 PM
bzimport set Reference to bz12332.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

screen dump · MediaZilla 012332 · « test.wikipedia.org » · 01.jpg

Hi!

I used some of the old « nested » templates at http://test.wikipedia.org/ .

http://test.wikipedia.org/wiki/Template:Sort_key
calls in the « default » mode the « variant »
http://test.wikipedia.org/wiki/Template:Sort_key/

It is used in many places see
http://test.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Template:Sort_key/&limit=500&from=0

The attachment shows how changes in one of the nested templates used in pages belonging to
http://test.wikipedia.org/wiki/Category:Templates
reorder *properly* when the « {{sort key}} » changes.

  1. The screen dump at the top shows the category while not all pages did use the

« |{{sort key}} » category membership.

At that time the content of template:sort_key/ was
{{1|{{PAGENAME}}}} {{2|{{NSSORTORDER}}}}

  1. I modified all members of the category adding the proper

« |{{sort key}} » category membership.

Then the content of template:sort_key/ was changed to
{{2|{{NSSORTORDER}}}} {{1|{{PAGENAME}}}}

The proper result can be seen in the middle screen dump.

  1. Then the content of template:sort_key/ was changed back to

{{1|{{PAGENAME}}}} {{2|{{NSSORTORDER}}}}

The proper result can be seen in the buttom screen dump.

Best regards Reinhardt [[user:Gangleri]]

P.S. I won't change the resolution of this bug to « WORKSFORME » unless it is clear if
bug 003622 rollback doesn't roll back category sort key
is a nonissue or not.

Attached:

screen_dump_·_MediaZilla_012332_·_«_test.wikipedia.org_»_·_01.jpg (977×1 px, 193 KB)

gangleri wrote:

bug 3622 rollback doesn't roll back category sort key
changed resolution to « WORKSFORME »

changing resolution for the actual bug / report to « WORKSFORME » as well