[Bug 16448] Add {{DEFAULTSORT}} variable that returns the currently set defaultsort key

2012-01-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16448

--- Comment #5 from Purodha Blissenbach bugzilla.wikime...@publi.purodha.net 
2012-01-26 15:27:34 UTC ---
At the moment, I do not have a compelling real life use case, but mileage may
vary...

It might be useful inside templates, e.g. when referring to entries in sorted
tables using the sort key:
[{{fullurl:...}}#{{DEFAULTSORTKEY}} list entry]

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

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16448] Add {{DEFAULTSORT}} variable that returns the currently set defaultsort key

2011-09-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16448

Bawolff bawolff...@gmail.com changed:

   What|Removed |Added

 CC||bawolff...@gmail.com
Summary|Add {{DEFAULTSORT}} parser  |Add {{DEFAULTSORT}}
   |function|variable that returns the
   ||currently set defaultsort
   ||key

--- Comment #3 from Bawolff bawolff...@gmail.com 2011-09-11 02:13:22 UTC ---
I'm thinking something like this should perhaps be named something different
than {{DEFAULTSORT}} to avoid confusion (and potentially open up the
possibility of {{DEFAULTSORT:some other page}} syntax later if that's deemed
useful), but can't come up with any good names ({{GETDEFAULTSORTKEY}} but
nothing else uses get...). Maybe keeping the same name would be ok...

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

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16448] Add {{DEFAULTSORT}} variable that returns the currently set defaultsort key

2011-09-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16448

--- Comment #4 from Bawolff bawolff...@gmail.com 2011-09-11 02:25:31 UTC ---
In r96767  (MediaWiki 1.19) I added a feature to defaultsortkey:
{{DEFAULTSORTKEY:sortkey here|noreplace}} which will cause defaultsortkey to do
nothing if a sortkey is already specified earlier in the page.

With that in mind, are there still use cases for a {{DEFAULTSORTKEY}} variable
that would output what the last defaultsortkey set was?

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

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l