https://bugzilla.wikimedia.org/show_bug.cgi?id=29266

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Krinkle <[email protected]> 2011-06-04 18:31:16 UTC ---
That's right. If not already, a way to set the default column for sorting
inside the wikitext when creating the "{| class='wikitable sortable' ... "
should be simple.

I hadn't thought of it that way, if that's acceptable to TranslateWiki and
suffices in Mark's request we can do that.

But if it's not something we'd want for all viewers of the /stats pages by
default, then, imho, we only have two options:

1) Create some way, specifically on translatewiki.net, to process url
parameters and manipulate a sorting-command to the table. This code could be
places in MediaWiki:Common.js and checking the namespace and subpagename.

2) A much cleaner, but also more complex (imo overkill if this is the only
needed advantage), implement this "/stats" functionality as a SpecialPage in
the Translate-extension. Since it would output it's stuff from PHP it could use
TablePager (or some other method), and could easily use url-parameters to
control the initial sorting in the HTML output (this is supported by default in
TablePager).

or, 3) Not exactly as request but might forfill the need, implement a way to
tell the tablesorter javascript which column the default sort should be (ie. {|
!class="defaultsorted"|myheading |} ).
This is the easiest to implement, but doesn't allow you to choose it (it would
be hardcoded in the wikitext which column the default is), and would affect all
viewers of the page.


Except for 2), I can implement without too much work. Let me know (or assign it
to me), after a decision has been made :-)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to