Last modified: 2011-01-05 11:19:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28566, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26566 - DynamicPageList uses an unknown ordering method
DynamicPageList uses an unknown ordering method
Status: RESOLVED DUPLICATE of bug 25254
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Bawolff (Brian Wolff)
http://eo.wikinews.org/wiki/Vikinova%...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-04 18:49 UTC by deletesoftware
Modified: 2011-01-05 11:19 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description deletesoftware 2011-01-04 18:49:20 UTC
DynamicPageList uses a strange ordering method. It seems to be neither
* addition to the category specified to DPL
* addition to the category specified using the publishing template
* addition to the category listed first in the article

http://eo.wikinews.org/wiki/Vikinova%C4%B5oj:Lastaj_nova%C4%B5oj

uses code:

<DynamicPageList>
category             = Publikigitaj artikoloj
count                = 5
ordermethod          = categoryadd
addfirstcategorydate = true
</DynamicPageList>

shows:

    * 25. Dec 2010: Ĉilio: Tertremo kun magnitudo de 8,8 Mw, necerta la nombro de mortintoj
    * 25. Dec 2010: Yang Jiechi alvokas la Japanian ambasadoron, postulas senprokrastan liberigon de ĉinaj fiŝkaptistoj
    * 25. Dec 2010: Regiona voĉdonado en Italio: Norda Ligo flugas, eksplodo de Grillo-uloj
    * 25. Dec 2010: Pli ol 900 mortintoj, 14.000 infektitoj pro la nuna eksplodo de ĥolero en Haitio
    * 24. Dec 2010: Vikinovaĵaj mallongaĵoj, 2010-12-24

The category "Publikigitaj artikoloj" is added by the template {{Publikigita}}: http://eo.wikinews.org/wiki/%C5%9Cablono:Publikigita


The article published (added to "Publikigitaj artikoloj") last (Dec 24) was http://eo.wikinews.org/wiki/Eldonistoj_oponas_la_proponatajn_%C5%9Dan%C4%9Dojn_de_Rusia_a%C5%ADtorrajta_le%C4%9Do . It was also the last article edited (Dec 27, no category changes).

The article published last (Dec 24) among the ones shown by DPL is http://eo.wikinews.org/wiki/Vikinova%C4%B5aj_mallonga%C4%B5oj,_2010-12-24 . It is also the last (Dec 26) of them edited (no category changes).

The article "Yang Jiechi alvokas la Japanian ambasadoron, postulas senprokrastan liberigon de ĉinaj fiŝkaptistoj" has been edited on Dec 25, but the only category change added an irrelevant category at the bottom of it: http://eo.wikinews.org/w/index.php?title=Yang_Jiechi_alvokas_la_Japanian_ambasadoron%2C_postulas_senprokrastan_liberigon_de_%C4%89inaj_fi%C5%9Dkaptistoj&action=historysubmit&diff=3053&oldid=2512
Comment 2 Bawolff (Brian Wolff) 2011-01-05 11:19:36 UTC
DynamicPageList can be configured to use different order methods. The default is the date the category was added (or changed) to the article.

Thus, blanking the article and then reverting will make it pop back to the top of the list. Changing the sortkey of a category will also make it pop back to the top (via {{DEFAULTSORTKEY:...}} or [[category:Foo|bar]] syntax). Overly long article titles can sometimes cause issues as well (bug 25254).

However in this case, the issue appears to be related to bug 25254. This bug is for pages with long titles, they get moved to the front of the DPL list any time they are edited (including null edits).


The weird part is, that the sortkeys don't seem to be getting cut off according to the api, which was my old theory for what was causing bug 25254. Need to investigate further

As a work around, when publishing the article, try to specify a sortkey using {{DEFAULTSORT:}} that is 70 characters or less. (things like cx = ĉ count as two characters).

*** This bug has been marked as a duplicate of bug 25254 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links